Changes

Jump to navigation Jump to search
=== Guard against double-loading of input files ===
Because modules Sometimes, macro or layout definition files can be used in from within various contextsinside a single typesetting run. If that is the case, we want it can come in handy to be able to prevent macro files from being loaded more than once. This can be done using:
<texcode>
where <code>\command</code> is a command defined in the module to be loaded only once.
For example, [[source:syst-gen.tex| syst-gen.tex]] implements <code>\writestatus</code>, and therefore it starts could start with:
<texcode>
</texcode>
Actually Normally, you don't need this macro for modulesat all, since <code>\usemodule</code> does it's own bookkeeping. It is purely intended for files that are loaded via the TeX primitive <code>\input</code>.<code>\usemodule</code> does its own bookkeeping, and combining it with <code>\usetypescriptfile</code> is generally not a good idea.
=== Protecting internal macros ===

Navigation menu