[Tex/LaTex] Custom automatic equation numbering

equationsnumbering

I just read a book where the equations in the Introduction were numbered slightly differently compared to the other sections, namely by (In.x) where x stands for the number (so it starts off as (In.1), (In.2), (In.3) and so on.

I'd like to try this this but I haven't found out so far how to do this systematically, i.e. not tagging each equation manually but rather using someting like the \label functionality .. any suggestions?

Best Answer

You can do this using

\renewcommand{\theequation}{ln.\arabic{equation}}

If you want to switch it back, you can use

\renewcommand{\theequation}{\arabic{equation}}

A complete MWE follows.

\documentclass{article}

\renewcommand{\theequation}{ln.\arabic{equation}}
\begin{document}

\begin{equation}
  y=mx+b
\end{equation}
\end{document}
Related Question