ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 2006.07.13 release notes (MP-related)
@ 2006-07-18  8:38 Renaud AUBIN
  2006-07-18  9:53 ` Hans Hagen
  2006-07-18 10:54 ` Mojca Miklavec
  0 siblings, 2 replies; 6+ messages in thread
From: Renaud AUBIN @ 2006-07-18  8:38 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 739 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 1123 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2006.07.13 release notes (MP-related)
  2006-07-18  8:38 2006.07.13 release notes (MP-related) Renaud AUBIN
@ 2006-07-18  9:53 ` Hans Hagen
  2006-07-18 10:54 ` Mojca Miklavec
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2006-07-18  9:53 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2006.07.13 release notes (MP-related)
  2006-07-18  8:38 2006.07.13 release notes (MP-related) Renaud AUBIN
  2006-07-18  9:53 ` Hans Hagen
@ 2006-07-18 10:54 ` Mojca Miklavec
  2006-07-18 17:40   ` Aditya Mahajan
  1 sibling, 1 reply; 6+ messages in thread
From: Mojca Miklavec @ 2006-07-18 10:54 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2006.07.13 release notes (MP-related)
  2006-07-18 10:54 ` Mojca Miklavec
@ 2006-07-18 17:40   ` Aditya Mahajan
  2006-07-18 19:54     ` Mojca Miklavec
  0 siblings, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2006-07-18 17:40 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2006.07.13 release notes (MP-related)
  2006-07-18 17:40   ` Aditya Mahajan
@ 2006-07-18 19:54     ` Mojca Miklavec
  2006-07-18 21:38       ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Mojca Miklavec @ 2006-07-18 19:54 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2006.07.13 release notes (MP-related)
  2006-07-18 19:54     ` Mojca Miklavec
@ 2006-07-18 21:38       ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2006-07-18 21:38 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-07-18 21:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-18  8:38 2006.07.13 release notes (MP-related) Renaud AUBIN
2006-07-18  9:53 ` Hans Hagen
2006-07-18 10:54 ` Mojca Miklavec
2006-07-18 17:40   ` Aditya Mahajan
2006-07-18 19:54     ` Mojca Miklavec
2006-07-18 21:38       ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).