Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LaTeX math mode and mbox mode

Tags:

latex

tex

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?

like image 820
Stefano Borini Avatar asked Aug 06 '09 15:08

Stefano Borini


People also ask

For what mbox is used in LaTeX?

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 in LaTeX?

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.

How do you show math mode in LaTeX?

For display math mode, use $$... $$ or \[... \].

What does mbox do?

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.


1 Answers

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.

like image 179
las3rjock Avatar answered Sep 19 '22 15:09

las3rjock