From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91428 Path: news.gmane.org!not-for-mail From: Maggyero Newsgroups: gmane.comp.tex.context Subject: Changing font for math function Date: Tue, 12 May 2015 16:19:38 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2101000331==" X-Trace: ger.gmane.org 1431440477 2190 80.91.229.3 (12 May 2015 14:21:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2015 14:21:17 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue May 12 16:21:02 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YsB3M-0005Ti-RQ for gctc-ntg-context-518@m.gmane.org; Tue, 12 May 2015 16:21:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 062FE10210 for ; Tue, 12 May 2015 16:21:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Eqv_hmqKezpW for ; Tue, 12 May 2015 16:20:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 276121022D for ; Tue, 12 May 2015 16:19:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F135C101FA for ; Tue, 12 May 2015 16:19:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZHeZwWwBPQo2 for ; Tue, 12 May 2015 16:19:47 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 5F970101F9 for ; Tue, 12 May 2015 16:19:47 +0200 (CEST) Original-Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t4CEJd5a009858 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 12 May 2015 16:19:42 +0200 Original-Received: by iepk2 with SMTP id k2so829645iep.3 for ; Tue, 12 May 2015 07:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=LuEpt8/JhUGJLGUPaLoUixYs/B/fvzx+FPhRoUMSY/U=; b=Ox/uVFeoJ0u58LK4bfqSYg8k5kEGsXOh+3nbH1lxIOFbGtjMfrcD/rqkF0keO7mY1h KwT8Pp/uzGEdfpLJSFK+CARVhwfEzOgXHdWUr5snWYqrVs+yVNgdg0USbFG7fGqdx15b Cgb8ekHLGeJ5U2DsVfo3O4mYwaeyKLIVUo6674qIvily00At8TG7m3vjSGW/CcN0YL5l jGepAlLimCXoc3sb4P+63VX03bu06sgBJvErvahiUEUiA5F0N/8wAHa7EOfEHUgf9C14 k0RVqxYINXxWAStmDhQ22kMAoUHrGPdaN+H09FtPRo3NtOnIK/twqhZLGDqFbKCH88ur 6j7w== X-Received: by 10.43.39.1 with SMTP id tk1mr1693774icb.26.1431440378484; Tue, 12 May 2015 07:19:38 -0700 (PDT) Original-Received: by 10.36.65.80 with HTTP; Tue, 12 May 2015 07:19:38 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::22c; country=US; region=Iowa; city=Council Bluffs; latitude=41.2324; longitude=-95.8762; http://maps.google.com/maps?q=41.2324,-95.8762&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Or2jFqB - 1df6667a05aa - 20150512 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of maggyero@gmail.com designates 2607:f8b0:4001:c03::22c as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2607:f8b0:4001:c03::22c; envelope-from=; helo=mail-ie0-x22c.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:91428 Archived-At: --===============2101000331== Content-Type: multipart/alternative; boundary=bcaec51dd4dd46dd420515e32f3a --bcaec51dd4dd46dd420515e32f3a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable >Hans Hagen wrote: >for functions one can now use: >\setupmathematics > [functionstyle=3D\rm] Fantastic! Thank you Hans, it is way better than the old mechanism \setmathfunctionstyle. Now I have a few suggestions to improve the consistency of this new mechanism. First, I think this functionstyle key a) should be better called 'mathlabelstyle'; b) be default to \tf to make the FONT ALTERNATIVE always upright; c) be linked to this following new definition in math-ini.mkiv: + \unexpanded\def\mathlabel#1{\text{\mathlabelstyle #1}} so that \mathlabel can be used for labeling math objects like functions but ALSO for labeling variables with subscripts (e.g., \rho_{\mathlabel{air}}). The hardcoded \text in the definition of \mathlabel is used here for these 5 reasons: 1. It CAN make the FONT STYLE adaptative to the surrounding style (if the \mathlabelstyle inside=E2=80=94defined by the user in \setupmathematics[mathlabelstyle=3D]=E2=80=94does not specify another FONT = STYLE like \rm, \ss or \tt). 2. It uses proper mathcodes (hyphens are not converted to minus binary operators=E2=80=94useful if one wants to call its function or subscript 'low-frequency' for instance=E2=80=94, apostrophes are not converted to primes=E2=80=94useful if one wants to call its function 'Riemann's function= ' for instance). 3. It uses proper kerning (if one wants to call its function or subscript 'WALL' for instance). 4. It uses proper ligatures (if one wants to call its function or subscript 'efficiency' for instance). 5. It avoids the user having to add \kern\zeropoint to prevent vertical alignment to the middle of the fraction bar when used inside \mathop for one-character function names (if one wants to call its function 'd' for instance). That \mathlabel should replace \mfunction which should be removed, and \mfunctionlabeltext should be removed as well and one should directly use the already defined \mathlabeltext instead, for these 3 reasons: 1. Every command containing the word 'labeltext' should not have a style attached to it. 2. The word 'function' is misleading because \mfunction and \mfunctionlabeltext do not create a \mathop atom and it makes the user believe its usage is restricted for labeling functions while the command should also be used for labeling variable with subscripts (e.g., \rho_{\mathlabel{air}} is far better than \rho_\mfunction{air}). 3. Using only \mathlabeltext with \setuplabeltext is also more consistent with the current \labeltext that works with \setuplabeltext. Thus the function definitions in math-def.mkiv should be changed: - \definemathcommand [arccos] [nolop] {\mfunctionlabeltext{arccos}} + \definemathcommand [arccos] [nolop] {\mathlabel{\mathlabeltext{arccos}}} etc. And I think you should add in this file the definition of the differential operator which is so widely used in mathematics, so that users have at their disposal once for all a proper implementation of this operator and don't have to make their own hack: + \definemathcommand[diff]{\mathop{\mathlabel{d}}\mathopen{}} With this new \mathlabel command, the user now have a convenient and consistent way to label its math objets (functions and variables with subscripts): \definemathcommand[arsinh][nolop]{\mathlabel{arsinh}} \starttext $\arsinh z =3D \ln\bigl(z + \sqrt{z^2 + 1}\bigr)$\par $\rho_{\mathlabel{air}} =3D \frac{p}{R_{\mathlabel{specific}}T}$\par \stoptext >Hans Hagen wrote: >\unprotect >\def\v!sansnormal {sansnormal} >%def\v!sansbold {sansbold} >\def\v!serifnormal{serifnormal} >\def\v!serifbold {serifbold} >\definealternativestyle [\v!sansnormal] [\ss\tf] >%definealternativestyle [\v!sansbold] [\ss\bf] >\definealternativestyle [\v!serifnormal] [\rm\tf] >\definealternativestyle [\v!serifbold] [\rm\bf] >\protect In this case, for completeness, I would also add the definitions for the remaining style \tt: \def\v!mononormal {mononormal} \def\v!monobold {monobold} \definealternativestyle [\v!mononormal] [\tt\tf] \definealternativestyle [\v!monobold] [\tt\bf] >Aditya Mahajan wrote: >\sin etc should not behave like \text{...}. \text should adapt to the surrounding style while \mathoptext should not. In particular, in the following > {\ss $\sin x$} > {\bf $\sin x$} >\sin should be in normal text upright font and not adapted to the surrounded text. >Is it possible to set a value of functionstyle so that the surrounding text font styles are ignored (but the font size is not). You should try \mathop{\text{\rm\tf sin}} or \mathoptext{\rm\tf sin} (Hans defined this \mathoptext in math-ini.mkiv as equal to \mathop#1{\text{1#}}), or equivalently but better: \mathop{\mathlabel{sin}} with \setupmathematics[mathlabelstyle=3D\rm\tf] with the new command \mathlabel that I have defined above. And in my opinion, names for operators and subscripts should all be upright, that is adaptative to the surrounding TEXT STYLE (\rm, \ss and \tt) BUT not adaptative to the surrounding TEXT ALTERNATIVE or MATH ALTERNATIVE (\it, \bi, \sl, \bs) and stay in the normal alternative \tf (upright). So for your case it becomes simply \mathop{\text{\tf sin}} or equivalently but better: \mathop{\mathlabel{sin}} with \setupmathematics[mathlabelstyle=3D\tf]. About \mathupright: it is just a wrapper for \rm\tf. Better use \text{\rm\tf} or equivalently \mathop{\mathlabel{}} with \setupmathematics[mathlabelstyle=3D\rm\tf]. Here is a little example showing the behaviour of the new command \mathlabel defined above: \define\mathlabelstyle{\tf} % I don't have access to the last beta yet so let's assume that the key 'mathlabelstyle' (called by Hans 'functionstyle' so far) of \setupmathematics is implemented this way, with the default value \tf (Aditya prefers \rm\tf as the default value so it is just a matter of taste). \define[1]\mathlabel{\text{\mathlabelstyle #1}} \define\function{\dosingleempty\dofunction} \def\dofunction[#1]#2{% \iffirstargument \doifelse{#1}{limop}{\mathlimop{\mathlabel{#2}}}{\mathop{\mathlabel{#2}}} \else \mathop{\mathlabel{#2}} \fi} \definemathcommand[arsinh][op]{\mathlabel{arsinh}} \startbuffer $\arsinh x\ \text{and}\ n_{\mathlabel{red}}$ \stopbuffer \starttext \defineparagraphs[myparagraphs][n=3D5, rule=3Don] \setupparagraphs[myparagraphs][1][width=3D\dimexpr 0.3\textwidth\relax] \setupparagraphs[myparagraphs][2][width=3D\dimexpr 0.3\textwidth\relax] \setupparagraphs[myparagraphs][3][width=3D\dimexpr 0.3\textwidth\relax] \section{{\tt \backslash setupmathematics[mathlabelstyle=3D\backslash tf]} (default)} \startmyparagraphs \switchtobodyfont[rm] {\tt \backslash switchtobodyfont[rm]}\crlf {\tt \backslash tf}: {\tf \getbuffer}\par {\tt \backslash bf}: {\bf \getbuffer}\par {\tt \backslash it}: {\it \getbuffer}\par {\tt \backslash bi}: {\bi \getbuffer}\par {\tt \backslash sl}: {\sl \getbuffer}\par {\tt \backslash bs}: {\bs \getbuffer}\par \nextmyparagraphs \switchtobodyfont[ss] {\tt \backslash switchtobodyfont[ss]}\crlf {\tt \backslash tf}: {\tf \getbuffer}\par {\tt \backslash bf}: {\bf \getbuffer}\par {\tt \backslash it}: {\it \getbuffer}\par {\tt \backslash bi}: {\bi \getbuffer}\par {\tt \backslash sl}: {\sl \getbuffer}\par {\tt \backslash bs}: {\bs \getbuffer}\par \nextmyparagraphs \switchtobodyfont[tt] {\tt \backslash switchtobodyfont[tt]}\crlf {\tt \backslash tf}: {\tf \getbuffer}\par {\tt \backslash bf}: {\bf \getbuffer}\par {\tt \backslash it}: {\it \getbuffer}\par {\tt \backslash bi}: {\bi \getbuffer}\par {\tt \backslash sl}: {\sl \getbuffer}\par {\tt \backslash bs}: {\bs \getbuffer}\par \stopmyparagraphs \section{{\tt \backslash setupmathematics[mathlabelstyle=3D\backslash rm\backslash tf]} (Aditya's setup)} \define\mathlabelstyle{\rm\tf} \startmyparagraphs \switchtobodyfont[rm] {\tt \backslash switchtobodyfont[rm]}\crlf {\tt \backslash tf}: {\tf \getbuffer}\par {\tt \backslash bf}: {\bf \getbuffer}\par {\tt \backslash it}: {\it \getbuffer}\par {\tt \backslash bi}: {\bi \getbuffer}\par {\tt \backslash sl}: {\sl \getbuffer}\par {\tt \backslash bs}: {\bs \getbuffer}\par \nextmyparagraphs \switchtobodyfont[ss] {\tt \backslash switchtobodyfont[ss]}\crlf {\tt \backslash tf}: {\tf \getbuffer}\par {\tt \backslash bf}: {\bf \getbuffer}\par {\tt \backslash it}: {\it \getbuffer}\par {\tt \backslash bi}: {\bi \getbuffer}\par {\tt \backslash sl}: {\sl \getbuffer}\par {\tt \backslash bs}: {\bs \getbuffer}\par \nextmyparagraphs \switchtobodyfont[tt] {\tt \backslash switchtobodyfont[tt]}\crlf {\tt \backslash tf}: {\tf \getbuffer}\par {\tt \backslash bf}: {\bf \getbuffer}\par {\tt \backslash it}: {\it \getbuffer}\par {\tt \backslash bi}: {\bi \getbuffer}\par {\tt \backslash sl}: {\sl \getbuffer}\par {\tt \backslash bs}: {\bs \getbuffer}\par \stopmyparagraphs \section{{\tt \backslash setupmathematics[mathlabelstyle=3D\backslash bf]}} \define\mathlabelstyle{\bf} \startmyparagraphs \switchtobodyfont[rm] {\tt \backslash switchtobodyfont[rm]}\crlf {\tt \backslash tf}: {\tf \getbuffer}\par {\tt \backslash bf}: {\bf \getbuffer}\par {\tt \backslash it}: {\it \getbuffer}\par {\tt \backslash bi}: {\bi \getbuffer}\par {\tt \backslash sl}: {\sl \getbuffer}\par {\tt \backslash bs}: {\bs \getbuffer}\par \nextmyparagraphs \switchtobodyfont[ss] {\tt \backslash switchtobodyfont[ss]}\crlf {\tt \backslash tf}: {\tf \getbuffer}\par {\tt \backslash bf}: {\bf \getbuffer}\par {\tt \backslash it}: {\it \getbuffer}\par {\tt \backslash bi}: {\bi \getbuffer}\par {\tt \backslash sl}: {\sl \getbuffer}\par {\tt \backslash bs}: {\bs \getbuffer}\par \nextmyparagraphs \switchtobodyfont[tt] {\tt \backslash switchtobodyfont[tt]}\crlf {\tt \backslash tf}: {\tf \getbuffer}\par {\tt \backslash bf}: {\bf \getbuffer}\par {\tt \backslash it}: {\it \getbuffer}\par {\tt \backslash bi}: {\bi \getbuffer}\par {\tt \backslash sl}: {\sl \getbuffer}\par {\tt \backslash bs}: {\bs \getbuffer}\par \stopmyparagraphs \stoptext Maggyero --bcaec51dd4dd46dd420515e32f3a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
>Hans Hagen wrote:
>for functions one= can now use:
>\setupmathematics
> =C2=A0 [functi= onstyle=3D\rm]

