ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \startMPinclusions[+]
@ 2009-03-17 12:19 Hans van der Meer
       [not found] ` <6faad9f00903171214n6bc45426ye62cf80ef8634756@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Hans van der Meer @ 2009-03-17 12:19 UTC (permalink / raw)
  To: NTG ConTeXt

In mkii this could be used to add material to metapost runs:
\startMPinclusions[+]
.....
\stopMPInclusions

This stopped working in the latest stable version I have seen:
ConTeXt  ver: 2008.10.31 13:58 MKIV  fmt: 2008.12.17

Is it already fixed? Or can a quick patch be given?

Hans van der Meer




___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: \startMPinclusions[+]
       [not found] ` <6faad9f00903171214n6bc45426ye62cf80ef8634756@mail.gmail.com>
@ 2009-03-17 19:30   ` Hans van der Meer
  2009-03-17 20:29     ` \startMPinclusions[+] Mojca Miklavec
  0 siblings, 1 reply; 5+ messages in thread
From: Hans van der Meer @ 2009-03-17 19:30 UTC (permalink / raw)
  To: NTG ConTeXt


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


On 17 mrt 2009, at 20:14, Mojca Miklavec wrote:

> On Tue, Mar 17, 2009 at 13:19, Hans van der Meer wrote:
>> In mkii this could be used to add material to metapost runs:
>> \startMPinclusions[+]
>> .....
>> \stopMPInclusions
>>
>> This stopped working in the latest stable version I have seen:
>> ConTeXt  ver: 2008.10.31 13:58 MKIV  fmt: 2008.12.17
>>
>> Is it already fixed? Or can a quick patch be given?
>
> What does the [+] do? I usually put multiple \startMPinclusions and
> they are all respected (at least it mkii; in mkiv they were not, but
> Hans probably fixed something in this respect two weeks ago; I did not
> have a chance to test that yet).
>
> Mojca

In january 2006 Hans Hagen wrote to me about the following he promised  
to include. Could it be this has been forgotten in the mean time?

> Hans van der Meer wrote:
>
>> I thought to incrementally add to MPinclusions by successive blocks
>>
>> \startMPinclusions
>> ......
>> \stopMPinclusions
>>
>> \startMPinclusions
>> ......
>> \stopMPinclusions
>> etc.
>>
>> But according to the generated mp-file it seems to incorporate the   
>> last one only.
>> Is this correct and if so, is it an option to allow appending in  
>> the  above manner?
>> Or will that be too difficult to build.
>
>
> (patch supp-mps.tex)
>
> \def\startMPinclusions
> {\dosingleempty\dostartMPinclusions}
>
> \long\def\dostartMPinclusions[#1]#2\stopMPinclusions % document wide
> {\doifelse{#1}{+}
>    {\@EA\long\@EA\def\@EA\theMPinclusions\@EA
>       {\theMPinclusions
>        \writeMPgraphic{#2}}}
>    {\long\def\theMPinclusions
>       {% \expanded !
>        \@EA\expanded\@EA{\@EA\writeMPgraphic\@EA{\the\MPextensions;}} 
> % new
>        \writeMPgraphic{#2}}}}
>
> \def\MPinclusions
> {\dosingleempty\doMPinclusions}
>
> \long\def\doMPinclusions[#1]#2%
> {\startMPinclusions[#1]#2\stopMPinclusions}
>
> now you can say
>
> \startMPinclusions[+] ....
>
> i'll add this feature
>
> Hans
> _______________________________________________



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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \startMPinclusions[+]
  2009-03-17 19:30   ` \startMPinclusions[+] Hans van der Meer
@ 2009-03-17 20:29     ` Mojca Miklavec
  2009-03-17 20:34       ` \startMPinclusions[+] Hans van der Meer
  0 siblings, 1 reply; 5+ messages in thread
From: Mojca Miklavec @ 2009-03-17 20:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2009/3/17 Hans van der Meer:
> On 17 mrt 2009, at 20:14, Mojca Miklavec wrote:
> On Tue, Mar 17, 2009 at 13:19, Hans van der Meer wrote:
>
> In mkii this could be used to add material to metapost runs:
>
> \startMPinclusions[+]
>
> .....
>
> \stopMPInclusions
>
> This stopped working in the latest stable version I have seen:
>
> ConTeXt  ver: 2008.10.31 13:58 MKIV  fmt: 2008.12.17
>
> Is it already fixed? Or can a quick patch be given?

Sorry, I have mixed up inclusions and extensions. The code with [+]
works OK here with both 2008.07.31 and 2009.03.17 version of ConTeXt.

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \startMPinclusions[+]
  2009-03-17 20:29     ` \startMPinclusions[+] Mojca Miklavec
@ 2009-03-17 20:34       ` Hans van der Meer
  2009-03-17 20:42         ` \startMPinclusions[+] Mojca Miklavec
  0 siblings, 1 reply; 5+ messages in thread
From: Hans van der Meer @ 2009-03-17 20:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Could it be the version of LuaTeX why this fails with me? I am using:
"This is LuaTeX, Version snapshot-0.30.3-2008112814, build"


Hans van der Meer




On 17 mrt 2009, at 21:29, Mojca Miklavec wrote:

> 2009/3/17 Hans van der Meer:
>> On 17 mrt 2009, at 20:14, Mojca Miklavec wrote:
>> On Tue, Mar 17, 2009 at 13:19, Hans van der Meer wrote:
>>
>> In mkii this could be used to add material to metapost runs:
>>
>> \startMPinclusions[+]
>>
>> .....
>>
>> \stopMPInclusions
>>
>> This stopped working in the latest stable version I have seen:
>>
>> ConTeXt  ver: 2008.10.31 13:58 MKIV  fmt: 2008.12.17
>>
>> Is it already fixed? Or can a quick patch be given?
>
> Sorry, I have mixed up inclusions and extensions. The code with [+]
> works OK here with both 2008.07.31 and 2009.03.17 version of ConTeXt.
>
> Mojca
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an  
> entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: \startMPinclusions[+]
  2009-03-17 20:34       ` \startMPinclusions[+] Hans van der Meer
@ 2009-03-17 20:42         ` Mojca Miklavec
  0 siblings, 0 replies; 5+ messages in thread
From: Mojca Miklavec @ 2009-03-17 20:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Mar 17, 2009 at 21:34, Hans van der Meer wrote:
> Could it be the version of LuaTeX why this fails with me? I am using:
> "This is LuaTeX, Version snapshot-0.30.3-2008112814, build"

I don't know if LuaTeX version matters, but MPinclusions were broken
in mkiv two weeks ago anyway, so you might need to upgrade ConTeXt as
well. (Just do not ask to which version. MKIV is in transition at the
moment, so you might expect tiny problems.)

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2009-03-17 20:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-17 12:19 \startMPinclusions[+] Hans van der Meer
     [not found] ` <6faad9f00903171214n6bc45426ye62cf80ef8634756@mail.gmail.com>
2009-03-17 19:30   ` \startMPinclusions[+] Hans van der Meer
2009-03-17 20:29     ` \startMPinclusions[+] Mojca Miklavec
2009-03-17 20:34       ` \startMPinclusions[+] Hans van der Meer
2009-03-17 20:42         ` \startMPinclusions[+] Mojca Miklavec

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