According to a doc I found around
An \mbox within math mode does not use the current math font; rather it uses the typeface of the surrounding running text.
In math mode, I would like to write something like a_{\mbox{foo}}. If I use this, the foo will be quite big, too big. If I write a_{foo}, foo will be in italic.
What is the magic trick to have non-italic, small text?
What's the point of \mbox ? In LaTeX (and TeX) the word "box" means an unbreakable unit, whose contents are processed in text mode. \mbox is used when you want to keep some phrase from breaking at the end of a line. Occasionally it is used as a quick way to put a text-mode word or phrase inside a math display.
What is math mode? For many people the most useful part of LaTeX is the ability to typeset complex mathematical formulas. for the sake of simplicity, LaTeX separates the tasks of typesetting mathematics and typesetting normal text. This is achieved by the use of two operating modes, paragraph and math mode.
For display math mode, use $$... $$ or \[... \].
MBOX (sometimes known as Berkeley format) is a generic term for a family of related file formats used for storing collections of electronic mail messages. MBOX formats store all of the messages of an entire folder (not an entire mailbox) in a single database file and new messages are appended to the end of the file.
I personally prefer to use the \text{}
command provided by the AMS-LaTeX package. To use this, you need to include the statement
\usepackage{amsmath}
somewhere in your document preamble, and then in any mathematical environment,
a_{\text{foo}}
will produce the desired output. Section 6 of the User’s Guide for the amsmath Package mentions that the \mbox{}
equivalent is
a_{\mbox{\scriptsize foo}}
A final option is
a_{\mathrm{foo}}
which is what I used before I discovered AMS-LaTeX and the \text{}
command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With