Since there is no preamble to set \displaystyle for the whole text, how can we do to avoid writing \displaystyle each time we write a new formula?

(but I still want to write inline)

For example if I want to write this :

$\sum\limits_{k=1}^{n} u_k$ is ... so we have $\sum\limits_{k=1}^{n} u_k ^2 = ...$, and it implies that $\sum ...$. but I don't want to write \displaystyle each time.

Thanks in advance.

  • 1
    $\begingroup$ Ummm, use $$<content>$$ $\endgroup$ – amWhy Dec 27 '20 at 15:53
  • $\begingroup$ Yes but I want to write inline. $\endgroup$ – math Dec 27 '20 at 16:02
  • $\begingroup$ This seems a bit unusual to me. What are actually the places where you need displaystyle? Do you need it for limits/integrals? Or do you want to have bigger fractions? $\endgroup$ – Martin Sleziak Dec 27 '20 at 16:13
  • $\begingroup$ Actually both : mostly when i use sums and integrals $\endgroup$ – math Dec 27 '20 at 16:14
  • $\begingroup$ $\displaystyle{........................................................}$ $\endgroup$ – amWhy Dec 27 '20 at 16:20
  • 1
    $\begingroup$ But please, @math, do not use display style in titles! $\endgroup$ – amWhy Dec 27 '20 at 16:21
  • $\begingroup$ yes i know about that, thank you @amWhy, i edited my question to be clearer $\endgroup$ – math Dec 27 '20 at 16:23
  • 2
    $\begingroup$ I do not know about a solution to change the whole post to displaystyle. But, for example, one could use $\newcommand\sumi[3]{\sum\limits_{#1=#2}^{#3}}$$\newcommand\sumi[3]{\sum\limits_{#1=#2}^{#3}}$ in the post (somewhere near to the beginning) to shorten all sums to something like $\sumi k0n\binom nk$ $\sumi k0n\binom nk$. Your example would look like: $\sumi k1n u_k$ is ... so we have $\sumi k1n u_k ^2 =$ $\sumi k1n u_k$ is ... so we have $\sumi k1n u_k ^2 =$. $\endgroup$ – Martin Sleziak Dec 27 '20 at 17:36
  • $\begingroup$ Thank you very much ! it's very useful. $\endgroup$ – math Dec 27 '20 at 17:43
  • 3
    $\begingroup$ In my opinion, \displaystyle should be very seldomly used. If you want it to be big, make it appear in the center with $$...$$. Otherwise, you make paragraphs have too much spacing so they do not flow as easily as they should $\endgroup$ – Calvin Khor Dec 28 '20 at 2:17
  1. There is not really a way to force display style math without invoking \displaystyle every time you enter "math mode" using a single dollar sign. There is probably some hackery which could be made to work (as Martin Sleziak suggests), but this is not really ideal.

  2. You shouldn't do this, anyway. Display style mathematics really ought to be reserved for displayed equations and expressions. Putting display style mathematics inline monkeys with line spacing, and creates a rather inconsistently typeset document. $\sum_{k=1}^{n} u_k$ is correct. $\sum\limits_{k=1}^{n} u_k$ really isn't (note how it stretches the interline-spacing).


You must log in to answer this question.

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