From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Mari Voipio <mari.voipio@iki.fi>
Subject: Re: External figures from other folders
Date: Tue, 05 Feb 2013 18:18:22 +0100 [thread overview]
Message-ID: <51113EDE.40206@wxs.nl> (raw)
In-Reply-To: <CAGbDsP3US8pH=bBRGSWE9_uqD1FPXgrK6APD3TmhftfOhc0Cfw@mail.gmail.com>
On 2/4/2013 5:07 PM, Mari Voipio wrote:
> This way I didn't need to change the names of my graphics nor my code.
> It was also handy when translations arrived in batches; I translated
> the graphics one by one and could always compile a proper looking
> document, first with all graphics in English, then some in the target
> language, finally fully translated - and still, if a new version of
> the wiring drawing turned up, I only had to update the master
> directory and then remember to compile the translations to get the
> changes in.
Here's another one handy for manuals:
In the preamble or environment:
\defineexternalfigure[sizeone][width=5cm]
\defineexternalfigure[sizetwo][height=4cm]
(these can also inherit: \definexternalfigure[a][b][frame=on])
In the document source:
\externalfigure[cow][sizeone]
\externalfigure[cow][sizetwo][frame=on]
A way to get consistent scaling (probably one of the oldest features ..
in mkii it's part of \useexternalfigure but in mkiv this has been split
into two commands with a cleaner inheritance model).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2013-02-05 17:18 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
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 [this message]
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=51113EDE.40206@wxs.nl \
--to=pragma@wxs.nl \
--cc=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).