Skip to main content
fixed header markup; added blockquote formatting to example codeblocks and output to visually separate them from the instructions
Source Link
The Amplitwist
  • 853
  • 2
  • 13
  • 19

#Displaystyle and Textstyle

Displaystyle and Textstyle

Many things like fractions, sums, limits, and integrals display differently when written inline versus in a displayed formula. You can switch styles back and forth with \displaystyle and \textstyle in order to achieve the desired appearance.

Here's an example switching back and forth in a displayed equation:

$$\sum_{n=1}^\infty \frac{1}{n^2} \to
  \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to
  \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

$$\sum_{n=1}^\infty \frac{1}{n^2} \to \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

$$\sum_{n=1}^\infty \frac{1}{n^2} \to
      \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to
      \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

$$\sum_{n=1}^\infty \frac{1}{n^2} \to \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

It is possible to switch style inline as well:

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$
versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$ versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$
versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$ versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Do observe that the taller formulas gotten with \displaystyle distort the line spacing. Filler text, more filler text and even more filler text, and an outrageous amount of filler text. It would not occur to me to use $\displaystyle \lim_{t \to 0} \int_t^1 f(x)\, dx$ here. As we see, a formula typeset in displaystyle makes it necessary to move the lines further apart. A ridiculous amount of filler text to make a point. Not pleasing to the eye at all.

Filler text, more filler text and even more filler text, and an outrageous amount of filler text. It would not occur to me to use $\displaystyle \lim_{t \to 0} \int_t^1 f(x)\, dx$ here. As we see, a formula typeset in displaystyle makes it necessary to move the lines further apart. A ridiculous amount of filler text to make a point. Not pleasing to the eye at all.

In other words, there is also a reason TeX defaults to \textstyle when typesetting inline formulas.

#Displaystyle and Textstyle

Many things like fractions, sums, limits, and integrals display differently when written inline versus in a displayed formula. You can switch styles back and forth with \displaystyle and \textstyle in order to achieve the desired appearance.

Here's an example switching back and forth in a displayed equation:

$$\sum_{n=1}^\infty \frac{1}{n^2} \to
  \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to
  \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

$$\sum_{n=1}^\infty \frac{1}{n^2} \to \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

It is possible to switch style inline as well:

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$
versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$ versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Do observe that the taller formulas gotten with \displaystyle distort the line spacing. Filler text, more filler text and even more filler text, and an outrageous amount of filler text. It would not occur to me to use $\displaystyle \lim_{t \to 0} \int_t^1 f(x)\, dx$ here. As we see, a formula typeset in displaystyle makes it necessary to move the lines further apart. A ridiculous amount of filler text to make a point. Not pleasing to the eye at all.

In other words, there is also a reason TeX defaults to \textstyle when typesetting inline formulas.

Displaystyle and Textstyle

Many things like fractions, sums, limits, and integrals display differently when written inline versus in a displayed formula. You can switch styles back and forth with \displaystyle and \textstyle in order to achieve the desired appearance.

Here's an example switching back and forth in a displayed equation:

$$\sum_{n=1}^\infty \frac{1}{n^2} \to
      \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to
      \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

$$\sum_{n=1}^\infty \frac{1}{n^2} \to \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

It is possible to switch style inline as well:

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$
versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$ versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Do observe that the taller formulas gotten with \displaystyle distort the line spacing.

Filler text, more filler text and even more filler text, and an outrageous amount of filler text. It would not occur to me to use $\displaystyle \lim_{t \to 0} \int_t^1 f(x)\, dx$ here. As we see, a formula typeset in displaystyle makes it necessary to move the lines further apart. A ridiculous amount of filler text to make a point. Not pleasing to the eye at all.

In other words, there is also a reason TeX defaults to \textstyle when typesetting inline formulas.

Added a warning not to tinker with the defaults too much
Source Link
Jyrki Lahtonen
  • 135.3k
  • 7
  • 59
  • 114

#Displaystyle and Textstyle

Many things like fractions, sums, limits, and integrals display differently when written inline versus in a displayed formula. You can switch styles back and forth with \displaystyle and \textstyle in order to achieve the desired appearance.

Here's an example switching back and forth in a displayed equation:

$$\sum_{n=1}^\infty \frac{1}{n^2} \to
  \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to
  \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

$$\sum_{n=1}^\infty \frac{1}{n^2} \to \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

It is possible to switch style inline as well:

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$
versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$ versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Do observe that the taller formulas gotten with \displaystyle distort the line spacing. Filler text, more filler text and even more filler text, and an outrageous amount of filler text. It would not occur to me to use $\displaystyle \lim_{t \to 0} \int_t^1 f(x)\, dx$ here. As we see, a formula typeset in displaystyle makes it necessary to move the lines further apart. A ridiculous amount of filler text to make a point. Not pleasing to the eye at all.

