[NTG-context] \version[temporary] in mkiv

2015-04-11 Thread Otared Kavian
Hi Hans,

In mkii, we used to have the command
\version[temporary]
in the document, so that the labels for cross references would be printed in 
the margin, which is extremely useful when proof reading.

In mkiv the command exists, but does not that: it prints only in small print 
the name of the file or the project information in the footer, and some black 
rules where the hyphenation of words has not been done.  
Is there any command which does what is needed for having informations about 
cross-referencing?

In LaTeX for example, there is a package which puts the name of each labelled 
reference in the margin, and when one uses a certain cross reference it puts 
the name which is used in small print on top of the line where it is invoked. 
If you want I can send you an example of output where this is shown.

If in mkiv there is a possibility to modify an existing feature, could you 
please give an indication where I have to look?

If not, should I submit a request for this feature?

Thanks for all your work and help.
Best regards: OK

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] epub-mkiv-demo.epub

2015-04-11 Thread Piotr Kopszak
Hello list,

I am trying to compile example epub file epub-mkiv-demo.tex which is
provided with the recent beta, however I'm getting following errors
when I run:mtxrun --script epub --make epub-mkiv-demo

resolvers   | trees | analyzing 'home:texmf'
mtx-epub| using specification file
'epub-mkiv-demo-export/epub-mkiv-demo-pub.lua'
mtx-epub| the 'mudraw' binary is not present
mtx-epub| cover page image 'cover.xhtml' is not present
mtx-epub| saving dummy coverpage to
'epub-mkiv-demo-export/cover.xhtml'...42015/tex/texmf-context/scripts/context/lua/mtx-epub.lua:606:
bad argument #1 to 'gsub' (string expected, got nil)

No epub file is generated.

Any help would be greatly appreciated

Piotr

-- 
http://okle.pl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] authors in the toc

2015-04-11 Thread Wolfgang Schuster

 Am 10.04.2015 um 19:33 schrieb Rik Kabel cont...@rik.users.panix.com:
 
 Another bump. The example on the wiki still fails.
 
 On 2014-10-02 13:42, Rik Kabel wrote:
 On 2014-10-02 05:18, Wolfgang Schuster wrote:
 There is a example on the wiki. You have to set your own values with the 
 second argument of the \startchapter etc. command, to display the entry in 
 the roc you have to write your own layout where you access it with the 
 \structurelistuservariable command.
 
 http://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content 
 http://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content
 
 Wolfgang
 
 This example fails for me using the current (2014-09-27) standalone beta and 
 with TL14. The failure is that the list of authors is presented as a grid 
 without contents.
 
 Changing any of the lines in the example that construct the table cells, 
 such as
 \bTD \structureuservariable{author} \eTD
 to
 \bTD xx \structureuservariable{author} \eTD
 results in a table with the new text, but no user variable text, showing 
 that the \structureuservariable commands are not returning any text in this 
 example.
 
 Has something relevant changed since the example was prepared (2010-11 or 
 earlier)?
 
 (A pointer to useful descriptions of \structureuservariable and 
 \structurelistuservariable would also be welcome. In the wiki, the 
 startsection command description describes the former, but I have come 
 across no comprehensive description for either in the documentation.)

You have to expand the whole content of the sort entry with

  \expanded{\author[…]{…}}

Wolfgang___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Request: Numbercommand key for \setupcaption

