From: John Devereux <john@devereux.me.uk>
To: ntg-context@ntg.nl
Subject: Re: Search path for .tex files (mkiv)
Date: Tue, 30 Oct 2012 16:12:40 +0000 [thread overview]
Message-ID: <877gq8vszr.fsf@devereux.me.uk> (raw)
In-Reply-To: <3C159AC4-5070-449C-BF31-57A815554E46@gmail.com> (Wolfgang Schuster's message of "Tue, 30 Oct 2012 15:59:44 +0100")
Wolfgang Schuster <wolfgang.schuster@gmail.com> writes:
> Am 30.10.2012 um 15:31 schrieb John Devereux <john@devereux.me.uk>:
>
>>
>> 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
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-10-30 16:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-30 14:31 John Devereux
2012-10-30 14:59 ` Wolfgang Schuster
2012-10-30 16:12 ` John Devereux [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877gq8vszr.fsf@devereux.me.uk \
--to=john@devereux.me.uk \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).