4

I am having a small problem using lists with a custom label for each item. When I use the following code, the list item is not indented correctly, it uses the second number after the \Rightarrow to indent the paragraph

\documentclass[a4paper]{article}
\begin{document}
\noindent Some text before
\begin{enumerate}
\item[$(1)\Rightarrow (2)$:] Proof 1 
\item[$(2)\Leftrightarrow (3)$:] Proof 2
\item[$(2)\Rightarrow (1)$:] Proof 3
\end{enumerate}
Some text after
\end{document}

I tried using the \indent command as well as \hspace, but I can't get it to work. Can anyone please help me?

1
  • In my opinion a simple paragraph headed with $(1)\Rightarrow(2)$: suffices.
    – egreg
    May 3, 2014 at 19:43

1 Answer 1

6

You should force the adjustment to be left using enumitem:

enter image description here

\documentclass[a4paper]{article}
\usepackage{enumitem}
\begin{document}
\noindent Some text before
\begin{enumerate}[align=left]
  \item[$(1)\Rightarrow (2)$:] Proof 1 
  \item[$(2)\Leftrightarrow (3)$:] Proof 2
  \item[$(2)\Rightarrow (1)$:] Proof 3
\end{enumerate}
Some text after
\end{document}

A global setting is also possible via \setlist[enumerate]{align=left}.

3
  • 1
    This looks better. Would it be possible to make them indent like a proper list?
    – ruben1691
    May 3, 2014 at 20:07
  • 1
    @user2287089: You can play around with the leftmargin=<len> key where you specify some LaTeX length <len> (like 3em).
    – Werner
    May 3, 2014 at 22:55
  • 1
    Thanks, I used leftmargin=3.5em and it worked perfectly!
    – ruben1691
    May 4, 2014 at 11:48

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.