[OS X TeX] Looking for inline mpost example

Claus Gerhardt gerhardt at math.uni-heidelberg.de
Sat Dec 25 09:17:28 EST 2004


The best way to combine these different tasks is an external script, 
e.g., my script bibtex-mpost-complete gives you the desired result (on 
the fly) by just clicking a button.

Claus


On Dec 25, 2004, at 7:06, Will Robertson wrote:

> On 25 Dec 2004, at 5:38 AM, Maarten Sneep wrote:
>
>> The Metafun manual (from the pragma-ade website) has some pointers to 
>> packages that do this as well. Be aware though that your document now 
>> becomes a multi-stage rocket: Compile latex, write out metapost 
>> sources, call metapost, call latex once more to include the compiled 
>> metapost (and write out any changes in the metapost code). There are 
>> constructs conceivable that would require several more stages.
>
> Would it be conceivable for a TeX-variant to be able to perform this 
> on the fly? That is, just as the metapost code is reached in the 
> typesetting stage, this TeX-like program would fire off mpost to 
> compile the drawing if it weren't already available then continue with 
> the typesetting once the image was available?
>
> In fact, wouldn't that be possible now with \iffileexists and 
> \write18? (I haven't touched this stuff before, so I have no real 
> idea, though.)
>
> (Of course, you'd need to have --shell-escape enabled.)
>
> W
>
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>           & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>
>

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list