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.

  • 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


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:


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .