ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: MPinclusions
Date: Sun, 15 Jan 2006 17:33:05 +0100	[thread overview]
Message-ID: <43CA7941.10606@wxs.nl> (raw)
In-Reply-To: <7B3D7A66-9A1A-43EF-9822-642462D3A72E@science.uva.nl>

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

  reply	other threads:[~2006-01-15 16:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-13 21:08 MPinclusions Hans van der Meer
2006-01-15 16:33 ` Hans Hagen [this message]
2006-01-15 18:36   ` MPinclusions Hans van der Meer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43CA7941.10606@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).