Questions tagged [displaystyle]

{displaystyle} is about the \displaystyle and \textstyle commands for switching the style of math in LaTeX. For questions about display math in general, use {math-mode}.

is about the \displaystyle and \textstyle commands for switching the style of math in LaTeX. For questions about display math in general, use , and for questions about \scriptstyle and \scriptscriptstyle, see .

Math in LaTeX can be typeset in four different styles:

  • Text style or "inline math" refers to math typeset inside $$ signs, which is typeset as part of a paragraph. Operators such as \sum and \int are reduced in size, and their limits are placed below (or above) and to the right, rather than directly below (or above). Text style is also the default inside some environments, e.g. the cases environment or inside an \xymatrix. To force this style of math in place of another, use \textstyle.
  • Display style or "display math" refers to math typeset inside \[\], which is typeset on its own line. Operators and fractions are full size. To force this style of math in place of another, use \displaystyle.
  • Script style refers to math as typeset in superscripts and subscripts: smaller and more compressed. To access this style, use \scriptstyle.
  • \scriptscriptstyle uses the size and style of math used in nested super- or subscripts.

These are switches, which might be unexpected: the command $\displaystyle{\sum_{i=1}^n a_i} \int f_i$ will typeset both the sum and the integral in display style.

Frequently Asked Questions

  1. How can I keep a long equation together without forcing a line break?
  2. What is the proper way to display nested and continued fractions?
  3. How can I get nice-looking cube roots?
  4. How can I get smaller-looking fractions in display math?
209 questions
10
votes
1 answer

Always using displaystyle only for \lim

My question is a short one: I would like \lim to always be displayed inline using the \displaystyle mode.
projetmbc
  • 13,315
4
votes
1 answer

Using display mode and adding space between text

I have this... \[c1*f(n) \leq f(n) \leq c2* f(n)\ \forall n_0 \geq 0\] For display mode, I want to add additional space before \forall. I'm not too familiar with display mode. I tried just adding space and it doesn't seem do anything.
cpd1
  • 251
4
votes
1 answer

What's the difference between quote and verse, and when should this be used in scientific writing?

LaTeX has both the verse and quote environments. I am not sure when to use which and when should be used in scientific writing other than in the humanities. Conversely, there are occasions, particularly in presentations, where you want to display…
Yossi Gil
  • 15,951
4
votes
1 answer

Why 'displaystyle' is not working?

I am typing some mathematical expression related to 'displaystyle'. This is working well for $\displaystyle\sum_{i=1}^nx_i=1$. But it is not working in the following example : \documentclass[10pt]{article} \usepackage{amsmath} \begin{document} $P…
Soumitra Sen
  • 2,995
3
votes
2 answers

Brackets too large when using displaystyle and \left and \right in a fraction

I am trying to display a function of a fraction where I am using displaystyle in the numerator. Here is the markup: \[ \text{Var}(\overline{x}) = \text{Var}\left(\frac{\displaystyle \sum_{i=1}^{n} X_{i}}{n}\right) \] Which displays like this, with…
ajax2112
  • 159
3
votes
2 answers

How to achieve correctly the typesetting of $\bigwedge^\prime$ in display style?

I want to achieve \bigwedge' in display style. However, \[\bigwedge'\] gives me naturally The first approach I tried is to convert it in text style, but it becomes smaller than it was in display style: (for \[\bigwedge T \le \bigwedge S…
3
votes
4 answers

Remove white line after \item in enumerate and before display math

The goal is to remove the white line after the 1. in the second enumerate in the picture, so it will look like the first enumerate. I don't like the first enumerate because it uses inline math, needs the white line in the code to make a new…
PHPirate
  • 1,775
  • 1
  • 21
  • 37
2
votes
0 answers

Displaystyle for oplus

I would like the following behaviour: If I use an \oplus in a displayed math environment, I would like it to look like what happens with \bigoplus, i.e., I'd like the counters going directly below and above the \oplus symbol, not as a subscript and…
2
votes
1 answer

Display step of square root of an integer in LaTeX

How to display step of square root of an integer in LaTeX as follows: or There is no need to write in Bengali digits. It can be express in 2304, 16 etc
MTMA
  • 21
2
votes
2 answers

increasing summation size in continued fraction

I've got a continued fraction, where the denominator has a summation... Here is my code \documentclass{article} \usepackage{amsmath} \begin{document} \[ y_i = 1 - \cfrac{1}{x_i + \displaystyle \sum_{j=1}^{N}\left( \cfrac{1}{x_j…
Joel
  • 2,429
1
vote
1 answer

How to make displaystyle unions, intersections, sums products, etc. less obnoxious

When one tries to display, for example, a large union using ‘bigcup’ one issue is that text above and below gets pushed up and down, respectively. The below image shows that it is possible to correct this. (The ‘big cup’ is clearly pushed upwards,…
1
vote
0 answers

Displaymath with name?

In the displaymath environment the mathematical equation is usually placed in a separate line in the document. Is there a way to give the equation a left aligned name, as A1, on the same line, while the equation stays centered?
1
vote
2 answers

How to display the sub-script exactly in the bottom of the sigma?

First code: When I write the following code in TeX: ‎\begin{align*} \sum_{i=1}^{5}‎‎a_i ‎\end{align*} then in the output the sub-script i=1 appears exactly in the bottum of the sigma-symbol; and the super-script 5 appears exactly above the…
Davood
  • 349
1
vote
1 answer

Cancel \everymath{\displaystyle}

Is it possible in a document to cancel the command \everymath{\displaystyle}? It is in the macros.sty file I use but I would like to cancel it in some documents without changing my macros file.
Colas
  • 6,772
  • 4
  • 46
  • 96
1
vote
2 answers

Integration with textstyle fractions limits

I am trying to write an integration question like below with amsmath package: \displaystyle\int_{\frac{\pi}{4}}^{\frac{\pi}{2}}\sin x\,\mathrm{d}x However, the two fractions limits appear to be too small. I would like to do something like…
1
2