Is there a way to have math that is not "display math" look like display math?

Is there a way to have math that is not "display math" look like display math?

Post by Ray » Fri, 04 Dec 2009 09:43:48


Hello.

I would like to have TeX typeset math in "displaymath" mode, but
without centering it. Is this possible?

For example, when entering:

$\lim_{n \to \infty}$, the arrow to infinity will appear next to the
limit.

But when entering:

$$\lim_{n \to \infty}$$, TeX will place the arrow directly underneath
the limit.

Is there are way to control placements like this directly?

(another example would be, placing the limits of integration above and
below the integral sign as opposed to the right of it).

Thank you,

Ray L.
 
 
 

Is there a way to have math that is not "display math" look like display math?

Post by Werner Gru » Fri, 04 Dec 2009 16:29:04


Use \displaystyle to force typesetting possible "text style math" in
"display style". The reverse may be forced using \textstyle. For
example, in your case, try
$\displaystyle\lim_{n \to \infty}$

Werner

 
 
 

Is there a way to have math that is not "display math" look like display math?

Post by Steven McK » Fri, 04 Dec 2009 23:29:14


All of the solutions entered so far are interesting (some of which I
did not know about - once I find something that works, I tend to stop
looking), but there is an easy solution if you don't care about
equation numbering.
$\displaystyle\lim_{n\to\infty}$ will typeset the math as if it were
centered but will put it inline. You can even have every equation
typeset this way if you include
\everymath{\displaystyle}
at the beginning of the document. (I do this for tests).

S.M.