I would like to have an enumerate – list in which, after 1, 2, 3, 4,
I need to put 4bis.
How to do it?
Best Answer
Aligning the label left is easy with align=left from enumitem package. The special item can be set with \item[4bis], but this is only a strategy, if this does not occur very often.
If the features of the enumerate package are requested, change to \usepackage[shortlabels]{enumitem} here.
If the label should be wider, just say labelwidth=40pt, for example, in the option list of \begin{enumerate}
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[align=left]
\item One
\item Two
\item Three
\item Four
\item[4bis] Some with four again
\item Other stuff
\end{enumerate}
\end{document}
With enumitem package you can create your own enumeration using \newlist, where you can define view of it and then use it instead of default enumeration:
\documentclass{article}
\usepackage{enumitem}
\newlist{UR}{enumerate}{1}
\setlist[UR]{label=UR-\arabic*:}
\begin{document}
\begin{UR}
\item First
\item Second
\end{UR}
\end{document}
Use \arabic* - enumitem's way of using the appropriate counter formatting:
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label=Ex.\arabic*]
\item Some text
\item Some text
\item Some text
\end{enumerate}
\end{document}
You may be better off defining your own list type, which could include the resume option to resume counting if you break up your list with interspersed text.
\documentclass{article}
\usepackage{enumitem}
\newlist{exercises}{enumerate}{1}
\setlist[exercises]{%
label=Ex.\arabic*,
resume
}
\begin{document}
\begin{exercises}
\item Some text
\item Some text
\item Some text
\end{exercises}
Some text in between the two lists.
\begin{exercises}
\item Some text
\item Some text
\item Some text
\end{exercises}
\end{document}
Best Answer
Aligning the label left is easy with
align=left
fromenumitem
package. The special item can be set with\item[4bis]
, but this is only a strategy, if this does not occur very often.enumerate
package are requested, change to\usepackage[shortlabels]{enumitem}
here.labelwidth=40pt
, for example, in the option list of\begin{enumerate}