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.

If I have an item in an enumerate environment, which only contains a figure (or table etc), the bullet point of the enumerations alignment goes weird. For example:

\begin{enumerate}[(a)]
\item
    Dummy item
\item
\begin{enumerate}[(i)]
    \item
        \begin{center}
            \begin{tabular}{ |  p{4.5cm}  | c | c |}
                \hline
                Col & More col & Even more col  \\ 
                \hline
                one & two & three  \\
                \hline

            \end{tabular}
        \end{center}
\end{enumerate}
\end{enumerate}

Makes the bullet points misalign, ie. (b)(i) and (a) are not aligned.

If I add some text before the figure, it goes back to normal. For example,

\begin{enumerate}[(a)]
\item
    Dummy item
\item
\begin{enumerate}[(i)]
    \item
         Dummy text to make it align nicely.
        \begin{center}
            \begin{tabular}{ |  p{4.5cm}  | c | c |}
                \hline
                Col & More col & Even more col  \\ 
                \hline
                one & two & three  \\
                \hline

            \end{tabular}
        \end{center}
\end{enumerate}
\end{enumerate}

So, is there any way of adding a line of "invisible" text or something along those lines to fix this layout issue?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You can add a \mbox{}:

\documentclass{article} 
\usepackage{graphicx}
\usepackage{enumerate}

\begin{document}

\begin{enumerate}[(a)]
\item Dummy item
\item
  \begin{enumerate}[(i)]
  \item \mbox{}
  \begin{center}
  \begin{tabular}{ |  p{4.5cm}  | c | c |}
    \hline
    Col & More col & Even more col  \\ 
    \hline
    one & two & three  \\
    \hline
    \end{tabular}
    \end{center}
  \end{enumerate}
\end{enumerate}

\end{document}

enter image description here

share|improve this answer
    
brilliant, thank you very much :) –  JustDanyul May 16 '12 at 18:20

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.