Commit 83a0f1b0 authored by Niles Johnson's avatar Niles Johnson

note about enumi and cref

parent ba0a363b
No preview for this file type
......@@ -168,6 +168,21 @@ appropriate. For example, the environments below are
There are all kinds of ways to customize the list formatting; the
package documentation is the best reference.
You can also refer to enumerated items, like \cref{it:b} of
\cref{prop:foo} or \cref{it:a2} of \cref{lem:foo}. Note, if you
change the enumeration style, be sure to use
\begin{center}
\verb|\renewcommand{\theenumi}{\arabic{enumi}}|
\end{center}
instead of
\begin{center}
\verb|\renewcommand{\labelenumi}{\arabic{enumi}.}|
\end{center}
as the latter will only change
enumeration in the list itself, but not the way references to those
numbers are printed.
I generally prefix my labels with the environment type, to help keep
them straight in my mind, but this is unnecessary.
......@@ -210,11 +225,22 @@ And this shows that the statement is correct.
\end{thm}
\begin{prop}\label{prop:foo}
a proposition
a proposition, with an enumerated list
\begin{enumerate}
\item \label{it:a} first item
\item \label{it:b} second item
\end{enumerate}
\end{prop}
\begin{lem}\label{lem:foo}
a lemma
a lemma, also with a list, but having a different numbering
\begin{enumerate}
\renewcommand{\theenumi}{\arabic{enumi}}
\item \label{it:a2} first item
\item \label{it:b2} second item
\end{enumerate}
\end{lem}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment