Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
3  
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 at 13:21
1  
Why are my backslashes disappearing every time I use them in a comment? –  Mack Feb 19 at 13:28
1  
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 at 13:30
1  
Because it makes the math symbols very pleasing to the eyes. –  Mack Feb 19 at 13:31
1  
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 at 13:36

1 Answer 1

up vote 10 down vote accepted

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:

enter image description here

\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}$
\end{document}
share|improve this answer
    
For the most part I use \displaystyle whenever I write my math symbols. But I have another question: suppose in some instance I did not want to use \displaystyle, but wanted to revert back to standard settings for one line of math symbols, is there some way I can override \everymath{\displaystyle} for that one portion of my code? Is my question clear enough? –  Mack Feb 19 at 23:22
    
@Mack - I've provided an addendum to my answer to address your follow-up question. –  Mico Feb 20 at 6:13
    
Thank you, Mico. You have been very, very helpful. –  Mack Feb 20 at 12:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.