3

I saw someone use \tfrac in one of their documents.

\text{young children are often taught }  \tfrac 18  \text{ is  } \tfrac 12 \text{ of } \tfrac 14

a screen capture of rendered LaTeX output

As two examples of what I am looking for, we have:

  1. quad could be written as spazio quadratone

  2. dfrac is display fraction

So... tfrac is... what exactly? ... In one of the languages English, French, Italian, German, etc...

David Carlisle
  • 757,742
IdleCustard
  • 1,194
  • 2
    text fraction perhaps? – LaTeXereXeTaL May 01 '23 at 21:52
  • 2
    apart from the name, the syntax is \tfrac{1}{8} not \tfrac18 (although that does unfortunately work) – David Carlisle May 01 '23 at 22:29
  • 1
    @DavidCarlisle I nominate "although that does unfortunately work" for the hall of fame. – rallg May 01 '23 at 22:44
  • 1
    BTW: Section 4.11 of the amsmath manual amsldoc.pdf already explains: The amsmath package provides also \dfrac and \tfrac as convenient abbreviations for {\displaystyle\frac ... } and {\textstyle\frac ... }. And before you're asking \genfrac is generalized fraction (see section 4.11.3 of the amsmath manual). – cabohah May 02 '23 at 06:54

1 Answers1

5
  • The t in \tfrac and \tbinom stands for "text style" frac/binom

  • The d in \dfrac and \dbinom stands for "display style" frac/binom

TeX provides four main math "styles":

  • \displaystyle, default in displayed math material

  • \textstyle, default in inline math material

  • \scriptstyle, default in first-level subscripts and superscripts

  • \scriptscriptstyle, default in second-level subscripts and superscripts

Mico
  • 506,678
  • 2
    Note that \textstyle is, as Mico noted, for inline math material. Fractions would not be written vertically (usually) in flowing book text, due to line spacing issues. In fact, non-math literature would spell it, "one-eighth". – rallg May 01 '23 at 22:47