From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48481 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: \startMPinclusions[+] Date: Tue, 17 Mar 2009 20:30:45 +0100 Message-ID: <3A06368B-365C-4460-87EA-F84A0A0E6979@uva.nl> References: <52798296-AA15-4A69-B8F2-149EAEF0299B@uva.nl> <6faad9f00903171214n6bc45426ye62cf80ef8634756@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary="===============1057599619==" X-Trace: ger.gmane.org 1237318339 23559 80.91.229.12 (17 Mar 2009 19:32:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2009 19:32:19 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 17 20:33:35 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Ljf2J-0006ot-Gi for gctc-ntg-context-518@m.gmane.org; Tue, 17 Mar 2009 20:33:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E8921FB8E; Tue, 17 Mar 2009 20:31:51 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08411-05; Tue, 17 Mar 2009 20:31:11 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7FD621FC83; Tue, 17 Mar 2009 20:31:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 444B81FC83 for ; Tue, 17 Mar 2009 20:31:09 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28095-09-4 for ; Tue, 17 Mar 2009 20:31:01 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 499571FC74 for ; Tue, 17 Mar 2009 20:31:01 +0100 (CET) Original-Received: from postduif.ic.uva.nl (postduif.ic.uva.nl [145.18.40.180]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2HJV0Ql009111 for ; Tue, 17 Mar 2009 20:31:00 +0100 Original-Received: from [192.168.178.21] (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by postduif.ic.uva.nl (8.13.1/8.13.1) with ESMTP id n2HJUkoO011099 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 17 Mar 2009 20:30:57 +0100 In-Reply-To: <6faad9f00903171214n6bc45426ye62cf80ef8634756@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-CanIt-Geo: ip=145.18.40.180; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 195106999 - c2fe074e6796 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Scanned-By: CanIt (www . roaringpenguin . com) on 145.18.40.180 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48481 Archived-At: --===============1057599619== Content-Type: multipart/alternative; boundary=Apple-Mail-6--834475466 --Apple-Mail-6--834475466 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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 > _______________________________________________ --Apple-Mail-6--834475466 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable

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\dostartMPin= clusions}

\long\def\dostartMPinclusions[#1]#2\stopMPinclusions % = document = wide
{\doifelse{#1}{+}
   {\@EA\long\@EA\def\@EA\theM= Pinclusions\@EA
      {\theMPinclusions       \writeMPgraphic{#2}}}
 = ;  {\long\def\theMPinclusions
     &= nbsp;{% \expanded = !
       \@EA\expanded\@EA{\@EA\writ= eMPgraphic\@EA{\the\MPextensions;}}% = new
       \writeMPgraphic{#2}}}}
\def\MPinclusions
{\dosingleempty\doMPinclusions}

\long\def= \doMPinclusions[#1]#2%
{\startMPinclusions[#1]#2\stopMPinclusions}
<= br>now you can say

\startMPinclusions[+] ....

i'll add this = feature

Hans
____________________________________________= ___

<= br>
= --Apple-Mail-6--834475466-- --===============1057599619== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1057599619==--