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 _______________________________________________
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
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 ___________________________________________________________________________________
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
participants (2)
-
Hans van der Meer
-
Mojca Miklavec