Wolfgang Schuster
Am 30.10.2012 um 15:31 schrieb John Devereux
: Hi,
What is the correct way to set or modify the search path for tex files?
I want to make it mode-dependent. For example, for figures I have something like
\doifmode{en} {\def\FigDirLanguage{fig/lang_en}\def\DocumentSuffix{EN}\mainlanguage[en]} \doifmode{de} {\def\FigDirLanguage{fig/lang_de}\def\DocumentSuffix{DE}\mainlanguage[de]}
[...]
\setupexternalfigures[directory={fig,{\FigDirLanguage},{../fig},{../\FigDirLanguage}}]
Figures:
\startmodeset [en] {\setupexternalfigures[directory={fig,fig/lang_en}]} [de] {\setupexternalfigures[directory={fig,fig/lang_de}]} [default]{\setupexternalfigures[directory={fig}]} \stopmodeset
Language:
\startmodeset [en]{\mainlanguage[en]} [de]{\mainlanguage[de]} \stopmodeset
Suffix:
\define\DocumentSuffix {\doifmodeelse{en}{EN}{\doifmode{de}{DE}}}
or
\startmodeset [en] {\defineexpandable\DocumentSuffix{EN}} [de] {\defineexpandable\DocumentSuffix{DE}} [default]{\defineexpandable\DocumentSuffix{EN}} \stopmodeset
Thank you Wolfgang, these "modesets" are neat. But it was primarily the .tex file search path I was interested in, I have figures working already, although your way is nicer. Is there something like \setuptexfilesdirectory? -- John Devereux