Text FormattingIntegrals in arrays

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
yakeyglee
Posts: 5
Joined: Fri Oct 07, 2011 11:35 pm

Integrals in arrays

Post by yakeyglee »

If I am making an array in LaTeX, and I want to put integrals as entries in the array, the output I get is the inline math height integrals. What code do I need to add so that the integrals come out full displaymath height? Thanks!! :D

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Integrals in arrays

Post by Stefan Kottwitz »

Hi,

you could use the command \displaystyle before the integral.

Stefan
LaTeX.org admin
yakeyglee
Posts: 5
Joined: Fri Oct 07, 2011 11:35 pm

Integrals in arrays

Post by yakeyglee »

Stefan_K wrote:Hi,

you could use the command \displaystyle before the integral.

Stefan
I've tried that, but unfortunately TexMaker gives me a "Bad math environment delimiter." error D:
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Integrals in arrays

Post by Stefan Kottwitz »

So you are using a wrong math delimiter. Simply show your code if we should tell you what's wrong there. This example works fine:

Code: Select all

\documentclass{article}
\begin{document}
\[
  \begin{array}{l}
    \displaystyle\int_0^\infty
  \end{array}
\]
\end{document}
Stefan
LaTeX.org admin
Post Reply