Re: [NTG-context] text in mathematics

2018-07-10 Thread Hans Åberg
> On 9 Jul 2018, at 21:27, Hans Åberg wrote: > >> On 9 Jul 2018, at 17:48, Aditya Mahajan wrote: >> >> On Mon, 9 Jul 2018, Hans Åberg wrote: >> >>> On 8 Jul 2018, at 23:00, Otared Kavian wrote: The advantage being that if the above formula appears in an environment such as a

Re: [NTG-context] text in mathematics

2018-07-09 Thread Hans Åberg
> On 9 Jul 2018, at 17:48, Aditya Mahajan wrote: > > On Mon, 9 Jul 2018, Hans Åberg wrote: > >> On 8 Jul 2018, at 23:00, Otared Kavian wrote: >>> The advantage being that if the above formula appears in an environment >>> such as a Theorem (where the text is typeset in italic, or slanted)

Re: [NTG-context] text in mathematics

2018-07-09 Thread Aditya Mahajan
On Mon, 9 Jul 2018, Hans Åberg wrote: On 8 Jul 2018, at 23:00, Otared Kavian wrote: The advantage being that if the above formula appears in an environment such as a Theorem (where the text is typeset in italic, or slanted) the text in the above \mbox will be also in italic or slanted.

Re: [NTG-context] text in mathematics

2018-07-09 Thread Hans Hagen
On 7/9/2018 11:39 AM, Wolfgang Schuster wrote: Hi Alan, you should at least limit the scope of the command to math mode \appendtoks     \let\t\mathtext     \let\w\mathword \to \everymathematics something \ifdefined\t \else \unexpanded\def\t{\mathortext\text\mathtext} \fi \ifdefined\w \else

Re: [NTG-context] text in mathematics

2018-07-09 Thread Hans Åberg
> On 8 Jul 2018, at 23:00, Otared Kavian wrote: > > The advantage being that if the above formula appears in an environment such > as a Theorem (where the text is typeset in italic, or slanted) the text in > the above \mbox will be also in italic or slanted. Math displayed formula text

Re: [NTG-context] text in mathematics

2018-07-09 Thread Wolfgang Schuster
Hi Alan, you should at least limit the scope of the command to math mode \appendtoks \let\t\mathtext \let\w\mathword \to \everymathematics Wolfgang Alan Braslau 8. Juli 2018 um 23:11 In many "less-rigorous" uses of equations, there is an abundant need

Re: [NTG-context] text in mathematics

2018-07-08 Thread Alan Braslau
In many "less-rigorous" uses of equations, there is an abundant need to include words (text) in mathematics, and using \mathtext{} or \mbox{} or whatever is unwieldy. Readable subscripts, self-explanatory variable names, etc. might be text and not symbols. These situations can be very common.

Re: [NTG-context] text in mathematics

2018-07-08 Thread Otared Kavian
Hi Alan, Wolfgang and Hans Åberg, As far as I am concerned, when I have to add a text to a math formula I use \mbox, as in the example \startformula A := \left\{f : {\Bbb R}^2 \longrightarrow {\Bbb R} \; ; \; f \mbox{ is measurable and } \int_{{\Bbb R}^2}|f(x)|dx < \infty \right\}.

Re: [NTG-context] text in mathematics

2018-07-08 Thread Wolfgang Schuster
Hi Alan, 1. The correct way to use \mathrm is {\mathrm ...} because it is a switch like \rm for text mode. 2. \mathrm is the wrong method to write text in formulas because the command changes only the math alphabet. This means no ligatures, kerning or other characters like umlauts. 3. The

Re: [NTG-context] text in mathematics

2018-07-07 Thread Hans Åberg
> On 7 Jul 2018, at 16:04, Alan Braslau wrote: > Does it drive you crazy to see TeX users write $t = time$? > (I see this all of the time by LaTeX users in Beamer presentations.) > > One can do better writing $t = {\rm time}$ (maybe) > or in ConTeXt $t = \mathrm{time}$. > Sometimes, too, I

[NTG-context] text in mathematics

2018-07-07 Thread Alan Braslau
Hello ConTeXt users, Does it drive you crazy to see TeX users write $t = time$? (I see this all of the time by LaTeX users in Beamer presentations.) One can do better writing $t = {\rm time}$ (maybe) or in ConTeXt $t = \mathrm{time}$. Sometimes, too, I might write $t = \text{time}$. We also