![](https://secure.gravatar.com/avatar/d558f7d2c62b984d42b1e276bbdfc2c7.jpg?s=120&d=mm&r=g)
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 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.