# Displaystyle Package?

I am curious to know if there is a display style package, or something that would produce the same effect. You see, I get tired of constantly having to type \displaystyle, and making sure that it is in every place that it should be.

Is there some package that will "automatically" display style all of math symbols?

• You could issue the instruction \everymath{\displaystyle} in the preamble... This will insert a \displaystyle directive every time inline-math is initiated. – Mico Feb 19 '14 at 13:21
• Why are my backslashes disappearing every time I use them in a comment? – Mack Feb 19 '14 at 13:28
• I'd rather want to know why you are writing \displaystyle all over in the first place? I've never come across any users who needed that. – daleif Feb 19 '14 at 13:30
• Because it makes the math symbols very pleasing to the eyes. – Mack Feb 19 '14 at 13:31
• Use inline math for, well, inline math ($math$ or $$math$$) or $math$ for displaymath (on its own line, unnumbered). If you want to change the appearance of displayed math, there are various options. Consult Herbert Voß' Math mode. – Johannes_B Feb 19 '14 at 13:36

Note that I do not actually recommend you do the following. But, since you ask: You can force TeX/LaTeX to issue the directive \displaystyle automatically whenever you initiate inline-math mode -- via either an opening-$ or a \( instruction -- by inserting the following command in your document's preamble: \everymath{\displaystyle}  Again, I do not recommend you take this route. There are excellent typographic reasons for not using large summation, product, and integral symbols while in inline-math mode. Likewise, it's almost invariably a bad idea to typeset display-style fraction constructs while in inline math mode. For much more information on this matter, I suggest you take a look at the posting Show inline math as if it were display math. I can think of only one exception to the broad stricture against the automatic use of \displaystyle: In beamer-class documents, it is quite important not to let the math symbols become too small. One way of achieving this is to use \displaystyle throughout. Even for beamer documents, though, providing the instruction \everymath{\displaystyle} may be too much of a good thing. Addendum, prompted by a follow-up comment by the OP: To revert back to "text style" while in inline math mode, just issue the command \textstyle. The following MWE illustrates the look of various math objects if \displaystyle and \textstyle are in effect: \documentclass{article} \everymath{\displaystyle} % automatically use display style while in inline math mode \begin{document}$\sum \quad \prod \quad \int \quad \frac{abc}{xyz}\textstyle\sum \quad \prod \quad \int \quad \frac{abc}{xyz}\$

• Very helpful. One question. What will happen if i include this directive in the preamble, but also include \displaystyle in various inline math sentences. Will it bug, or just override and enable it? – Nikos Feb 21 '17 at 11:09
• @RestlessC0bra - TeX doesn't mind if it encounters the directive \displaystyle if it's already in display-style math. – Mico Feb 21 '17 at 12:03
• A follow-up comment: In case your document already happens to modify the \everymath macro, you should write \everymath\expandafter{\the\everymath\displaystyle} rather than "just" \everymath{\displaystyle}. The former expression preserves the existing token list and "simply" adds \displaystyle to the end of the existing token list. – Mico Jan 22 '18 at 5:31