In other words, there is also a reason TeX defaults to \textstyle when typesetting inline formulas.

#Displaystyle and Textstyle

Many things like fractions, sums, limits, and integrals display differently when written inline versus in a displayed formula. You can switch styles back and forth with \displaystyle and \textstyle in order to achieve the desired appearance.

Here's an example switching back and forth in a displayed equation:

$$\sum_{n=1}^\infty \frac{1}{n^2} \to
  \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to
  \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

$$\sum_{n=1}^\infty \frac{1}{n^2} \to \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

It is possible to switch style inline as well:

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$
versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$ versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Do observe that the taller formulas gotten with \displaystyle distort the line spacing. Filler text, more filler text and even more filler text, and an outrageous amount of filler text. It would not occur to me to use $\displaystyle \lim_{t \to 0} \int_t^1 f(x)\, dx$ here. As we see, a formula typeset in displaystyle makes it necessary to move the lines further apart. A ridiculous amount of filler text to make a point. Not pleasing to the eye at all.

#Displaystyle and Textstyle

Many things like fractions, sums, limits, and integrals display differently when written inline versus in a displayed formula. You can switch styles back and forth with \displaystyle and \textstyle in order to achieve the desired appearance.

Here's an example switching back and forth in a displayed equation:

$$\sum_{n=1}^\infty \frac{1}{n^2} \to
  \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to
  \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

$$\sum_{n=1}^\infty \frac{1}{n^2} \to \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

It is possible to switch style inline as well:

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$
versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$ versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Do observe that the taller formulas gotten with \displaystyle distort the line spacing. Filler text, more filler text and even more filler text, and an outrageous amount of filler text. It would not occur to me to use $\displaystyle \lim_{t \to 0} \int_t^1 f(x)\, dx$ here. As we see, a formula typeset in displaystyle makes it necessary to move the lines further apart. A ridiculous amount of filler text to make a point. Not pleasing to the eye at all.

In other words, there is also a reason TeX defaults to \textstyle when typesetting inline formulas.

added 453 characters in body
Source Link
Jyrki Lahtonen
  • 135.3k
  • 7
  • 59
  • 114

#Displaystyle and Textstyle

Many things like fractions, sums, limits, and integrals display differently when written inline versus in a displayed formula. You can switch styles back and forth with \displaystyle and \textstyle in order to achieve the desired appearance.

Here's an example switching back and forth in a displayed equation:

$$\sum_{n=1}^\infty \frac{1}{n^2} \to
  \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to
  \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

$$\sum_{n=1}^\infty \frac{1}{n^2} \to \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

It is possible to switch style inline as well:

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$
versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$ versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Do observe that the taller formulas gotten with \displaystyle distort the line spacing. Filler text, more filler text and even more filler text, and an outrageous amount of filler text. It would not occur to me to use $\displaystyle \lim_{t \to 0} \int_t^1 f(x)\, dx$ here. As we see, a formula typeset in displaystyle makes it necessary to move the lines further apart. A ridiculous amount of filler text to make a point. Not pleasing to the eye at all.

#Displaystyle and Textstyle

Many things like fractions, sums, limits, and integrals display differently when written inline versus in a displayed formula. You can switch styles back and forth with \displaystyle and \textstyle in order to achieve the desired appearance.

Here's an example switching back and forth in a displayed equation:

$$\sum_{n=1}^\infty \frac{1}{n^2} \to
  \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to
  \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

$$\sum_{n=1}^\infty \frac{1}{n^2} \to \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

It is possible to switch style inline as well:

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$
versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$ versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

#Displaystyle and Textstyle

Many things like fractions, sums, limits, and integrals display differently when written inline versus in a displayed formula. You can switch styles back and forth with \displaystyle and \textstyle in order to achieve the desired appearance.

Here's an example switching back and forth in a displayed equation:

$$\sum_{n=1}^\infty \frac{1}{n^2} \to
  \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to
  \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

$$\sum_{n=1}^\infty \frac{1}{n^2} \to \textstyle \sum_{n=1}^\infty \frac{1}{n^2} \to \displaystyle \sum_{n=1}^\infty \frac{1}{n^2}$$

It is possible to switch style inline as well:

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$
versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Compare $\displaystyle \lim_{t \to 0} \int_t^1 f(t)\, dt$ versus $\lim_{t \to 0} \int_t^1 f(t)\, dt$.

Do observe that the taller formulas gotten with \displaystyle distort the line spacing. Filler text, more filler text and even more filler text, and an outrageous amount of filler text. It would not occur to me to use $\displaystyle \lim_{t \to 0} \int_t^1 f(x)\, dx$ here. As we see, a formula typeset in displaystyle makes it necessary to move the lines further apart. A ridiculous amount of filler text to make a point. Not pleasing to the eye at all.

Source Link
Alexis Olson
  • 5.4k
  • 15
  • 5
Loading
Post Made Community Wiki by Alexis Olson