\ref
commands.My first example would look a bit like this, then (it's a bit stupid because it's actually 1a/b in the original text, so I could just use
\ex
, but I can't reprint every single example in my summary):Code: Select all
\begin{exe}
\exi{(1)} \label{one} lorem ipsum
\begin{xlist}
\exi{a.}[\#]{dolor sit amet}
\exi{b.}[]{consetetur...}
\end{xlist}
\end{exe}
\ref{one}
in the text, it prints "2". I don't know why it's 2, but, well, yeah. Is there a way to get it to work somehow without doing a separate \setcounter{exx}{0}
for every example? (which is the least ugly solution I've found so far)edit: I've come to realize that doing it with the
\setcounter
method is actually easier than manually doing every single one, so while it would be cool to know a different way, there is no need to try to figure out a different solution 