[Tex/LaTex] Integral sign inside equation array becomes too small

arraysequations

\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 as mathpazo or -- assuming you have a fairly up-to-date TeX distribution -- the packages newpxtext and newpxmath.

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 an array 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 the array.

Two big advantages of using a gathered environment instead of an array 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 using gathered instead of array 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.

enter image description here

\documentclass[12pt,a4paper]{report}
\usepackage{newpxtext,newpxmath}
\setlength\textwidth{2in} % just for this example
\begin{document}
\begin{equation}\label{good}
  \int_{0}^{1}
\end{equation}

\begin{equation}\label{nolongerugly}
\begin{array}{c}
  \displaystyle\int_{0}^{1} \\[2ex] % provide some extra vertical separation
  \displaystyle\int_{0}^{1} 
\end{array}
\quad\text{vs.}\quad
\begin{gathered}
  \int_{0}^{1} \\ % no need to provide extra vertical separation
  \int_{0}^{1} 
\end{gathered}    
\end{equation}
\end{document}