ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mari Voipio <mari.voipio@iki.fi>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: External figures from other folders
Date: Mon, 4 Feb 2013 16:39:42 +0200	[thread overview]
Message-ID: <CAGbDsP0JcRUHTiaxdTCR9eZRFAN466J04tDE5Q_M5fRHz59Cug@mail.gmail.com> (raw)
In-Reply-To: <20130204120352.GA5513@homerow>

On Mon, Feb 4, 2013 at 2:03 PM, Marco Patzer <homerow@lavabit.com> wrote:
>
> \setupexternalfigures
>   [directory=images]

The images can also be elsewhere than in a subdirectory:

\setupexternalfigures[directory=../graphics]

You can also tell ConTeXt to look into multiple directories:

\setupexternalfigures[directory={images,drawings}]


The above can of course be combined as needed, one of my recent
ConTeXt files has

\setupexternalfigures[directory={../Classic,../Celtic}]



One more trick: ConTeXt will first look for a pic in current
directory, then proceed to check out the others defined by
\setupexternalfigures.
When I worked with a master file and its translations where some
figures had translated text and others didn't, I dumped the translated
pics in the same directory with my translated tex file, while all the
untouched graphics could be found at the root. So when I compiled e.g.
the Swedish tex file, it would first look for graphics in its own
directory 'swedish', and only if a graphic could not be found, it
followed the paths set by \setupexternalfigures. That is, ConTeXt
doesn't get confused by having several graphics with the same name in
the same tree because it stops looking after the first hit.
I figured this out almost by accident and it turned out to be one of
the smartest workflow choices I've made during my 10 years of
ConTeXting. I could swear I've seen the info on a wiki page, but can't
find that now... Anyway, this is always useful to check out, it
contains a few more nifty trick:
http://wiki.contextgarden.net/Command/setupexternalfigures



Mari
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2013-02-04 14:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-04 11:19 "H. Özoguz"
2013-02-04 12:03 ` Marco Patzer
2013-02-04 14:39   ` Mari Voipio [this message]
2013-02-04 15:30     ` Alain Delmotte
2013-02-04 16:07       ` Mari Voipio
2013-02-04 16:49         ` Alain Delmotte
2013-02-05 17:18         ` Hans Hagen
2013-02-04 13:25 "H. Özoguz"

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=CAGbDsP0JcRUHTiaxdTCR9eZRFAN466J04tDE5Q_M5fRHz59Cug@mail.gmail.com \
    --to=mari.voipio@iki.fi \
    --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).