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.NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p