I'm trying to include a enumerate
list in an tabularly
environment, but the numbering gets wrong when I add more than one level of depth to the list.
\begin{table}[H]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.8\linewidth}
\centering
\small
\begin{tabulary}{\textwidth}{@{}LL@{}}
Wrong row&
\begin{enumerate}
\item First.
\begin{enumerate}
\item Second
\end{enumerate}
\end{enumerate}\\
\end{tabulary}
\end{minipage}
\end{table}
This code generates the following output for the row:
Wrong row
1 1.1 First
1.1 Second
If i add another nested level the output gets messy with overlapping numbers.
Outside of any table, enumerate is being working fine thorught all my document.
EDIT:
I have simplified the example to the maximum and I could make it work, think it was the column type, which now is set to P.
\documentclass[11pt]{book}
\begin{document}
\begin{tabular}{|Lp{10cm}|}
row1&value\\
row2&
\begin{enumerate}
\item First
\begin{enumerate}
\item Second
\end{enumerate}
\end{enumerate}
\\
\end{tabular}
\end{document}
Which now generates the correct output:
row1 value
row2 1. First
1.2 Second
\documentclass{}\usepackage{}...\begin{document}...\end{document}
. Don't post fragments.L
columntype or loaded a package which defines it.) Since you're new, this is one thing you definitely need to get used to. People will be very happy to help you, but you should almost always post complete, compilable documents that show your problem. Sometimes just the process of making one can help you solve things yourself. See this question for more info.