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.

For enumerated list such as:

\begin{enumerate}
\item One
\item Two
\item Three
\end{enumerate}

the center and centering commands don't seem to work, and the list sticks to the left hand side of the page. Is it possible to centre such a list, or would I have to use something other than enumerate?

share|improve this question
    
Have you tried using a minipage or box? –  Mario S. E. Apr 8 '13 at 12:49
    
do you want to centre the block as a whole or to centre each item separately (both are possible) –  David Carlisle Apr 8 '13 at 12:50
    
@DavidCarlisle the block as a whole –  Danger Fourpence Apr 8 '13 at 12:52

1 Answer 1

up vote 3 down vote accepted

You can center the list in a minipage but rather than have to guess a width for the minipage you can use the varwidth package:

enter image description here

\documentclass{article}
\usepackage{varwidth}

\begin{document}
\centering

X\dotfill X

\begin{varwidth}{\textwidth}
\begin{enumerate}
\item One
\item Two
\item Three
\end{enumerate}
\end{varwidth}
\end{document}
share|improve this answer
    
thanks, I've added a reference after the list, to the bottom right using \hfill, so I've found that center works better than centering. –  Danger Fourpence Apr 8 '13 at 13:12

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.