Marco Patzer schrieb am 27.11.18 um 21:56:
On Tue, 27 Nov 2018 21:41:52 +0100
Wolfgang Schuster <[email protected]> wrote:

A nudge in the right direction appreciated.
\appendtoks
    \mainlanguage[\documentvariable{language}]%
%\doifdocumentvariable{language}{\mainlanguage[\documentvariable{language}]}%
\to \everysetupdocument
That's basically what I've done in my project file (te-proj.tex). At
least the code is supposed to do exactly that.

But even your solution doesn't work here. Did you try it in the
example project file?

\startenvironment [*]

\startsetups [itemgroup:en]
  \setupitemgroup [itemize] [i]
\stopsetups

\startsetups [itemgroup:sv]
  \setupitemgroup [itemize] [a]
\stopsetups

\setuplanguage
  [en]
  [setups=itemgroup:en]

\setuplanguage
  [sv]
  [setups=itemgroup:sv]

\appendtoks
\doifdocumentvariable{language}{\mainlanguage[\documentvariable{language}]}
\to \everysetupdocument

\stopenvironment

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to