Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

That is, suppose that I am at item n and I want to make a reference to item n - 3 without explicitly specifying it.

share|improve this question
    
\label item n-3 and \ref it. Probably you should clarify better your question. –  egreg Mar 4 '13 at 22:01

1 Answer 1

up vote 4 down vote accepted

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}
share|improve this answer
    
Do you need \relax after the calculation? –  azetina Mar 5 '13 at 0:07
    
@azetina probably a good idea, thanks –  cmhughes Mar 5 '13 at 2:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.