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) the 
>>> text in the above \mbox will be also in italic or slanted.
>> 
>> Math displayed formula text inheriting the style of the text appears in two 
>> books from first published in 1966 and 1980 that I checked.
>> 
>> So a math text command should probably support that style.
> 
> IIRC, that is also the case for the \text command in amsmath.

There might be two commands, one that inherits the text environment style, and 
one that keeps it in normal.


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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.


Math displayed formula text inheriting the style of the text appears in two 
books from first published in 1966 and 1980 that I checked.

So a math text command should probably support that style.


IIRC, that is also the case for the \text command in amsmath.

Aditya___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 \unexpanded\def\w{\mathortext\word\mathword} \fi

\appendtoks
\let\t\mathtext
\let\w\mathword
\to \everymathematics

because sometimes a \t or \w is part of an expansion so we need it to be 
defined then (for instance, Alan loves to put lots of complex math in 
textext)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 inheriting the style of the text appears in two 
books from first published in 1966 and 1980 that I checked.

So a math text command should probably support that style.


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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
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. This is why I
asked (1) what is the right method, and (2) what do others think about
the shorthand \t{}, similar to the shorthand \m{}?

Alan


On Sun, 8 Jul 2018 23:00:00 +0200

___
If your question is of interest to others as well, please add an entry 
to the Wiki!


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___