Michal Kvasnicka wrote:
Good evening.
How can I make RLXTOOLS to regenerate a figure when its dimensions in
the TeX file are changed? (What I mean is this: For screen version of my
documents I downscale JPGs to 100ppi. But it depends on the size given
by the TeX file. So I'd like RLXTools to regenerate the figure when I change
\externalfigure[bum.jpg][width=\textwidth]
to
\externalfigure[bum.jpg][width=\makeupwidth]
for instance (while in columns).)
How can I get force it to do it?
in the default rlxtools.rlx file you will find
rl:old/
rl:new/
rl:step
texmfstart pstopdf --convert --method=4
--inputpath=
--outputpath=/
so, what you can do is define something lowres-x and lowres-y and set
the conversion to one of those those depending on the width
tricky but kind of okay is
\definemeasure[whatever][\makeupwidth]
...
width=\measure{whatever},conversion=lowres-\ifdim\measure{whatever}<\makeupwidth
x\else y\fi,...
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------