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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an unnumered section in a document, defining notation for the further contents. Since it's unnumbered, the equations within are labelled: '(1)', etc.

For example:

A dot over any object denotes the time derivative of that object. Hence,\\
    \frac{\partial}{\partial x^0}\alpha(x) = \frac{1}{c}\frac{\partial}{\partial t}\alpha(x) = \frac{1}{c}\dot{\alpha}(x).



Is there a way I can tell latex to automatically label these as '(N.1)' similar to an appendix?

share|improve this question
up vote 5 down vote accepted

In using an ordinary equation environment, you can prepend what you're interested in adding to the equation number by modifying \theequation - the printing mechanism for the equation counter. For example:

enter image description here

\section{A numbered section}
  f(x) =  ax^2 + bx + c \label{eqnA}
\section*{An unnumbered section}
  f(x) =  ax^2 + bx + c \label{eqnB}

Note that you cannot update \theequation inside the equation environment, since the counter stepping (and reference setting) is done at the start of the environment. That is, it would be too late to update this inside equation for it to be picked up.

If the change should be temporary, you can either localize it using a group, or reset it manually where you want it to change.

If you're only after updating the reference and not the equation number itself, you could modify \p@equation, since the construction of \@currentlabel - the element that stored counters that are \refstep-ed - has the following form (from latex.ltx):

       {\csname p@#1\endcsname\csname the#1\endcsname}%

Note how \@currentlabel is (roughly) defined as \p@<cntr>\the<cntr>.

share|improve this answer
A local \renewcommand for this section is exactly what I needed. Thanks. – Duncan Macleod Mar 27 '13 at 19:41

Your Answer


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.