LaTeX has a number of different commands which begin as \text and then end in a differing number of letter ts.

What do each of the following commands do?

  • \text
  • \textt
  • \texttt

1 Answer 1

  1. The \text command is defined by the amsmath package. The purpose is to be able to write words or phrases in math mode. It's quite similar to \mbox but has the advantage that it adapts the font size to the surrounding math style (display, text, script, scriptscript).

  2. \textt is not defined by LaTeX or any package I know.

  3. The \texttt command typesets its argument in teletype font (sometimes called typewriter or monospace font). The trailing tt is an abbreviation for teletype.

  • Off-topic. Dumb terminals are called glass TTs. Commented Jan 19, 2019 at 3:58
  • It should be remarked that, when the amsmath package is loaded, \texttt also adapts the font size to the surrounding math style, exactly as \text does.
    – GuM
    Commented Jan 19, 2019 at 10:34
  • 2
    I was wondering what tt stood for. Commented May 11, 2023 at 14:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .