From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80642 Path: news.gmane.org!not-for-mail From: Mari Voipio Newsgroups: gmane.comp.tex.context Subject: Re: External figures from other folders Date: Mon, 4 Feb 2013 16:39:42 +0200 Message-ID: References: <510F993E.6020807@mmnetz.de> <20130204120352.GA5513@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1359988791 31166 80.91.229.3 (4 Feb 2013 14:39:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2013 14:39:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 04 15:40:12 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U2NDO-0007Us-IX for gctc-ntg-context-518@m.gmane.org; Mon, 04 Feb 2013 15:40:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AF3AD101F6; Mon, 4 Feb 2013 15:39:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kKeiSeA-2kLe; Mon, 4 Feb 2013 15:39:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E14DA101F9; Mon, 4 Feb 2013 15:39:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A27FE101F9 for ; Mon, 4 Feb 2013 15:39:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id y4MZhXs3geRW for ; Mon, 4 Feb 2013 15:39:43 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 7E981101F6 for ; Mon, 4 Feb 2013 15:39:43 +0100 (CET) Original-Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r14EdgsO002988 for ; Mon, 4 Feb 2013 15:39:42 +0100 Original-Received: by mail-wg0-f52.google.com with SMTP id 12so4771350wgh.19 for ; Mon, 04 Feb 2013 06:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=M/GZP7ZM6YVw+ti4SpHLCRcrmZ4CHPZk9HSA+kyNsBw=; b=dNRch/Kxim8y1p0mahXkjsoQ/I+VqYr91zNjPztNOuTW0tb+osaEIyDQuN9LBBSETk QzS9e2X6KExniS8WO9oxx9kEXQ+AhL4KoUp2Kfs7z51btqAxph3S7yHgO/0Np61KMA24 pb1SwFHmSZraEl84/qfvKWo258mbL3YFU24ZMvhzvWq5THZaDZGYHGAKcv/a2oKeT0Ht YLIw5AvkBwrtRihcO5o9MX5V7JgD3qwq88KVUTzSPH1m9XOFfRr6QgvlUDWpvKDs3QVy PxRic67xi5jUDFHlNp7yVViaapGgmw8rJc27fBd50XRKzjFwYY8eZbcK/Q/+qWG1DdX8 GK3A== X-Received: by 10.180.79.201 with SMTP id l9mr8149126wix.20.1359988782559; Mon, 04 Feb 2013 06:39:42 -0800 (PST) Original-Received: by 10.194.11.73 with HTTP; Mon, 4 Feb 2013 06:39:42 -0800 (PST) In-Reply-To: <20130204120352.GA5513@homerow> X-Google-Sender-Auth: waDcnADc-btnI74pBzIZBaZ-Oas X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.52; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VIUeDGJF - 7232f8d21e4f - 20130204 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80642 Archived-At: On Mon, Feb 4, 2013 at 2:03 PM, Marco Patzer 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 ___________________________________________________________________________________