[NTG-context] Changing the font size in an environment changes the behavior of a macro
Fabrice Couvreur
fabrice1.couvreur at gmail.com
Mon May 4 18:51:20 CEST 2020
Hi,
Sorry to insist but I cannot fix this problem.
Thanks for any help.
Fabrice
Le sam. 25 avr. 2020 à 00:13, Fabrice Couvreur <fabrice1.couvreur at gmail.com>
a écrit :
> Hi,
> This macro was written by Otared and it works well unless I change the
> size of the font (see the second graph).
> How to correct this problem ?
> Thanks for your help.
> Fabrice
>
> %%%% begin example
>
> \usemodule[pgfplots]
> \pgfplotsset{compat=newest}
>
> \define[2]\cscript{\start\switchtobodyfont[xitsbidi]\m{{\mathscript{#1}}_{#2}}\stop}
>
> \starttext
>
> \startmidaligned
> \starttikzpicture
> \startaxis
> \addplot {x};
> \node[above left] at (2,2) {\cscript{C}{f}};
> \stopaxis
> \stoptikzpicture
> \stopmidaligned
> \blank
> \startmidaligned
> \switchtobodyfont[9pt]
> \starttikzpicture
> \startaxis
> \addplot {x};
> \node[above left] at (2,2) {\cscript{C}{f}};
> \stopaxis
> \stoptikzpicture
> \stopmidaligned
>
> \stoptext
>
> %%%%end example
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200504/ed180858/attachment.htm>
More information about the ntg-context
mailing list