\documentclass[12pt,a4paper]{report}
\usepackage{palatino}
\begin{document}
\begin{equation}\label{good}
\int_{0}^{1}
\end{equation}
\begin{equation}\label{ugly}
\begin{array}{c}
\int_{0}^{1}\\
\int_{0}^{1}\\
\end{array}
\end{equation}
\end{document}
as the labels suggest, my problem is that these two seemingly identical uses of the integral sign compile well and not-so-well respectively.
The first yields a nice two-lines-tall integral sign, the second two annoying one-line-tall little integrals (even if I add blank lines to the array).
Is there a real solution to this problem?
Any help greatly appreciated 🙂
P
Best Answer
First off, loading the package
palatino
will give you the "Palatino" font only in text mode, but not in math mode. To get "Palatino" in both text and math mode, load a package such asmathpazo
or -- assuming you have a fairly up-to-date TeX distribution -- the packagesnewpxtext
andnewpxmath
.Second, you're getting small, i.e., inline-style, integral symbols because lines inside an
array
environment are typeset, by default, in inline-style math mode rather than in display-style math mode. If, for some reason, you must use anarray
environment, you can get the larger integral symbols by prefixing the instruction\displaystyle
to\int
, as is done on the left-hand side of equation (2) in the example below. You should probably also increase the separation between rows, e.g., by affixing [2ex] after the end of the first row of thearray
.Two big advantages of using a
gathered
environment instead of anarray
environment for the example at hand are (i) the rows would be typeset automatically in displaymath style and (ii) you wouldn't need to provide additional extra vertical separation of the rows by hand. The result of usinggathered
instead ofarray
in this manner is shown on the right-hand side of equation (2) below.For more information on displaying operator symbols such as
\int
and\sum
in either inline-math style or display-math style, see the posting Show inline math as if it were display math and the associated answers.