3

When I have a longtable left-aligned inside an enumerate, it isn't indented properly. For example

\begin{enumerate}
\item text

% \setlength\LTleft{\itemindent}
% \setlength\LTright{\fill}
\begin{longtable}[l]{lll}
a & b & c \\
d & e & f \\
g & h & i \\
l & m & n \\
\end{longtable}

text

\end{enumerate}

produces

example output

1 Answer 1

4

You're overriding the placement parameters by saying \begin{longtable}[l].

\documentclass{article}
\usepackage{showframe}
\usepackage{longtable}

\begin{document}
\begin{enumerate}
\item text

\setlength\LTleft{\leftmargin}
\setlength\LTright{\fill}
\begin{longtable}{@{}lll@{}}
a & b & c \\
d & e & f \\
g & h & i \\
l & m & n \\
\end{longtable}

text

\end{enumerate}

\end{document}

Note @{} to remove the left and right paddings.

I used showframe just for showing the text block margins.

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .