3

I would like to disable the numbering of all equations in my latex document without changing math environments to their starred version.

The scenario is: I have a long document and I would like to produce one pdf where equations are numbered and another one where they aren't. So my idea was to simply trigger the desired behavior by adding appropriate commands in the preamble.

I tried \makeatletter\renewcommand\@eqnnum{}\makeatother as suggested here, but this does not seem to do anything.

I use align, alignat and equation environments. Thank you.

2
  • What should happen to cross references?
    – cmhughes
    Mar 25, 2017 at 18:06
  • oh yes should have mentioned. I want to additionally extract the equations via the preview package so It does not matter that cross sections do not function any more
    – Bastian
    Mar 25, 2017 at 18:12

1 Answer 1

4

It looks like you're using the amsmath package. If that's the case, all you need to do is to issue the following instructions in the preamble:

\makeatletter
\renewcommand\tagform@[1]{}
\makeatother

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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