Fantastic! Thank you Hans, it is wa= y better than the old mechanism \setmathfunctionstyle. Now I have a few sug= gestions to improve the consistency of this new mechanism. First, I think t= his functionstyle key
a) should be better called 'mathlabelst= yle';
b) be default to \tf to make the FONT ALTERNATIVE alway= s upright;
c) be linked to this following new definition in math-= ini.mkiv:

+ \unexpanded\def\mathlabel#1{\text{\mat= hlabelstyle #1}}

so that \mathlabel can be used fo= r labeling math objects like functions but ALSO for labeling variables with= subscripts (e.g., \rho_{\mathlabel{air}}). The hardcoded \text in the defi= nition of \mathlabel is used here for these 5 reasons:
1. It CAN = make the FONT STYLE adaptative to the surrounding style (if the \mathlabels= tyle inside=E2=80=94defined by the user in \setupmathematics[mathlabelstyle= =3D]=E2=80=94does not specify another FONT STYLE like \rm, \ss or \tt).
2. It uses proper mathcodes (hyphens are not converted to minus bina= ry operators=E2=80=94useful if one wants to call its function or subscript = 'low-frequency' for instance=E2=80=94, apostrophes are not converte= d to primes=E2=80=94useful if one wants to call its function 'Riemann&#= 39;s function' for instance).
3. It uses proper kerning (if o= ne wants to call its function or subscript 'WALL' for instance).
4. It uses proper ligatures (if one wants to call its function or s= ubscript 'efficiency' for instance).
5. It avoids the use= r having to add \kern\zeropoint to prevent vertical alignment to the middle= of the fraction bar when used inside \mathop for one-character function na= mes (if one wants to call its function 'd' for instance).

