6

I'm using:

\documentclass[journal]{IEEEtran}    
\begin{document}
\begin{enumerate}
\item something
something else
\item something
something else
\end{enumerate}
\end{document}

And I get:

1) something

something else

2) something

something else

But, I want the new paragraph with something else to be indented. How to achieve this?

Thanks

2 Answers 2

4

The enumerate environment in IEEEtran accepts an optional argument with declarations for the single list. See section XI in the documentation.

The parameter to set is \listparindent that's initially zero.

\documentclass[journal]{IEEEtran}

\begin{document}

\begin{enumerate}[\setlength{\listparindent}{\parindent}]
\item something something something

something else something else something else
something else something else something else

\item something

something else something else something else
something else something else something else
\end{enumerate}

\end{document}

enter image description here

You can also set it globally in the preamble by saying

\renewcommand{\IEEEiedlistdecl}{%
  \setlength{\listparindent}{\parindent}%
}

(possibly adding other settings). In this case you don't need the optional argument to enumerate and the indentation will be done in all such environments.

2
  • your initial: \begin{enumerate}[\listparindent=\parindent] also works.
    – Elnaz
    Commented Apr 23, 2015 at 23:25
  • @Elnaz Yes, but using \setlength is better syntax.
    – egreg
    Commented Apr 23, 2015 at 23:26
4

You can use enumitem package and its listparindent=\parindent

\documentclass[journal]{IEEEtran}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[listparindent=\parindent]
\item something

something else
\item something
something else
\end{enumerate}
\end{document}

If you want it for all levels of enumerate put this in preamble:

 \setlist[enumerate]{listparindent=\parindent}

If you want it for only first level of enumerate use this:

\setlist[enumerate,1]{listparindent=\parindent}

enter image description here

2
  • I'm not sure the people at IEEE will like using enumitem that changes their carefully crafted redefinition of enumerate.
    – egreg
    Commented Apr 23, 2015 at 23:15
  • @egreg You are right. Any way this is an option for harakiri :-)
    – user11232
    Commented Apr 23, 2015 at 23:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .