Menu

#103 tocbasic throws error when nomencl is loaded after caption

KOMA-Script 3.49.1
closed
2 days ago
2026-01-05
No

Since the latest update of koma-script I get an error from tocbasic: ! LaTeX Error: Unknown message 'caption-code-by-class-deactivated' for module (LaTeX) 'tocbasic'.

tocbasic gets loaded by the nomencl package by default.

MWE:

\documentclass[a4paper]{article}

\usepackage{caption}
\usepackage{nomencl}

\begin{document}

\section{Introduction}
Some random text.
\end{document}

This example throws the reported error.
When the inclusion order of caption and nomencl is reversed, the code compiles fine. Needless to say, the order in the provided MWE has worked for the last few years, this error message was introduced with the latest update.
Best regards,
Paul

1 Attachments

Related

Issues: #104

Discussion

  • Markus Kohm

    Markus Kohm - 2026-01-05
    • labels: --> tocbasic, bug
    • status: open --> closed
    • assigned_to: Markus Kohm
     
  • Markus Kohm

    Markus Kohm - 2026-01-05

    Already fixed in [r4250] + [r4251].

     

    Related

    Commit: [r4250]
    Commit: [r4251]


    Last edit: Markus Kohm 2026-01-05
  • Markus Kohm

    Markus Kohm - 2 days ago

    Sorry for forgetting to document the workaround: Load tocbasic and all packages that load tocbasic themselves before caption. Of course, you can also install the current developer version of KOMA-Script instead. How to do this is documented in section "Testing" of CONTRIBUTING.md.

     

    Last edit: Markus Kohm 2 days ago

Log in to post a comment.