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 currently have the following code

\begin{center}
\begin{tabular}{l|p{5in}}
Differential Equation & $(1273628x^{4} + 1237129387x^{3} + 12831729x^{2})f'''(x)
   + (9x^{3} + 12392183012938120x^{2} + x)f'(x) + 120938120xf(x) = 0$\\\hline
Notes & Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam imperdiet, 
nunc ac euismod adipiscing, arcu erat pellentesque turpis, a tincidunt velit 
est sed sem. Proin dolor purus, eleifend vel pellentesque sit amet, lobortis 
non nibh. Duis in lacus eget odio varius interdum. Fusce pretium lectus sit 
amet metus molestie sit amet mollis ante viverra. Fusce eget augue vitae elit 
blandit facilisis. Nullam ultrices felis quis magna dignissim auctor. Cras 
dignissim porttitor nisl, id viverra sapien ornare ac. Proin adipiscing, dui 
at tempor faucibus, purus lacus aliquet nulla, ac dictum arcu erat nec felis. 
Aliquam rutrum nunc nec ligula euismod scelerisque. Nam interdum tincidunt 
tellus id malesuada. Pellentesque id elit nibh, vel scelerisque turpis. Proin 
\end{tabular}
\end{center}

How do I get Notes centered with respect to the height of the Lorem ipsum paragraph and how does one do a hanging indent on the equation in the differential equation row?

share|improve this question
2  
In general, if you have two different questions, even regarding the same code, please post two separate questions. This allows specific answers and choosing for each the best answer to accept, hardly possible with different partial answers otherwise. –  Stefan Kottwitz Jul 2 '11 at 8:40
add comment

1 Answer

up vote 3 down vote accepted
  • For vertical centering use the array package and an m column.

  • For the equation I recommend using a multi line environment of amsmath, such as multline* or \align* or an aligned formula block in inline math mode, if you wish to avoid vertical space around.

Here's an example with alignedat from amsmath:

\documentclass[10pt]{article}
\usepackage{array}
\usepackage{amsmath}
\begin{document}
\begin{center}
\begin{tabular}{l|m{4in}}
Differential Equation & $\begin{alignedat}{1}
  (1273628x^{4} + 1237129387x^{3} + 12831729x^{2})f'''(x)& \\
   + (9x^{3} + 12392183012938120x^{2} + x)f'(x)&\\
   + 120938120xf(x) &= 0
  \end{alignedat}$\\\hline
Notes & Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam imperdiet, 
nunc ac euismod adipiscing, arcu erat pellentesque turpis, a tincidunt velit 
est sed sem. Proin dolor purus, eleifend vel pellentesque sit amet, lobortis 
non nibh. Duis in lacus eget odio varius interdum. Fusce pretium lectus sit 
amet metus molestie sit amet mollis ante viverra. Fusce eget augue vitae elit 
blandit facilisis. Nullam ultrices felis quis magna dignissim auctor. Cras 
dignissim porttitor nisl, id viverra sapien ornare ac. Proin adipiscing, dui 
at tempor faucibus, purus lacus aliquet nulla, ac dictum arcu erat nec felis. 
Aliquam rutrum nunc nec ligula euismod scelerisque. Nam interdum tincidunt 
tellus id malesuada. Pellentesque id elit nibh, vel scelerisque turpis. Proin 
\end{tabular}
\end{center}
\end{document}

table with equation

share|improve this answer
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.