That is, suppose that I am at item n and I want to make a reference to item n - 3 without explicitly specifying it.
Is it possible to get the current item number and perform arithmetic on it in enumerate environment?
Asked
Active
Viewed 1,257 times
3
merlin2011
- 3,343
1 Answers
6
How about
\item \number\numexpr\value{enumi}-3\relax
Here's a complete MWE:
\documentclass{article}
\begin{document}
\begin{enumerate}
\item cow
\item lion
\item moo
\item \number\numexpr\value{enumi}-3\relax
\item meow
\end{enumerate}
\end{document}
cmhughes
- 100,947
\labelitem n-3 and\refit. Probably you should clarify better your question. – egreg Mar 04 '13 at 22:01