GeneralHow can I avoid compressing integrals when displaying them?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
idaham
Posts: 21
Joined: Wed May 21, 2008 4:30 pm

How can I avoid compressing integrals when displaying them?

Post by idaham »

Hi!
Does anyone know how to stretch integrals when displaying them? When you use \begin{equation}... some integral...\end{equation}, the integrals are displayed very nicely, i.e. not compressed vertically. I'm trying to make a matrix with integral elements, but the integrals just turn out compressed (in the vertical direction) when displayed! This is the matrix:

Code: Select all

\begin{equation}
\mathbf{\vec A} = 
\left( \begin{array}{ccc}
\int_0^{t_1}{C_1(u)du}\\\\
\int_0^{t_2}{C_1(u)du}\\\\
\vdots \\\\
\int_0^{t_n}{C_1(u)du}
\end{array} \right),	
\end{equation}
I want the individual elements to look like they do when you write:

Code: Select all

\begin{equation}
\int_0^{t_1}{C_1(u)du}
\end{equation}
I've tried using "arraystretch" and defined a "vphantom", but neither seem to work. Can anyone help me? Cheers,
/Ida

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

How can I avoid compressing integrals when displaying them?

Post by Juanjo »

Load the amsmath package and try this:

Code: Select all

\begin{equation}
  \mathbf{\vec A} = 
  \begin{pmatrix}
    \displaystyle\int_0^{t_1}{C_1(u)\,du}\\[3ex]
    \displaystyle\int_0^{t_2}{C_1(u)\,du}\\
    \vdots \\
    \displaystyle\int_0^{t_n}{C_1(u)\,du}
  \end{pmatrix},   
\end{equation}
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
idaham
Posts: 21
Joined: Wed May 21, 2008 4:30 pm

How can I avoid compressing integrals when displaying them?

Post by idaham »

Thanks a bunch Juanjo!
The \displaystyle was just what I needed...
Cheers,
Ida
Juanjo wrote:Load the amsmath package and try this:

Code: Select all

\begin{equation}
  \mathbf{\vec A} = 
  \begin{pmatrix}
    \displaystyle\int_0^{t_1}{C_1(u)\,du}\\[3ex]
    \displaystyle\int_0^{t_2}{C_1(u)\,du}\\
    \vdots \\
    \displaystyle\int_0^{t_n}{C_1(u)\,du}
  \end{pmatrix},   
\end{equation}
Post Reply