When toc title contains semantic macros, the *.toc files are read very early in the document process, so they must load the respective modules first.
Therefore \begin{omgroup} has a key loadmodules, which, if set tells sTeX to determine the loaded modules, and for each foo of them deposit a \@requiremodules{absolute file path of foo}{sms} in the *.toc file. (see omdoc.sty around line 81).
\@requiremodules is an internal version of \requiremodules for use in the *.aux file. We disable it
at the end of the document, so that when the aux file is read again, nothing is loaded.
For some reason this does not work. for MiKoMH/AI/source/course/notes/notes.tex.
When toc title contains semantic macros, the *.toc files are read very early in the document process, so they must load the respective modules first.
Therefore
\begin{omgroup}
has a keyloadmodules
, which, if set tells sTeX to determine the loaded modules, and for eachfoo
of them deposit a\@requiremodules{absolute file path of foo}{sms}
in the*.toc
file. (seeomdoc.sty
around line 81).\@requiremodules
is an internal version of\requiremodules
for use in the*.aux
file. We disable it at the end of the document, so that when theaux
file is read again, nothing is loaded.For some reason this does not work. for
MiKoMH/AI/source/course/notes/notes.tex
.