That \mathlabel should replace \mfunction which should be r= emoved, and \mfunctionlabeltext should be removed as well and one should di= rectly use the already defined \mathlabeltext instead, for these 3 reasons:=
1. Every command containing the word 'labeltext' should = not have a style attached to it.
2. The word 'function' i= s misleading because \mfunction and \mfunctionlabeltext do not create a \ma= thop atom and it makes the user believe its usage is restricted for labelin= g functions while the command should also be used for labeling variable wit= h subscripts (e.g., \rho_{\mathlabel{air}} is far better than \rho_\mfuncti= on{air}).
3. Using only \mathlabeltext with \setuplabeltext is al= so more consistent with the current \labeltext that works with \setuplabelt= ext.

Thus the function definitions in math-def.mki= v should be changed:

- \definemathcommand [arccos]= =C2=A0[nolop] {\mfunctionlabeltext{arccos}}
+ \definemathcommand= [arccos] =C2=A0[nolop] {\mathlabel{\mathlabeltext{arccos}}}
etc.=

And I think you should add in this file the defin= ition of the differential operator which is so widely used in mathematics, = so that users have at their disposal once for all a proper implementation o= f this operator and don't have to make their own hack:

+ \definemathcommand[diff]{\mathop{\mathlabel{d}}\mathopen{}}

