Disable Metapost rendering?
Hi, I really like ConTeXt's MP processing features, but as soon as I include more than five or six MP graphics in a document, typesetting slows down to a crawl. As far as I know, the PSTricks package has some option to only process a given range of the figures defined in the TeX file and reuse the existing output for the other ones. Is there a similar function in ConTeXt? Some global command like \donotrerender[1-n] would be great, a processing tag for each figure like \startuseMPgraphic{...}[rerender=no] would be perfect. Best regards, Sebastian Sturm
Hi, The only way I know of is to disable all mpost runs with texexec --nomp .. Patrick -- ConTeXt wiki: http://contextgarden.net texshow-web: http://texshow.contextgarden.net
Patrick Gundlach wrote:
Hi,
The only way I know of is to disable all mpost runs with
texexec --nomp ..
there is also --automp ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Hi, that sounds very promising - especially --automp, since I don't really want to change my ConTeXt script everytime I changed a MP figure. Including --automp in my script file, however, didn't stop ConTeXt from recalculating my MP figures every time I typeset the document, even though I hadn't changed them in the meantime. I couldn't find anything about automp in the TeXExec manual, but the --help option tells me that automp causes it to render mp pictures only if needed. So how does it determine whether a recalculation is necessary or not? Is it a problem if my figures rely on the randomizers, like uniformdeviate()? Best regards, Sebastian Sturm
Sebastian Sturm wrote:
Hi,
that sounds very promising - especially --automp, since I don't really want to change my ConTeXt script everytime I changed a MP figure. Including --automp in my script file, however, didn't stop ConTeXt from recalculating my MP figures every time I typeset the document, even though I hadn't changed them in the meantime. I couldn't find anything about automp in the TeXExec manual, but the --help option tells me that automp causes it to render mp pictures only if needed. So how does it determine whether a recalculation is necessary or not? Is it a problem if my figures rely on the randomizers, like uniformdeviate()?
indeed, that can be solved by setting the random seed occasionally or manually \setupsystem[random=big] % or random=12345 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 -----------------------------------------------------------------
p pictures only if needed. So how does it determine whether a recalculation is necessary or not? Is it a problem if my figures rely on the randomizers, like uniformdeviate()?
indeed, that can be solved by setting the random seed occasionally or manually \setupsystem[random=big] % or random=12345
Great, thanks alot! Best regards, Sebastian Sturm
Sebastian Sturm wrote:
Hi,
I really like ConTeXt's MP processing features, but as soon as I include more than five or six MP graphics in a document, typesetting slows down to a crawl. As far as I know, the PSTricks package has some option to only process a given range of the figures defined in the TeX file and reuse the existing output for the other ones. Is there a similar function in ConTeXt?
Some global command like \donotrerender[1-n] would be great, a processing tag for each figure like \startuseMPgraphic{...}[rerender=no] would be perfect.
--automp will collect graphics and run them in between 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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen Outside
-
Patrick Gundlach
-
SebastianSturm@t-online.de