14

How can I indent letter items using the method expressed in the title:

\documentclass[12]{article}
\usepackage{enumerate}

\begin{document}

\section*{Greetings}

\begin{enumerate}[(a)]

\item Hello World % I am not indented 
\item Halo Welt 
\item Ciao mondo
\item Ola` mundo
\item Hola mundo

\end{enumerate}

\end{document}

The current output would be something like this:

enter image description here

  • Don't quite understand what you are trying to to. The above is the standard setup. BTW (1): always provide fully compilable examples instead of sniplets. BTW (2): perhaps have a look at the enumitem package. – daleif Sep 30 '14 at 13:48
  • @daleif I just would like that the items are indented in relation to the section Greetings... – nbro Sep 30 '14 at 13:51
  • 1
    @daleif This is a complete example, by the way. – nbro Sep 30 '14 at 13:52
  • 1
    @UlrikeFischer I will provide then... – nbro Sep 30 '14 at 14:00
  • 1
    Note that the option is 12pt, not 12 – egreg Sep 30 '14 at 14:13
13

That behavior is part of how enumerate sets things up: take or leave.

I suggest to use enumitem with its full power (no shortlabels option), it is much more flexible and customizable; for alphabetic enumeration use \alph*. I present three examples:

\documentclass[12pt]{article}
\usepackage{enumitem}

\usepackage{showframe} % just for the example

\begin{document}

\section*{Greetings}

\begin{enumerate}[label=(\alph*)]
\item Hello World % I am not indented
\item Halo Welt
\item Ciao mondo
\item Ol\`a mundo
\item Hola mundo
\end{enumerate}

\begin{enumerate}[label=(\alph*),leftmargin=2\parindent]
\item Hello World % I am not indented
\item Halo Welt
\item Ciao mondo
\item Ol\`a mundo
\item Hola mundo
\end{enumerate}

\begin{enumerate}[label=(\alph*),leftmargin=*,align=left]
\item Hello World % I am not indented
\item Halo Welt
\item Ciao mondo
\item Ol\`a mundo
\item Hola mundo
\end{enumerate}

\end{document}

Note that showframe is just to show the page frame and so the alignment with respect to the left margin (made visibile).

Note also that the font size option is 12pt and not 12 (which is ignored).

enter image description here

| improve this answer | |
  • What exactly is the function of * in leftmargin=*? Does it allow us not to specify the left margin and hence the items are not indented like in your example? And in label we can also specify other arguments, if I am understanding it correctly... – nbro Sep 30 '14 at 14:37
  • @cell It basically says "no leftmargin". – egreg Sep 30 '14 at 14:39
  • egreg is it possible to start from b instead of a in the enumeration? – nbro Oct 3 '14 at 12:11
  • @cell Yes, just add start=2 to the options for \begin{enumerate}. For instance, the first way would be \begin{enumerate}[label=(\alph*),start=2] – egreg Oct 3 '14 at 12:16
10

You can add spacing commands to the label definition:

\documentclass[12]{article}
\usepackage{enumerate}

\begin{document}

\section*{Greetings}

\begin{enumerate}[\hspace{2cm}(a)]
\item Hello World % I am not indented
\item Halo Welt
\item Ciao mondo
\item Ola` mundo
\item Hola mundo
\end{enumerate}

\end{document}
| improve this answer | |
4

As you wish (Additional A only to show the indentation).

\documentclass[12pt]{article}
\usepackage{enumerate}

\begin{document}

\section*{Greetings}

A

\begin{enumerate}[\indent(a)]

\item Hello World % I am not indented 
\item Halo Welt 
\item Ciao mondo
\item Ola` mundo
\item Hola mundo

\end{enumerate}

\end{document}

enter image description here

| improve this answer | |
3

Replace loading enumerate with enumitem and shortlabels option:

\documentclass[12]{article}
\usepackage[shortlabels]{enumitem}

\begin{document}

\section*{Greetings}

\begin{enumerate}[(a)]

\item Hello World % I am not indented
\item Halo Welt
\item Ciao mondo
\item Ola` mundo
\item Hola mundo

\end{enumerate}

\end{document} 

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.