[NTG-context] Changing font for math function

2015-05-16 Thread Maggyero
Aditya Mahajan: By default, in all three formats the font for \log is mathupright rather than textrm. There needs to be a rationale for ConTeXt default to be different from other formats. Do you have any reference to a math book or journal that uses text fonts for \log-like operators? Thanks

Re: [NTG-context] Changing font for math function

2015-05-16 Thread Hans Hagen
On 5/16/2015 4:23 PM, Maggyero wrote: Aditya Mahajan: By default, in all three formats the font for \log is mathupright rather than textrm. There needs to be a rationale for ConTeXt default to be different from other formats. Do you have any reference to a math book or journal that

Re: [NTG-context] Changing font for math function

2015-05-16 Thread Hans Hagen
On 5/16/2015 2:24 AM, Aditya Mahajan wrote: On Sat, 16 May 2015, Maggyero wrote: Aditya Mahajan: The default should be \mathupright (as is the case in amstex and latex, and probably also plaintex). Hans Hagen: next beta: when one of the stylealternatives text mode else mathmode (default

Re: [NTG-context] Changing font for math function

2015-05-15 Thread Aditya Mahajan
On Sat, 16 May 2015, Maggyero wrote: Aditya Mahajan: The default should be \mathupright (as is the case in amstex and latex, and probably also plaintex). Hans Hagen: next beta: when one of the stylealternatives text mode else mathmode (default nothing == math upright) Hans Hagen: Because

[NTG-context] Changing font for math function

2015-05-15 Thread Maggyero
Aditya Mahajan: The default should be \mathupright (as is the case in amstex and latex, and probably also plaintex). Hans Hagen: next beta: when one of the stylealternatives text mode else mathmode (default nothing == math upright) Hans Hagen: Because like in \mtext, the \text command is

Re: [NTG-context] Changing font for math function

2015-05-13 Thread Hans Hagen
On 5/13/2015 5:51 PM, Maggyero wrote: Because like in \mtext, the \text command is ESSENTIAL (for the function names to have the mathcodes, kerning and ligatures of the text mode instead of the ones of the math mode). that is not needed because if you use a style known as text style a text

[NTG-context] Changing font for math function

2015-05-13 Thread Maggyero
Hans Hagen: mfunction will stay as it is also needed for tagged pdf and exporting (basically it's an apply math function thing) so if something else is needed another name/mechanism have to be made (with appropriate tagging) the label itself is a special case as it's optional (and is just

Re: [NTG-context] Changing font for math function

2015-05-12 Thread Aditya Mahajan
On Tue, 12 May 2015, Maggyero wrote: Hans Hagen wrote: for functions one can now use: \setupmathematics [functionstyle=\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

Re: [NTG-context] Changing font for math function

2015-05-12 Thread Mikael P. Sundqvist
On Tue, May 12, 2015 at 8:05 PM, Aditya Mahajan adit...@umich.edu wrote: Note that there is no consensus on how the `d` in calculus should be typeset. There are also \differentiald and \differentialD that map to unicode slots. Maybe not consensus, but see tug.org/TUGboat/tb18-1/tb54becc.pdf

Re: [NTG-context] Changing font for math function

2015-05-12 Thread Aditya Mahajan
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). This

Re: [NTG-context] Changing font for math function

2015-05-12 Thread Hans Hagen
On 5/12/2015 4:19 PM, Maggyero wrote: Hans Hagen wrote: for functions one can now use: \setupmathematics [functionstyle=\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

[NTG-context] Changing font for math function

2015-05-12 Thread Maggyero
Hans Hagen wrote: for functions one can now use: \setupmathematics [functionstyle=\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

[NTG-context] Changing font for math function

2015-05-12 Thread Maggyero
Sorry, I did 3 typos in my previous post. — First typo: 3. Using only \mathlabeltext with \setuplabeltext is also more consistent with the current \labeltext that works with \setuplabeltext. 3. Using only \mathlabeltext with \setupmathlabeltext is also more consistent with the current \labeltext

Re: [NTG-context] Changing font for math function

2015-05-11 Thread Otared Kavian
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

Re: [NTG-context] Changing font for math function

2015-05-11 Thread Otared Kavian
Thanks Hans! Out of curiosity I tried textcolor and textstyle as in \setupmathematics [functionstyle=, functioncolor=darkred, textstyle=bold, textcolor=blue] and discovered that these two work also… By the end of the week I’ll wikify these. Thanks and best regards: OK On 11 May 2015,

Re: [NTG-context] Changing font for math function

2015-05-11 Thread Hans Hagen
On 5/11/2015 9:07 AM, Otared Kavian wrote: 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

Re: [NTG-context] Changing font for math function

2015-05-11 Thread Hans Hagen
On 5/11/2015 7:08 PM, Aditya Mahajan wrote: \definealternativestyle [\v!sansnormal] [\ss\tf] %definealternativestyle [\v!sansbold][\ss\bf] \definealternativestyle [\v!serifnormal] [\rm\tf] \definealternativestyle [\v!serifbold] [\rm\bf] These appear to work. Note that sansbold is

Re: [NTG-context] Changing font for math function

2015-05-11 Thread Hans Hagen
On 5/11/2015 6:16 PM, Aditya Mahajan wrote: On Sun, 10 May 2015, Hans Hagen wrote: next beta: when one of the stylealternatives text mode else mathmode (default nothing == mathupright) \starttext \setupmathematics[functionstyle=,functioncolor=darkred] {\ss $\sin x$} {\bf $\sin x$}

Re: [NTG-context] Changing font for math function

2015-05-11 Thread Aditya Mahajan
On Mon, 11 May 2015, Hans Hagen wrote: On 5/11/2015 6:16 PM, Aditya Mahajan wrote: On Sun, 10 May 2015, Hans Hagen wrote: next beta: when one of the stylealternatives text mode else mathmode (default nothing == mathupright) \starttext \setupmathematics[functionstyle=,functioncolor=darkred]

Re: [NTG-context] Changing font for math function

2015-05-11 Thread Aditya Mahajan
On Sun, 10 May 2015, Hans Hagen wrote: next beta: when one of the stylealternatives text mode else mathmode (default nothing == mathupright) \starttext \setupmathematics[functionstyle=,functioncolor=darkred] {\ss $\sin x$} {\bf $\sin x$}

Re: [NTG-context] Changing font for math function

2015-05-10 Thread Aditya Mahajan
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}}

Re: [NTG-context] Changing font for math function

2015-05-10 Thread Aditya Mahajan
On Sun, 10 May 2015, Hans Hagen wrote: On 5/9/2015 4:16 PM, Aditya Mahajan wrote: On Sat, 9 May 2015, Aditya Mahajan wrote: On Sat, 9 May 2015, Hans Hagen wrote: i've added (uploading beta now) \setupmathematics [functionstyle=\ss, functioncolor=red] \starttext \startformula f =

Re: [NTG-context] Changing font for math function

2015-05-10 Thread Hans Hagen
On 5/10/2015 2:19 PM, Aditya Mahajan wrote: On Sun, 10 May 2015, Hans Hagen wrote: On 5/9/2015 4:16 PM, Aditya Mahajan wrote: On Sat, 9 May 2015, Aditya Mahajan wrote: On Sat, 9 May 2015, Hans Hagen wrote: i've added (uploading beta now) \setupmathematics [functionstyle=\ss,

Re: [NTG-context] Changing font for math function

2015-05-10 Thread Otared Kavian
Hi Hans, Thanks for the new feature in \setupmathematics. I did some testing of the feature on a several documents, , and followed the discussions you had with Aditya and Wolfgang. Everything works fine, except that when one tries to modify, for instance the definition of \liminf (in order to

Re: [NTG-context] Changing font for math function

2015-05-09 Thread Hans Hagen
On 5/9/2015 4:16 PM, Aditya Mahajan wrote: On Sat, 9 May 2015, Aditya Mahajan wrote: On Sat, 9 May 2015, Hans Hagen wrote: i've added (uploading beta now) \setupmathematics [functionstyle=\ss, functioncolor=red] \starttext \startformula f = \sin i\omega x^{\sin(x^{\sin(y)})}

Re: [NTG-context] Changing font for math function

2015-05-09 Thread Hans Hagen
On 5/9/2015 2:03 AM, Aditya Mahajan wrote: Hi, There is a question on TeX.SX asking how to change the font of \sin, \cos, etc. http://tex.stackexchange.com/q/243893/323 I looked at the code, and there does not appear to be an easy solution. The \mathfunctionlabeltext command has \mathupright

Re: [NTG-context] Changing font for math function

2015-05-09 Thread Wolfgang Schuster
Am 09.05.2015 um 13:46 schrieb Hans Hagen pra...@wxs.nl: On 5/9/2015 2:03 AM, Aditya Mahajan wrote: Hi, There is a question on TeX.SX asking how to change the font of \sin, \cos, etc. http://tex.stackexchange.com/q/243893/323 I looked at the code, and there does not appear to be an

Re: [NTG-context] Changing font for math function

2015-05-09 Thread Hans Hagen
On 5/9/2015 2:03 AM, Aditya Mahajan wrote: Hi, There is a question on TeX.SX asking how to change the font of \sin, \cos, etc. http://tex.stackexchange.com/q/243893/323 I looked at the code, and there does not appear to be an easy solution. The \mathfunctionlabeltext command has \mathupright

Re: [NTG-context] Changing font for math function

2015-05-09 Thread Wolfgang Schuster
Am 09.05.2015 um 02:03 schrieb Aditya Mahajan adit...@umich.edu: Hi, There is a question on TeX.SX asking how to change the font of \sin, \cos, etc. http://tex.stackexchange.com/q/243893/323 I looked at the code, and there does not appear to be an easy solution. The

Re: [NTG-context] Changing font for math function

2015-05-09 Thread Wolfgang Schuster
Am 09.05.2015 um 15:00 schrieb Hans Hagen pra...@wxs.nl: On 5/9/2015 1:56 PM, Wolfgang Schuster wrote: Am 09.05.2015 um 13:46 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl mailto:pra...@wxs.nl mailto:pra...@wxs.nl: On 5/9/2015 2:03 AM, Aditya Mahajan wrote: Hi, There is a

Re: [NTG-context] Changing font for math function

2015-05-09 Thread Hans Hagen
On 5/9/2015 1:56 PM, Wolfgang Schuster wrote: Am 09.05.2015 um 13:46 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: On 5/9/2015 2:03 AM, Aditya Mahajan wrote: Hi, There is a question on TeX.SX asking how to change the font of \sin, \cos, etc.

Re: [NTG-context] Changing font for math function

2015-05-09 Thread Aditya Mahajan
On Sat, 9 May 2015, Hans Hagen wrote: i've added (uploading beta now) \setupmathematics [functionstyle=\ss, functioncolor=red] \starttext \startformula f = \sin i\omega x^{\sin(x^{\sin(y)})} \stopformula \stoptext best test this because Mojca will at some point push into tex live (at

Re: [NTG-context] Changing font for math function

2015-05-09 Thread Aditya Mahajan
On Sat, 9 May 2015, Aditya Mahajan wrote: On Sat, 9 May 2015, Hans Hagen wrote: i've added (uploading beta now) \setupmathematics [functionstyle=\ss, functioncolor=red] \starttext \startformula f = \sin i\omega x^{\sin(x^{\sin(y)})} \stopformula \stoptext best test this because

[NTG-context] Changing font for math function

2015-05-08 Thread Aditya Mahajan
Hi, There is a question on TeX.SX asking how to change the font of \sin, \cos, etc. http://tex.stackexchange.com/q/243893/323 I looked at the code, and there does not appear to be an easy solution. The \mathfunctionlabeltext command has \mathupright hard coded. One option is to keep this