slatex / sTeX

A semantic Extension of TeX/LaTeX
50 stars 9 forks source link

master: *.toc has @\requiremodules #264

Closed kohlhase closed 2 years ago

kohlhase commented 4 years ago

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.