I want to implement both inline and vertical enumeration in my document. I know that inline enumeration can be achieved using inline
option of enumitem
package.
In addition, I found this question (second answer)in which a custom inline list environment is defined.
However, I do not fully understand how to define my own list environment in which the items are presented horizontally, without affecting the vertical behavior of the enumerate environment.
Let's say that I have:
\documentclass{article}
\usepackage[inline]{enumerate}
\begin{document}
\begin{enumerate}
\item Items will be presented vertically
\end{enumerate}
\begin{enumerate}[inline,label=(\roman*)]
\item Items will be presented horizontially
\end{enumerate}
\end{document}
Best Answer
As @daleif already mentioned in the comment if you load the
enumitem
package with theinline
option the starred versions of the environmentsitemize
,enumerate
anddescription
are defined. You can then use these to get a horizontal enumeration.Output: