tocbasic throws error when nomencl is loaded after caption
KOMA-Script is a bundle of versatile LaTeX classes and packages
Brought to you by:
kohm
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
Already fixed in [r4250] + [r4251].
Related
Commit: [r4250]
Commit: [r4251]
Last edit: Markus Kohm 2026-01-05
Sorry for forgetting to document the workaround: Load
tocbasicand all packages that loadtocbasicthemselves beforecaption. 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