[texhax] Legal Style Numbering

Paul Gessler pdgessler at gmail.com
Wed Feb 17 17:47:02 CET 2016


Hi Jerry,

When using \newlist, you are creating a new list environment entirely,
so the usage for "legal" would be like this:


\documentclass{article}
\usepackage{enumitem}

\newlist{legal}{enumerate}{10}
\setlist[legal]{label*=\arabic*.}

\begin{document}
\begin{legal}
  \item Test
  \begin{legal}
    \item Two
  \end{legal}
\end{legal}
\end{document}


Alternatively, if you wish to use the existing enumerate environment
for these legal lists, just modifying the behavior of "enumerate" is
sufficient:


\documentclass{article}
\usepackage{enumitem}

\setlist[enumerate]{label*=\arabic*.}

\begin{document}
\begin{enumerate}
  \item Test
  \begin{enumerate}
    \item Two
  \end{enumerate}
\end{enumerate}
\end{document}


will do nicely. Hope this helps,

PG

On Wed, Feb 17, 2016 at 10:35 AM, Jerry <jerry at seibercom.net> wrote:
> I know that I am doing something incredibly stupid, but I cannot figure
> out what.
>
> I am trying to get "legal" style" list numbering. I am using the
> "enumitem" package. According to the directions, I inserted this in the
> document:
>
> \newlist{legal}{enumerate}{10}
> \setlist[legal]{label*=\arabic*.}
>
> Then:
>
> \begin{enumerate}
>         \item Test
>         \begin{enumerate}
>                 \item Two
>         \end{enumerate}
> \end{enumerate}
>
> This prints:
>
> 1. Test
> (a) Two
>
> I thought I could do this:
>
> \begin{enumerate}[legal]
>
> However, that only produces this error message:
>
> Package enumitem Error: legal undefined. \begin{enumerate}[legal]
>
> So my question is, what am I doing wrong?
>
> Thanks!
>
> --
> Jerry
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org


More information about the texhax mailing list