ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Search path for .tex files (mkiv)
@ 2012-10-30 14:31 John Devereux
  2012-10-30 14:59 ` Wolfgang Schuster
  2012-10-30 15:05 ` Marco Patzer
  0 siblings, 2 replies; 9+ messages in thread
From: John Devereux @ 2012-10-30 14:31 UTC (permalink / raw)
  To: ntg-context


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}}]


I want to be able to do for example

\input disclaimer

And have it use the correct version. (There are more complicated
scenarios too).

In case there is a better way to do it, what I want is to have language-
or mode- specific versions of some "boilerplate" texts. These would be
in individual files. Documents elsewhere in a directory tree could
reference these using a standard name and it would be picked according
to the set language/mode.

Thanks,

John

-- 

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-10-30 17:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-30 14:31 Search path for .tex files (mkiv) John Devereux
2012-10-30 14:59 ` Wolfgang Schuster
2012-10-30 16:12   ` John Devereux
2012-10-30 16:20     ` Wolfgang Schuster
2012-10-30 15:05 ` Marco Patzer
2012-10-30 16:24   ` John Devereux
2012-10-30 16:35     ` Wolfgang Schuster
2012-10-30 16:38     ` Marco Patzer
2012-10-30 17:53       ` John Devereux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).