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 get the headings to come to the page margin inside of the enumerate envirnoment.

\documentclass{article}
\usepackage{lipsum}
\begin{document}
\begin{flushleft}
Heading
\end{flushleft}
\begin{enumerate}
\item \lipsum[10]
\begin{flushleft}
Heading
\end{flushleft}
\item \lipsum[10]
\noindent\begin{flushleft}
Heading
\end{flushleft}
\item \lipsum[10]
\end{enumerate}
\end{document}
share|improve this question

1 Answer 1

up vote 2 down vote accepted

Try for instance this.

\documentclass{article}

\usepackage{lipsum}
\usepackage{enumitem}

\begin{document}

\begin{flushleft}
  Heading
\end{flushleft}
\begin{enumerate}
\item \lipsum[10]
\end{enumerate}

\begin{flushleft}
  Heading
\end{flushleft}
\begin{enumerate}[resume]
\item \lipsum[10]
\end{enumerate}

\begin{flushleft}
  Heading
\end{flushleft}
\begin{enumerate}[resume]
\item \lipsum[10]
\end{enumerate}

\end{document}

Note also that using flushleft for headings is not necessarily the best possible idea.

share|improve this answer
    
I missed that the enumitem had a resume option. Very useful answer. –  R. Schumacher Dec 7 '11 at 16:58
    
Thanks. (Ekhm. You might want to consider accepting/upvoting it; this is usually more reasonable, however, after some time - a better one might show up;).) –  mbork Dec 7 '11 at 17:02

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.