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.

How do I create this table? It is the subtle indentations that are throwing me. I know I'm missing something simple.

table example

share|improve this question
2  
You should post the code you have so far (the basic table in a complete, compilable document), so not everyone has to reproduce it, and you should include information on what you've already tried. –  Jake Dec 4 '11 at 0:36
    
I'll do that in the future. Thanks for the tip. –  DJJerome Dec 4 '11 at 0:54
add comment

2 Answers

up vote 9 down vote accepted

You could use a tabbing environment. For example:

\documentclass{article}
\begin{document}
\begin{tabbing}
\quad\=\quad\=One $= 0$ the other $\neq 0$\quad
  \=Whole line of equilibrium points\kill
\rule{.8\linewidth}{1pt}\\
Eigenvalues\>\>\>Stability\\[-1.2ex]
\rule{.8\linewidth}{1pt}\\
REAL\\
\>Unequal\\
\>\>Both $>0$\>Unstable node (source, repeller)\\
\>\>Both $<0$\>Stable node (sink, attractor)\\
\>\>Different signs\>Saddle point\\
\>\>One $= 0$ the other $\neq 0$\>Whole line of equilibrium points\\
\>Equal\\
\>\>Both $>0$\>Unstable node (source, repeller)\\
\>\>Both $<0$\>Stable node (sink, attractor)\\
\>\>Both $=0$\>Algebraic unstable\\
COMPLEX\\
\end{tabbing}
\end{document}

tabbing example

  • \= marks a tab stop
  • \> go to the next tab stop
  • \\ ends a line
  • \kill ends a line but doesn't print it, useful for a tab stop model line
share|improve this answer
add comment

You could use some defined space for indenting within the table. Consider the example below:

\documentclass{article}

\usepackage{booktabs}

\begin{document}

\begin{tabular}{@{} l l @{}}
  \toprule
  Eigenvalues & Stability\\
  \midrule
  REAL\\
  \hspace{0.25cm} Unequal\\
  \hspace{0.5cm} Both $>0$ & Unstable node (source, repeller)\\
  \hspace{0.5cm} Both $<0$ & Stable node (sink, attractor)\\
  \hspace{0.5cm} Different signs & Saddle point\\
  \hspace{0.5cm} $= 0$ the other $\neq 0$ & Whole line of equilibrium points\\
  ...\\
  \bottomrule
\end{tabular}

\end{document}

This code renders the following:

Implementation of OP's proposed table.

Edit: Edited code and output image for clarity.

share|improve this answer
3  
Or simply ~ for single indentation and ~~ for double. –  egreg Dec 4 '11 at 0:46
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.