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:manipulator name='lowres' suffix='pdf'>
        <rl:old><rl:value name='path'/>/<rl:value name='file'/></rl:old>
        <rl:new><rl:value name='path'/>/<rl:value 
name='prefix'/><rl:value name='file'/></rl:new>
        <rl:step>
            texmfstart pstopdf --convert --method=4
            --inputpath=<rl:value name='path'/>
            --outputpath=<rl:value name='path'/>/<rl:value name='prefix'/>
            <rl:value name='file'/>
        </rl:step>
    </rl:manipulator>

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

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to