Marco Patzer schrieb am 27.11.18 um 21:37:
Hi,
I do have a project structure with environment, project and component files. The language of the individual documents is defined in the components using
\setupdocument [language=sv]
The environment needs to adjust language-dependent settings. However, when the environment file is read, the language is not specified, yet. In the past I've used
\appendtoks … \to\everystarttext
and I belive it has worked that way. In any case, right now it doesn't. I have attached a not-so-minimal example project.
How to set this up correctly? If possible I'd like to keep the language in the document settings as shown above.
A nudge in the right direction appreciated.
\appendtoks \mainlanguage[\documentvariable{language}]% %\doifdocumentvariable{language}{\mainlanguage[\documentvariable{language}]}% \to \everysetupdocument Wolfgang