2015-04-11 Thread Wolfgang Schuster

 Am 10.04.2015 um 15:22 schrieb Hans Hagen pra...@wxs.nl:
 
 On 4/10/2015 12:38 PM, Wolfgang Schuster wrote:
 Hi Hans,
 
 can you add a number command key to \setupcaption because when you use a 
 language which uses left and right labels for the number
 the numberstopper key can’t be used anymore to put a symbol after the float 
 counter without misusing the label texts.
 
 
 For example the following example should print
 
 LEFT 1 RIGHT: Dummy figure
 
 as figure caption but it shows only
 
 LEFT 1 RIGHT Dummy figure
 
 without the color after “RIGHT”.
 
 
  begin example
 \useMPlibrary[dum]
 
 \setuplabeltext[en][figure={LEFT , RIGHT}]
 
 \definereferenceformat[infigure][label=*]
 
 \setupcaption[figure][numbercommand=\groupedcommand{}{:}]
 
 \starttext
 
 \startplacefigure[reference=fig:dummy,title=Dummy figure]
  \externalfigure[dummy]
 \stopplacefigure
 
 See \infigure[fig:dummy].
 
 \stoptext
  end example
 
 beta:
 
 \useMPlibrary[dum]
 
 \setuplabeltext[en][figure={LEFT , RIGHT}]
 
 \definereferenceformat[infigure][label=*]
 
 \setupcaption
  [figure]
  [textcommand=\groupedcommand{}{},
   numbercommand=\groupedcommand{[}{]}]
 
 \starttext
 
\startplacefigure[reference=fig:dummy,title=Dummy figure]
\externalfigure[dummy]
\stopplacefigure
 
See \infigure[fig:dummy].
 
 \stoptext

The numbercommand key should include the labels.

\unprotect
\unexpanded\def\thecurrentfloatnumber
  {\ifnofloatcaption \else \ifnofloatnumber \else
 \ifx\currentfloatnumber\relax\else
   \floatcaptionparameter\c!numbercommand
 {\namedtaggedlabeltexts
   \t!floatlabel \currentfloat
   \t!floatnumber\currentfloat
 
{\clf_savedlistprefixednumber{\currentfloat}\currentfloatnumber\relax
  \thecurrentfloatnumbersuffix}}%
 \fi
   \fi \fi}
\protect

\useMPlibrary[dum]

\setuplabeltext[en][figure={LEFT , RIGHT}]

\definereferenceformat[infigure][label=*]

\setupcaption
 [figure]
 [textcommand=\groupedcommand{}{},
  numbercommand=\groupedcommand{[}{]}]

\starttext

   \startplacefigure[reference=fig:dummy,title=Dummy figure]
   \externalfigure[dummy]
   \stopplacefigure

   See \infigure[fig:dummy].

\stoptext

Wolfgang___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \version[temporary] in mkiv

2015-04-11 Thread Otared Kavian
Hi Hans,

Thanks for your answer.
Is the file
strc-mat.mkiv
the only place where I should look in order to try to modify something and 
achieve the functionality needed in maths papers?

Best regards: OK

 On 11 Apr 2015, at 12:47, Hans Hagen pra...@wxs.nl wrote:
 
 On 4/11/2015 9:31 AM, Otared Kavian wrote:
 Hi Hans,
 
 In mkii, we used to have the command
  \version[temporary]
 in the document, so that the labels for cross references would be printed in 
 the margin, which is extremely useful when proof reading.
 
 In mkiv the command exists, but does not that: it prints only in small print 
 the name of the file or the project information in the footer, and some 
 black rules where the hyphenation of words has not been done.
 Is there any command which does what is needed for having informations about 
 cross-referencing?
 
 In LaTeX for example, there is a package which puts the name of each 
 labelled reference in the margin, and when one uses a certain cross 
 reference it puts the name which is used in small print on top of the line 
 where it is invoked. If you want I can send you an example of output where 
 this is shown.
 
 If in mkiv there is a possibility to modify an existing feature, could you 
 please give an indication where I have to look?
 
 If not, should I submit a request for this feature?
 
 this functionality is currently not present (not too hard to do but needs 
 time)
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Request: Numbercommand key for \setupcaption

2015-04-11 Thread Hans Hagen

On 4/11/2015 9:07 AM, Wolfgang Schuster wrote:



Am 10.04.2015 um 15:22 schrieb Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl:

On 4/10/2015 12:38 PM, Wolfgang Schuster wrote:

Hi Hans,

