[Therion] Tex and language ?
Xavier Robert
xavier.robert at univ-grenoble-alpes.fr
Fri Sep 29 00:55:44 CEST 2017
Hi all,
I am currently working on maps that can be in french or in spanish.
The thing is that I wrote some tex macros to add items in the header, like « Synthèse : X Y ». Inside a code tex-map/endcode block, I define the term « synthèse » as : \newtoks\thsynth \thsynth={Synthèse }. This is the french word. All my macros are in a config file placed in a parent folder.
In that case, each time I change the language to spanish with the therion « language es » command that I use in my thconfig files, I also need to change the definition of \thsynth in my code tex-map/endcode block to \newtoks\thsynth \thsynth={Síntesis}.
Is there a way to add a condition on the language in the code tex-map/endcode block to avoid changing manually the config file?
In fact, I am looking for something like:
code tex-map
\if {language variable = es} \newtoks\thsynth \thsynth={Síntesis}
\elsif {language variable = fr} \newtoks\thsynth \thsynth={Synthèse }
\else \newtoks\thsynth \thsynth={Synthesys}
\fi
endcode
Thanks a lot for you lights,
Cheers,
Xavier
More information about the Therion
mailing list