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.

Is it possible to set the leftmargin length when using the enumerate package? I'd like to limit the effect of leftmargin to a single environment invokation only and not set it globally.

share|improve this question
1  
I recommend the package enumitem. It is more flexible. Or do you stand on enumerate? –  Marco Daniel Sep 11 '11 at 12:23
    
@Marco: Nope, I can switch packages if necessary. Could you give your comment as an answer instead so I can vote it up and accept as answer? –  gablin Sep 11 '11 at 12:25
1  
Can someone provide a work around with enumerate package? I want to do the same thing and I am stuck with this package. –  Abbas Feb 1 '13 at 20:32

1 Answer 1

up vote 8 down vote accepted

I recommend the package enumitem. Here you can set leftmargin local.

 \documentclass{article}
 \usepackage{enumitem,showframe}

 \begin{document}
\begin{enumerate}[leftmargin=2cm]
\item foo
\item bar
\end{enumerate}

\begin{enumerate}[leftmargin=1cm]
\item foo
\item bar
\end{enumerate}

\begin{enumerate}
\item foo
\item bar
\end{enumerate}
\end{document}
share|improve this answer
    
Indeed, enumitem is much more powerful than enumerate. Thanks for informing me about it! –  gablin Sep 11 '11 at 13:31

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.