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.
\documentclass[11pt]{article}

\usepackage{tabu}
\usepackage[inline]{enumitem}

\begin{document}

\section{abc}
\begin{enumerate}
  \item
    \begin{enumerate*}
      \item
        \begin{tabu}[t]{c|c}
          \firsthline
          $p$ & $p \to \neg p$ \\
          \hline
          T & F \\
          F & T \\
          \hline
        \end{tabu} \\
      \item
        \begin{tabu}[t]{c|c}
          \firsthline
          $p$ & $p \leftrightarrow \neg p$ \\
          \hline
          T & F \\
          F & F \\
          \hline
        \end{tabu}
    \end{enumerate*}
  \item
    This is the second item.
\end{enumerate}

\end{document}

I use inline enumerate to put multiple tables in a line and use forced linebreak when needed. The vertical space between two lines of tables are too small. How to make it bigger?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You can use the optional argument for \\ to add some vertical space (in the example below I used \\[2ex] but, of course, instead of 1ex you can use the length that best suits your needs):

\documentclass[11pt]{article}
\usepackage{tabu}
\usepackage[inline]{enumitem}

\begin{document}

\section{abc}
\begin{enumerate}
  \item
    \begin{enumerate*}
      \item
        \begin{tabu}[t]{c|c}
          \firsthline
          $p$ & $p \to \neg p$ \\
          \hline
          T & F \\
          F & T \\
          \hline
        \end{tabu} \\[2ex]
      \item
        \begin{tabu}[t]{c|c}
          \firsthline
          $p$ & $p \leftrightarrow \neg p$ \\
          \hline
          T & F \\
          F & F \\
          \hline
        \end{tabu}
    \end{enumerate*}
  \item
    This is the second item.
\end{enumerate}

\end{document}

enter image description here

share|improve this answer
    
[2ex] works perfectly! Thanks! –  user21916 Nov 8 '12 at 19:10
    
And even [-4pt] if you want to shorten the vertical space, it works also. –  rcabane Nov 8 '12 at 19:46

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.