8

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
14
  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. – John Kormylo Jan 19 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 Jan 19 at 10:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.