With this new \mathlabel command, the user now have a = convenient and consistent way to label its math objets (functions and varia= bles with subscripts):

\definemathcommand[arsinh][= nolop]{\mathlabel{arsinh}}

\starttext
$\= arsinh z =3D \ln\bigl(z + \sqrt{z^2 + 1}\bigr)$\par
$\rho_{\mathl= abel{air}} =3D \frac{p}{R_{\mathlabel{specific}}T}$\par
\stoptext=

>Hans Hagen wrote:
>\unprotect
>\def\v!sansnormal {sansnormal}
>%def\v!sansbold = =C2=A0 {sansbold}
>\def\v!serifnormal{serifnormal}
&= gt;\def\v!serifbold =C2=A0{serifbold}
>\definealternativestyle= [\v!sansnormal] =C2=A0[\ss\tf]
>%definealternativestyle [\v!s= ansbold] =C2=A0 =C2=A0[\ss\bf]
>\definealternativestyle [\v!se= rifnormal] [\rm\tf]
>\definealternativestyle [\v!serifbold] = =C2=A0 [\rm\bf]
>\protect

In this cas= e, for completeness, I would also add the definitions for the remaining sty= le \tt:

\def\v!mononormal {mononormal}
\= def\v!monobold {monobold}
\definealternativestyle [\v!mononormal]= =C2=A0[\tt\tf]
\definealternativestyle [\v!monobold] =C2=A0 =C2= =A0[\tt\bf]

