[NTG-context] text in mathematics

Hans Åberg haberg-1 at telia.com
Tue Jul 10 17:53:11 CEST 2018

> On 9 Jul 2018, at 21:27, Hans Åberg <haberg-1 at telia.com> wrote:
>
>> On 9 Jul 2018, at 17:48, Aditya Mahajan <adityam at umich.edu> wrote:
>>
>> On Mon, 9 Jul 2018, Hans Åberg wrote:
>>
>>> On 8 Jul 2018, at 23:00, Otared Kavian <otared at gmail.com> 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.

Also math and code (verbatim) might appear nested in Hoare logic and such.