Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to insert multiple equations in a tabular environment in LaTeX. My problem is simple yet I haven't found any particular solution to it: the equations displayed are too small, and I'd like to increase their size so that I can obtain something less ugly than that (especially the last equation):

What I got so far...

I tried various tricks found here and there (\displaystyle, \def\arraystretch{3}, etc.), but nothing work really well.

share|improve this question

migrated from stackoverflow.com Oct 15 '12 at 0:59

This question came from our site for professional and enthusiast programmers.

    
Welcome to TeX.SE. –  Peter Grill Oct 15 '12 at 1:15
add comment

1 Answer 1

up vote 10 down vote accepted

It may just be that you're not placing \displaystyle in the appropriate place. Here are some options, and there are many more, depending on your requirements:

enter image description here

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\verb|tabular (default)|:\par
\begin{tabular}{ccl}
  Eq1 & $\sum_{i=1}^N |x A_i-x_i^B|$ & $a+b-2c$ \\ \\
  Eq2 & $\sqrt{\sum_{i=0}^N(x A_i-x B_i)^2}$ & $\sqrt{a+b-2c}$ \\ \\
  Eq3 & $\frac{\sum_{i=0}^N|x A_i-x B_i|}{\sum_{i=0}^N\max(x A_i-x B_i)}$ & $\frac{a+b-2c}{a+b-c}$
\end{tabular}
\bigskip

\verb|tabular (\displaystyle)|:\par
\begin{tabular}{ccl}
  Eq1 & $\displaystyle\sum_{i=1}^N |x A_i-x_i^B|$ & $a+b-2c$ \\ \\
  Eq2 & $\displaystyle\sqrt{\sum_{i=0}^N(x A_i-x B_i)^2}$ & $\sqrt{a+b-2c}$ \\ \\
  Eq3 & $\displaystyle\frac{\displaystyle\sum_{i=0}^N|x A_i-x B_i|}{\displaystyle\sum_{i=0}^N\max(x A_i-x B_i)}$ & 
    $\displaystyle\frac{a+b-2c}{a+b-c}$
\end{tabular}
\bigskip

\verb|array (amsmath)|:\par
\[\begin{array}{c@{\quad}c@{\qquad}l}
  \text{Eq1} & \displaystyle\sum_{i=1}^N |x A_i-x_i^B| & a+b-2c \\ \\
  \text{Eq2} & \displaystyle\sqrt{\sum_{i=0}^N(x A_i-x B_i)^2} & \sqrt{a+b-2c} \\ \\
  \text{Eq3} & \dfrac{\displaystyle\sum_{i=0}^N|x A_i-x B_i|}{\displaystyle\sum_{i=0}^N\max(x A_i-x B_i)} & 
    \dfrac{a+b-2c}{a+b-c}
\end{array}\]

\end{document}

Since you are displaying math, it's advisable to use an array environment, or perhaps amsmath's align environments. This would allow you to automatically number the equations.

You can change the spacing between columns using a @{<stuff>} specifier (as I've done in the last example). Vertical spacing is achieved through adding additional empty rows, or increasing \arraystretch. For more on this topic, see Column padding in tables.

share|improve this answer
    
Thank you for your help. I didn't known that the \displaystype had to be used inside \frac as well. Now the equations are much more sexy :) –  ecniv Oct 20 '12 at 13:42
    
Thank you indeed - is there a way to set \displaystyle globally and as a default for all arrays? –  LBogaardt May 28 at 13:46
    
Never mind, it's \everymath{\displaystyle} before \begin{document} –  LBogaardt May 28 at 13:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.