>Aditya Mahajan wrote:
&g= t;\sin etc should not behave like \text{...}. \text should adapt to the sur= rounding style while \mathoptext should not. In particular, in the followin= g
> =C2=A0 {\ss $\sin x$}
> =C2=A0 {\bf $\sin x$}=
>\sin should be in normal text upright font and not adapted t= o the surrounded text.
>Is it possible to set a value of funct= ionstyle so that the surrounding text font styles are ignored (but the font= size is not).

You should try \mathop{\text{\rm\tf= sin}} or \mathoptext{\rm\tf sin} (Hans defined this \mathoptext in math-in= i.mkiv as equal to \mathop#1{\text{1#}}), or equivalently but better: \math= op{\mathlabel{sin}} with \setupmathematics[mathlabelstyle=3D\rm\tf] with th= e new command \mathlabel that I have defined above.

And in my opinion, names for operators and subscripts should all be uprig= ht, that is adaptative to the surrounding TEXT STYLE (\rm, \ss and \tt) BUT= not adaptative to the surrounding TEXT ALTERNATIVE or MATH ALTERNATIVE (\i= t, \bi, \sl, \bs) and stay in the normal alternative \tf (upright). So for = your case it becomes simply \mathop{\text{\tf sin}} or equivalently =C2=A0b= ut better: \mathop{\mathlabel{sin}} with \setupmathematics[mathlabelstyle= =3D\tf].

About \mathupright: it is just a wrapper = for \rm\tf. Better use \text{\rm\tf} or equivalently \mathop{\mathlabel{}} = with \setupmathematics[mathlabelstyle=3D\rm\tf].

H= ere is a little example showing the behaviour of the new command \mathlabel= defined above:


\define\mathlabelst= yle{\tf} % I don't have access to the last beta yet so let's assume= that the key 'mathlabelstyle' (called by Hans 'functionstyle&#= 39; so far) of \setupmathematics is implemented this way, with the default = value \tf (Aditya prefers \rm\tf as the default value so it is just a matte= r of taste).
\define[1]\mathlabel{\text{\mathlabelstyle #1}}

\define\function{\dosingleempty\dofunction}
= \def\dofunction[#1]#2{%
=C2=A0 =C2=A0 \iffirstargument
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 \doifelse{#1}{limop}{\mathlimop{\mathlabel{#2}}= }{\mathop{\mathlabel{#2}}}
=C2=A0 =C2=A0 \else
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 \mathop{\mathlabel{#2}}
=C2=A0 =C2=A0 \fi}

\definemathcommand[arsinh][op]{\mathlabel{arsinh}}<= /div>

\startbuffer
=C2=A0 =C2=A0 $\arsinh x\ \= text{and}\ n_{\mathlabel{red}}$
\stopbuffer

<= div>\starttext
\defineparagraphs[myparagraphs][n=3D5, rule=3Don]<= /div>
\setupparagraphs[myparagraphs][1][width=3D\dimexpr 0.3\textwidth\= relax]
\setupparagraphs[myparagraphs][2][width=3D\dimexpr 0.3\tex= twidth\relax]
\setupparagraphs[myparagraphs][3][width=3D\dimexpr = 0.3\textwidth\relax]

\section{{\tt \backslash setu= pmathematics[mathlabelstyle=3D\backslash tf]} (default)}

\startmyparagraphs
\switchtobodyfont[rm]
{\tt \b= ackslash switchtobodyfont[rm]}\crlf
{\tt \backslash tf}: {\tf \ge= tbuffer}\par
{\tt \backslash bf}: {\bf \getbuffer}\par
= {\tt \backslash it}: {\it \getbuffer}\par
{\tt \backslash bi}: {\= bi \getbuffer}\par
{\tt \backslash sl}: {\sl \getbuffer}\par
{\tt \backslash bs}: {\bs \getbuffer}\par
\nextmyparagraphs=

\switchtobodyfont[ss]
{\tt \backslash s= witchtobodyfont[ss]}\crlf
{\tt \backslash tf}: {\tf \getbuffer}\p= ar
{\tt \backslash bf}: {\bf \getbuffer}\par
{\tt \back= slash it}: {\it \getbuffer}\par
{\tt \backslash bi}: {\bi \getbuf= fer}\par
{\tt \backslash sl}: {\sl \getbuffer}\par
{\tt= \backslash bs}: {\bs \getbuffer}\par
\nextmyparagraphs

\switchtobodyfont[tt]
{\tt \backslash switchtobod= yfont[tt]}\crlf
{\tt \backslash tf}: {\tf \getbuffer}\par
{\tt \backslash bf}: {\bf \getbuffer}\par
{\tt \backslash it}:= {\it \getbuffer}\par
{\tt \backslash bi}: {\bi \getbuffer}\par
{\tt \backslash sl}: {\sl \getbuffer}\par
{\tt \backslas= h bs}: {\bs \getbuffer}\par
\stopmyparagraphs

\section{{\tt \backslash setupmathematics[mathlabelstyle=3D\backslash= rm\backslash tf]} (Aditya's setup)}
\define\mathlabelstyle{\= rm\tf}

\startmyparagraphs
\switchtobodyf= ont[rm]
{\tt \backslash switchtobodyfont[rm]}\crlf
{\tt= \backslash tf}: {\tf \getbuffer}\par
{\tt \backslash bf}: {\bf \= getbuffer}\par
{\tt \backslash it}: {\it \getbuffer}\par
{\tt \backslash bi}: {\bi \getbuffer}\par
{\tt \backslash sl}: = {\sl \getbuffer}\par
{\tt \backslash bs}: {\bs \getbuffer}\par
\nextmyparagraphs

\switchtobodyfont[ss]
{\tt \backslash switchtobodyfont[ss]}\crlf
{\tt \backslas= h tf}: {\tf \getbuffer}\par
{\tt \backslash bf}: {\bf \getbuffer}= \par
{\tt \backslash it}: {\it \getbuffer}\par
{\tt \ba= ckslash bi}: {\bi \getbuffer}\par
{\tt \backslash sl}: {\sl \getb= uffer}\par
{\tt \backslash bs}: {\bs \getbuffer}\par
\n= extmyparagraphs

\switchtobodyfont[tt]
{\= tt \backslash switchtobodyfont[tt]}\crlf
{\tt \backslash tf}: {\t= f \getbuffer}\par
{\tt \backslash bf}: {\bf \getbuffer}\par
=
{\tt \backslash it}: {\it \getbuffer}\par
{\tt \backslash bi= }: {\bi \getbuffer}\par
{\tt \backslash sl}: {\sl \getbuffer}\par=
{\tt \backslash bs}: {\bs \getbuffer}\par
\stopmyparag= raphs

\section{{\tt \backslash setupmathematics[ma= thlabelstyle=3D\backslash bf]}}
\define\mathlabelstyle{\bf}
=

\startmyparagraphs
\switchtobodyfont[rm]
{\tt \backslash switchtobodyfont[rm]}\crlf
{\tt \backslash = tf}: {\tf \getbuffer}\par
{\tt \backslash bf}: {\bf \getbuffer}\p= ar
{\tt \backslash it}: {\it \getbuffer}\par
{\tt \back= slash bi}: {\bi \getbuffer}\par
{\tt \backslash sl}: {\sl \getbuf= fer}\par
{\tt \backslash bs}: {\bs \getbuffer}\par
\nex= tmyparagraphs

\switchtobodyfont[ss]
{\tt= \backslash switchtobodyfont[ss]}\crlf
{\tt \backslash tf}: {\tf = \getbuffer}\par
{\tt \backslash bf}: {\bf \getbuffer}\par
{\tt \backslash it}: {\it \getbuffer}\par
{\tt \backslash bi}:= {\bi \getbuffer}\par
{\tt \backslash sl}: {\sl \getbuffer}\par
{\tt \backslash bs}: {\bs \getbuffer}\par
\nextmyparagra= phs

\switchtobodyfont[tt]
{\tt \backslas= h switchtobodyfont[tt]}\crlf
{\tt \backslash tf}: {\tf \getbuffer= }\par
{\tt \backslash bf}: {\bf \getbuffer}\par
{\tt \b= ackslash it}: {\it \getbuffer}\par
{\tt \backslash bi}: {\bi \get= buffer}\par
{\tt \backslash sl}: {\sl \getbuffer}\par
{= \tt \backslash bs}: {\bs \getbuffer}\par
\stopmyparagraphs
<= div>\stoptext


Maggyero
--bcaec51dd4dd46dd420515e32f3a-- --===============2101000331== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============2101000331==--