There is a problem with spanish when using a KOMA-Script class like scrbook instead of the standard classes. However, changing the language also resolves the problem. Therefore I report the problem here as well (cf. https://sourceforge.net/p/koma-script/tickets/102/).
\documentclass{scrbook}
\usepackage[spanish]{babel}
\begin{document}
Test
\end{document}
results in the error: LaTeX hooks Error: Generic hooks cannot be added to '\@startsection'.
There is a problem with
spanishwhen using a KOMA-Script class likescrbookinstead of the standard classes. However, changing the language also resolves the problem. Therefore I report the problem here as well (cf. https://sourceforge.net/p/koma-script/tickets/102/).results in the error:
LaTeX hooks Error: Generic hooks cannot be added to '\@startsection'.