[NTG-context] Changing font for math function

Otared Kavian otared at gmail.com
Mon May 11 09:07:48 CEST 2015


Hi Aditya,

Thanks for your remark: indeed with the correct use of \underline, I get what was intended, but somehow before yesterday ConTeXt was more tolerant and for years it accepted my wrong definition of \liminf…
However, with the new features of \setupmathematics, the underlined word lim has two colors: for instance with the option
		\setupmathematics [functioncolor=red]
the word lim is in red, but the underline is in black.

If I understand correctly, the option
	\setupmathematics [functionstyle=\normalrm, functioncolor=red]
uses the normal roman font in math mode, that is math italic if for instance one is using LM roman as text font. Am I right?

A final question: assuming one needs somewhere a command named weak limit, that is \weaklim, I tried the following definition:
	\definemathcommand [weaklim]  [limop] {\mfunctionlabeltext{weaklim}}
but I don’t get the word weaklim printed: what am I doing wrong?
Here is the example:

% begin weaklim.tex
\definemathcommand [weaklim]  [limop] {\mfunctionlabeltext{weaklim}}
\starttext

If $\phi_{n}(x) := \sin(n|x|)$, then $\weaklim_{n\to\infty}\phi_{n} = 0$.

\stoptext
% end weaklim.tex 

Best regards: OK


> On 11 May 2015, at 04:47, Aditya Mahajan <adityam at umich.edu> wrote:
> 
> On Sun, 10 May 2015, Otared Kavian wrote:
> 
>> Everything works fine, except that when one tries to modify, for instance the definition of \liminf (in order to have it as an underlined lim), ConTeXt reports an error.
> 
>> %\definemathcommand [liminf]  [limop] {\underline\mfunctionlabeltext{lim}}
> 
> \underline{....} takes an argument.
> 
> Aditya
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________



More information about the ntg-context mailing list