slatex / sTeX

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

more systematic treatment of loadmodules= #342

Open kohlhase opened 2 years ago

kohlhase commented 2 years ago

For every sTeX environment that has a title= attribute, we have the problem that we often want to

The problem is aggravated, if the title is exported into e.g. the table of contents or such things; e.g. for sfragment and assignment.

We used to have the uses= attribute e.g. in sproblem, e.g. in MathHub/MiKoProblems/GenCS/source/machines/mod/VM-divider.en.tex, which has

\begin{sproblem}[uses={[MiKoMH/GenCS]{machines/mod?VM-imperative}},
  title=Divider in $\VMlanguage$]

which specifies a \usemodule that is executed before the title= is executed.

We need something like this