After updating MikTex up to 09.04.2018 (MikTex 2.9.6637, Win 10, 64bit) I've got the error:

! LaTeX Error: Command \counterwithout already defined.
               Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
l.42 ...thout}{\@ifstar{\c@t@soutstar}{\c@t@sout}}                                                  

It seems to me this problem is connected with multiple definitions of star versions od \counterwithout / \counterwithin in latexrelease.sty and chngcntr.sty.





Is anybody know how to solve this?

  • @DavidCarlisle: Something that has changed recently and it made it's way into MikTeX already? – user31729 Apr 9 '18 at 12:57
  • @ChristianHupfer yes there have been three latex releases in last three days, but also latexrelease is mostly aimed at end users not core developers. – David Carlisle Apr 9 '18 at 12:58
  • @DavidCarlisle: That's not really clear from the documentation, in my point of view. – user31729 Apr 9 '18 at 12:58
  • @ChristianHupfer well it is only for running old documents on new formats (or the other way round) so it is just for fixing local issues with locally available documents. – David Carlisle Apr 9 '18 at 12:59
  • @DavidCarlisle: I wonder how many documents are broken then until chngcntr is updated unless your work-around isn't applied. – user31729 Apr 9 '18 at 13:02

A new version 1.1a of chngcntr is now available on ctan which detects that the commands are already defined and so does nothing other than leave a message in the log, so the error in the question is no longer generated.

Original answer

For now, you can do




chngcntr needs a small update (which was planned but the current maintainer is possibly distracted at present)

| improve this answer | |
  • Thank you for the quick reply but, unfortunately, in my document chngcntr.sly are loading implicitly as a part of some package (which I don't know). – Alexey Apr 9 '18 at 13:07
  • @Alexey put the two \let lines as the first two lines of your document, that should work also – David Carlisle Apr 9 '18 at 13:10
  • The оnly solution I've found is to replace \newcommand\counterwithout by \renewcommand\counterwithout within chngcntr.sty – Alexey Apr 9 '18 at 13:12
  • @Alexey you should not change inside packages. And a better solution would have been \providecommand instead of \renewcommand, then the version coming from LaTeX wins. – daleif Apr 9 '18 at 13:20
  • 1
    Maybe that helps someone who had problems getting the updated version to work: For me, the error remained even after installing the updated version of chngcntr and also after deleting all document generated files and recompiling and after explicitly calling the package version. The error pointed to the chngcntr.sty in the AppData/Local/Roaming tree. So I had to delete the old file there to make LaTeX use the new updated version. – Lysanne Apr 17 '18 at 21:35

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.