2006.07.13 release notes (MP-related)
Hi all, First, I don't understand this part of the release notes: "supp-mps.tex: * \startuseMPgraphic and \startusableMPgraphic no longer have an argument" Does it mean that we don't have to use \startuseMPgraphic{myMPgrapharg} ... \stopMPgraphic with any myMPgrapharg ? I assume I've missed something... :-\ Second, what's the difference between staticMPfigure and staticMPgraphic and how (and where) can we use it ? Some advice are welcome in this part because I use a lot of MPgraphic and I'm really interested to use staticMPXXX if I can save some processing time... ;) Last but not least: I've posted some days ago a thread "[NTG-context] A page for figures ?"... This problem is always topical... Cheers, Renaud
Renaud AUBIN wrote:
Hi all,
First, I don't understand this part of the release notes:
"supp-mps.tex:
* \startuseMPgraphic and \startusableMPgraphic no longer have an argument"
Does it mean that we don't have to use \startuseMPgraphic{myMPgrapharg} ... \stopMPgraphic with any myMPgrapharg ?
you can delete those lines; it was a misunderstanding; they are now two-step calls, needed for obeying mp lines; not of importance to users;
I assume I've missed something... :-\
Second, what's the difference between staticMPfigure and staticMPgraphic and how (and where) can we use it ? Some advice are welcome in this part because I use a lot of MPgraphic and I'm really interested to use staticMPXXX if I can save some processing time... ;)
there was a thread on this list; static ones can be called as figures 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 -----------------------------------------------------------------
On 7/18/06, Renaud AUBIN wrote:
Second, what's the difference between staticMPfigure and staticMPgraphic and how (and where) can we use it ? Some advice are welcome in this part because I use a lot of MPgraphic and I'm really interested to use staticMPXXX if I can save some processing time... ;)
Take a look if Aditya's remarks on http://wiki.contextgarden.net/Mpgraphic can answer some of your questions. staticMP... seems to create an intermediate PDF which is reused in the next run (I had some troubles making some of the functionality work which otherwise worked in someotherkindofMPgraphic: I don't remember what exactly it was, perhaps StartPage. I kept using the old command since I had no time to investigate, but it wasn't any serious problem.) Mojca
On Tue, 18 Jul 2006, Mojca Miklavec wrote:
On 7/18/06, Renaud AUBIN wrote:
Second, what's the difference between staticMPfigure and staticMPgraphic and how (and where) can we use it ? Some advice are welcome in this part because I use a lot of MPgraphic and I'm really interested to use staticMPXXX if I can save some processing time... ;)
Take a look if Aditya's remarks on http://wiki.contextgarden.net/Mpgraphic can answer some of your questions.
staticMP... seems to create an intermediate PDF which is reused in the next run
(I had some troubles making some of the functionality work which otherwise worked in someotherkindofMPgraphic: I don't remember what exactly it was, perhaps StartPage. I kept using the old command since I had no time to investigate, but it wasn't any serious problem.)
While debugging, it helps to know what is happening in the background. Everything between \startstaticMPfigure{name}...\stopstaticMPfigure is written to \jobname-name.mp. A pdf file is generated using texexec --mpgraphic which creates a temp file in the background with \starttext \setupoutput[pdftex] \setupcolors[state=start] \startTEXpage \convertMPtoPDF{<mpfilename>}{1}{1} \stopTEXpage \stoptext This file is compiled using texexec and the output is renamed to \jobname-name.pdf The second part (that is creating a pdf) happens only if the mp file did not change, which is checked by comparing the md5 sums. The md5 comparison can fail rarely. If you want to force a new pdf to be created, rm the md5 file. There is nothing inherently different in the processing of staticMPfigure. So anything that works with someotherMP should also work in staticMP. Hope this helps, Aditya
On 7/18/06, Aditya Mahajan wrote:
There is nothing inherently different in the processing of staticMPfigure. So anything that works with someotherMP should also work in staticMP.
Well, uniqueMPgraphic is slightly different for example. It suspect that staticMP can't handle stuff such as \overlaywidth or PageWidth by design. Mojca
Mojca Miklavec wrote:
On 7/18/06, Aditya Mahajan wrote:
There is nothing inherently different in the processing of staticMPfigure. So anything that works with someotherMP should also work in staticMP.
Well, uniqueMPgraphic is slightly different for example. It suspect that staticMP can't handle stuff such as \overlaywidth or PageWidth by design.
indeed, because processing is done in a separate run, not everything works the same; i'll try to sort out the map file problem (tricky but doable) Hans
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Mojca Miklavec
-
Renaud AUBIN