can you add a number command key to \setupcaption because when you
use a language which uses left and right labels for the number
the numberstopper key can’t be used anymore to put a symbol after the
float counter without misusing the label texts.


For example the following example should print

LEFT 1 RIGHT: Dummy figure

as figure caption but it shows only

LEFT 1 RIGHT Dummy figure

without the color after “RIGHT”.


 begin example
\useMPlibrary[dum]

\setuplabeltext[en][figure={LEFT , RIGHT}]

\definereferenceformat[infigure][label=*]

\setupcaption[figure][numbercommand=\groupedcommand{}{:}]

\starttext

\startplacefigure[reference=fig:dummy,title=Dummy figure]
\externalfigure[dummy]
\stopplacefigure

See \infigure[fig:dummy].

\stoptext
 end example


beta:

\useMPlibrary[dum]

\setuplabeltext[en][figure={LEFT , RIGHT}]

\definereferenceformat[infigure][label=*]

\setupcaption
 [figure]
 [textcommand=\groupedcommand{}{},
  numbercommand=\groupedcommand{[}{]}]

\starttext

   \startplacefigure[reference=fig:dummy,title=Dummy figure]
   \externalfigure[dummy]
   \stopplacefigure

   See \infigure[fig:dummy].

\stoptext


The numbercommand key should include the labels.

\unprotect
\unexpanded\def\thecurrentfloatnumber
   {\ifnofloatcaption \else \ifnofloatnumber \else
  \ifx\currentfloatnumber\relax\else
\floatcaptionparameter\c!numbercommand
  {\namedtaggedlabeltexts
\t!floatlabel \currentfloat
\t!floatnumber\currentfloat

  {\clf_savedlistprefixednumber{\currentfloat}\currentfloatnumber\relax
   \thecurrentfloatnumbersuffix}}%
  \fi
\fi \fi}
\protect

\useMPlibrary[dum]

\setuplabeltext[en][figure={LEFT , RIGHT}]

\definereferenceformat[infigure][label=*]

\setupcaption
  [figure]
  [textcommand=\groupedcommand{}{},
   numbercommand=\groupedcommand{[}{]}]

\starttext

\startplacefigure[reference=fig:dummy,title=Dummy figure]
\externalfigure[dummy]
\stopplacefigure

See \infigure[fig:dummy].

\stoptext


hm, tricky as then the part wrapped around the number will not get 
tagged properly ... needs a bit more work


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] authors in the toc

2015-04-11 Thread Rik Kabel

On 2015-04-11 03:27, Wolfgang Schuster wrote:


Am 10.04.2015 um 19:33 schrieb Rik Kabel cont...@rik.users.panix.com 
mailto:cont...@rik.users.panix.com:


Another bump. The example on the wiki still fails.

On 2014-10-02 13:42, Rik Kabel wrote:

On 2014-10-02 05:18, Wolfgang Schuster wrote:
There is a example on the wiki. You have to set your own values 
with the second argument of the \startchapter etc. command, to 
display the entry in the roc you have to write your own layout 
where you access it with the \structurelistuservariable command.


http://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content

Wolfgang

This example fails for me using the current (2014-09-27) standalone 
beta and with TL14. The failure is that the list of authors is 
presented as a grid without contents.


Changing any of the lines in the example that construct the table 
cells, such as


\bTD \structureuservariable{author} \eTD

to

\bTD xx \structureuservariable{author} \eTD

results in a table with the new text, but no user variable text, 
showing that the \structureuservariable commands are not returning 
any text in this example.


Has something relevant changed since the example was prepared 
(2010-11 or earlier)?


(A pointer to useful descriptions of \structureuservariable and 
\structurelistuservariable would also be welcome. In the wiki, the 
startsection command description describes the former, but I have 
come across no comprehensive description for either in the 
documentation.)


You have to expand the whole content of the sort entry with

  \expanded{\author[…]{…}}

Wolfgang


Thank you for the fix. Wiki updated.

