how can I set
\leftmargin
in a {enumerate}
environment of memoir?
Code: Select all
\begin{enumerate}[a)]\leftmargin5cm
\item One
\item Two
\end{enumerate}
\leftmargin5cm
or \setlength{leftmargin}{5cm}
has no effect.Thanks!
\leftmargin
in a {enumerate}
environment of memoir?
Code: Select all
\begin{enumerate}[a)]\leftmargin5cm
\item One
\item Two
\end{enumerate}
\leftmargin5cm
or \setlength{leftmargin}{5cm}
has no effect.Code: Select all
\documentclass{memoir}
\usepackage{enumitem}% for customizing the lists
\usepackage{showframe}% just to show page geometry, not needed
\begin{document}
\noindent Some text.
\begin{enumerate}[leftmargin=5cm,label={\alph*)}]
\item First first first first first first first first first first first first first first first
\item Second second second second second second second second second second second second second second second
\item Third third third third third third third third third third third third third third third
\end{enumerate}
Some text.
\end{document}
Code: Select all
\documentclass{memoir}
\usepackage{enumitem}
\newlist{mylist}{enumerate}{2}% a new list named: mylist, of type: enumerate, with number of levels: 2
\setlist[mylist,1]{leftmargin=5cm,label={\alph*)}}% defining the first level
\setlist[mylist,2]{leftmargin=1cm,label={\roman*)}}% defining the second level
\begin{document}
\noindent Some text.
\begin{mylist}% this is the first level
\item Level 1
\item Level 1
\item Level 1
\begin{mylist}% this is the second level
\item Level 2
\item Level 2
\item Level 2
\end{mylist}
\item Level 1
\item Level 1
\item Level 1
\end{mylist}
Some text.
\end{document}