From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Gerben Wierda <gerben.wierda@rna.nl>
Subject: Re: startMPpage..stopMPpage written to a separate PDF?
Date: Mon, 6 Apr 2020 14:49:50 +0200 [thread overview]
Message-ID: <8a529422-bda2-c794-5643-ed28f329c858@gmail.com> (raw)
In-Reply-To: <4E6F4C4E-C277-401C-A4D4-2045B09837AA@rna.nl>
Gerben Wierda schrieb am 05.04.2020 um 12:27:
>
>
>> On 5 Apr 2020, at 11:34, Hans Hagen <j.hagen@xs4all.nl> wrote:
>>
>> On 4/5/2020 12:29 AM, Gerben Wierda wrote:
>>> I have a series of startMPpage—stopMPpage pairs (with MP code inbetween). These now become separate pages in a single PDF. But I need them to become separate PDF’s each during my ConTeXt run, with a name of my own choosing. Is this possible? I guess this will be problematic, but one can hope (maybe some very low level TeX trickery)...
>> no (i would probably cook up something but it's not worth the trouble and it would add lots of ugly code deep down) but
>
> Yes, I was thinking about some low level open/writeout stuff in TeX but was scared to try.
>
> Still, a \startMPfile{pdffilename}..\stopMPfile (instead of page) would have been great...
Something like this:
\starttext
\startbuffer[square]
\startMPpage
draw fullsquare scaled 10 withcolor red ;
\stopMPpage
\stopbuffer
\typesetbufferonly[square]
\startbuffer[circle]
\startMPpage
draw fullcircle scaled 10 withcolor green ;
\stopMPpage
\stopbuffer
\typesetbuffer[circle]
\startbuffer[triangle]
\startMPpage
draw fulltriangle scaled 10 withcolor blue ;
\stopMPpage
\stopbuffer
\savebuffer[list=triangle,prefix=no,file=triangle.tex]
\typesetfile[triangle.tex][]
\stoptext
Wolfgang
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2020-04-06 12:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-04 22:29 Gerben Wierda
2020-04-05 9:34 ` Hans Hagen
2020-04-05 10:27 ` Gerben Wierda
2020-04-06 7:42 ` Taco Hoekwater
2020-04-06 12:49 ` Wolfgang Schuster [this message]
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=8a529422-bda2-c794-5643-ed28f329c858@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=gerben.wierda@rna.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).