--
Rik
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] A couple of setupcaptions questions revisited

2015-04-11 Thread Rik Kabel

Bumping another old unsolved mystery.

On 2014-04-22 22:40, Rik Kabel wrote:
 On 2011-08-05, Wolfgang wrote with regard to section numbering not
 appearing in float captions when numbering is off for the section but
 called for by the chapter
 (http://www.mail-archive.com/ntg-context%40ntg.nl/msg57811.html):

 For the moment replace “number=no” with “incrementnumber=no”.


 and later that day
 (http://www.mail-archive.com/ntg-context%40ntg.nl/msg57814.html):

 There is a bug but it takes time to find it, unless it is found and
 fixed use incrementnumber.

 BTW: A *minimal* example your problem is **this**:

 \setupformulas[way=bysection,prefixsegments=chapter]
 %\setuphead[subsection][number=no]
 \setuphead[subsection][incrementnumber=no] \starttext
 \chapter{Chapter 1} \chapter{Chapter 2} \section{Section}
 \subsection{Subsection} \placeformula \startformula a^2+b^2=c^2
 \stopformula \stoptext

 This bug appears to still be with us. Has a solution since been
 proffered? If not, is a resolution in sight?

--
Rik Kabel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \version[temporary] in mkiv

2015-04-11 Thread Otared Kavian
 On 11 Apr 2015, at 15:38, Hans Hagen pra...@wxs.nl wrote:
 […]
 What do you need then? Math is handled in several files.


Hi,

something like the following definition for \placeformularef below, which would 
work in multine formulas (I don’t know how to write in the margin next to the 
number of the formula).

The output is attached.

% begin placeformula-ref.tex
\def\placeformularef[#1]{\doifmodeelse{proofreading}%
{\inrightmargin{\tt\txx #1}\placeformula[#1]}%
{\placeformula[#1]}}

\definereferenceformat[eqref][left=(,right=),text={formula }]

\setupformulas[location=right]

\enablemode[proofreading]

\starttext
We have
\placeformularef[eq:Square]
\startformula
a^2 + 2ab + b^2 = (a + b)^2,
\stopformula
for $a,b\in {\Bbb C}$. Also,
\placeformularef[]
\startformula
\startalign
\NC |x|^2 + |y|^2 \NC = (x + y|x + y). \NR[eq:Pythagore]
\NC \alpha^2 -2\alpha\beta + \beta^2 \NC = (\alpha - \beta)^2. \NR[eq:Identity]
\stopalign
\stopformula  
\eqref[eq:Identity] is a consequence of \eqref[eq:Square].
\stoptext
% end placeformula-ref.tex

Thanks: OK


placeformula-ref.pdf
Description: Adobe PDF document

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] epub-mkiv-demo.epub

2015-04-11 Thread Hans Hagen

On 4/11/2015 9:12 AM, Piotr Kopszak wrote:

Hello list,

I am trying to compile example epub file epub-mkiv-demo.tex which is
provided with the recent beta, however I'm getting following errors
when I run:mtxrun --script epub --make epub-mkiv-demo

resolvers   | trees | analyzing 'home:texmf'
mtx-epub| using specification file
'epub-mkiv-demo-export/epub-mkiv-demo-pub.lua'
mtx-epub| the 'mudraw' binary is not present


install mudraw


mtx-epub| cover page image 'cover.xhtml' is not present
mtx-epub| saving dummy coverpage to
'epub-mkiv-demo-export/cover.xhtml'...42015/tex/texmf-context/scripts/context/lua/mtx-epub.lua:606:
bad argument #1 to 'gsub' (string expected, got nil)

No epub file is generated.

Any help would be greatly appreciated


i'll add a check

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \version[temporary] in mkiv

2015-04-11 Thread Hans Hagen

On 4/11/2015 9:31 AM, Otared Kavian wrote:

Hi Hans,

In mkii, we used to have the command
\version[temporary]
in the document, so that the labels for cross references would be printed in 
the margin, which is extremely useful when proof reading.

In mkiv the command exists, but does not that: it prints only in small print 
the name of the file or the project information in the footer, and some black 
rules where the hyphenation of words has not been done.
Is there any command which does what is needed for having informations about 
cross-referencing?

In LaTeX for example, there is a package which puts the name of each labelled 
reference in the margin, and when one uses a certain cross reference it puts 
the name which is used in small print on top of the line where it is invoked. 
If you want I can send you an example of output where this is shown.

If in mkiv there is a possibility to modify an existing feature, could you 
please give an indication where I have to look?

If not, should I submit a request for this feature?


this functionality is currently not present (not too hard to do but 
needs time)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \version[temporary] in mkiv

2015-04-11 Thread Hans Hagen

On 4/11/2015 1:50 PM, Otared Kavian wrote:

Hi Hans,

Thanks for your answer.
Is the file
strc-mat.mkiv
the only place where I should look in order to try to modify something and 
achieve the functionality needed in maths papers?


What do you need then? Math is handled in several files.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Placing a page without a blank page after.

2015-04-11 Thread John Culleton
On Thu, 09 Apr 2015 20:34:03 +0200
Pablo Rodriguez oi...@gmx.es wrote:

 On 04/08/2015 11:50 PM, John Culleton wrote:
  I have tried various things like
  \start/stop/standardmakeup,
  \start/stop/TEXpage and so on. I am trying to
  place a full sized page including bleeds
  without a blank page following. Sometimes It
  works but mostly it gives me a blank page
  following.
  
  What is the recommended solution?
 
 Hi John,
 
 I don’t know what you intend to do, but this
 might work (if I have done my guesswork
 right ;-)):
 
 \setuppagenumbering[alternative=doublesided]
 \starttext
 \startstandardmakeup[pagestate=start,
 doublesided=no] This is the page.
 \stopstandardmakeup
 This is another page.
 \stoptext
 
 If it doesn’t work, please send a minimal
 sample that describes what you have in mind.
 
 I hope it helps,
 
 
 Pablo

That worked! I didn't know about the pagestate
parameter.

Thanks!
-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
Updated PDF e-book: Create Book Covers with
Scribus 1.4.5 coming soon at
http://www.booklocker.com/!
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \version[temporary] in mkiv

2015-04-11 Thread Hans Hagen

On 4/11/2015 4:17 PM, Otared Kavian wrote:

On 11 Apr 2015, at 15:38, Hans Hagen pra...@wxs.nl wrote:
[…]
What do you need then? Math is handled in several files.



Hi,

something like the following definition for \placeformularef below, which would 
work in multine formulas (I don’t know how to write in the margin next to the 
number of the formula).

The output is attached.

% begin placeformula-ref.tex
\def\placeformularef[#1]{\doifmodeelse{proofreading}%
{\inrightmargin{\tt\txx #1}\placeformula[#1]}%
{\placeformula[#1]}}


less code

\def\placeformularef[#1]%
  {\doifmode{proofreading}{\inrightmargin{\infofont #1}%
   \placeformula[#1]}

but a built in mechanism would probably work a bit different (less 
potential interference)



\definereferenceformat[eqref][left=(,right=),text={formula }]

\setupformulas[location=right]

\enablemode[proofreading]

\starttext
We have
\placeformularef[eq:Square]
\startformula
a^2 + 2ab + b^2 = (a + b)^2,
\stopformula
for $a,b\in {\Bbb C}$. Also,
\placeformularef[]
\startformula
\startalign
\NC |x|^2 + |y|^2 \NC = (x + y|x + y). \NR[eq:Pythagore]
\NC \alpha^2 -2\alpha\beta + \beta^2 \NC = (\alpha - \beta)^2. \NR[eq:Identity]
\stopalign
\stopformula
\eqref[eq:Identity] is a consequence of \eqref[eq:Square].
\stoptext
% end placeformula-ref.tex

Thanks: OK






___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___