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

Hans Hagen pragma at wxs.nl
Sun Apr 12 00:41:41 CEST 2015


On 4/11/2015 4:17 PM, Otared Kavian wrote:
>> On 11 Apr 2015, at 15:38, Hans Hagen <pragma at 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 at 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
-----------------------------------------------------------------


More information about the ntg-context mailing list