From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96544 Path: news.gmane.org!.POSTED!not-for-mail From: Jan Willem Flamma Newsgroups: gmane.comp.tex.context Subject: Re: buffers inside startMPpage Date: Fri, 14 Oct 2016 10:48:05 +0200 Message-ID: <6544FF4C-D5C4-4D05-B7BF-6DCB919A0475@icloud.com> References: <58009895.8050209@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/mixed; boundary="===============6667637853654303852==" X-Trace: blaine.gmane.org 1476434946 4310 195.159.176.226 (14 Oct 2016 08:49:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Oct 2016 08:49:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 14 10:49:01 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buyAT-0006LW-1I for gctc-ntg-context-518@m.gmane.org; Fri, 14 Oct 2016 10:48:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1175A1AD7A; Fri, 14 Oct 2016 10:48:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zEA05229mV5L; Fri, 14 Oct 2016 10:48:25 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 534641AD8D; Fri, 14 Oct 2016 10:48:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9FAB51AD7B for ; Fri, 14 Oct 2016 10:48:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UuJo40daWNI1 for ; Fri, 14 Oct 2016 10:48:22 +0200 (CEST) Original-Received: from st11p05im-asmtp001.me.com (st11p05im-asmtp001.me.com [17.172.109.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4E6B61AD7A for ; Fri, 14 Oct 2016 10:48:12 +0200 (CEST) Original-Received: from process-dkim-sign-daemon.st11p05im-asmtp001.me.com by st11p05im-asmtp001.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) id <0OF100W00427QW00@st11p05im-asmtp001.me.com> for ntg-context@ntg.nl; Fri, 14 Oct 2016 08:48:09 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=4d515a; t=1476434889; bh=Obhb/Afng7itESw3FGNngL+V+pcQu2QRPf6HjGRTP4s=; h=From:Content-type:Message-id:MIME-version:Subject:Date:To; b=drdVugKbPndg5udC5eOaOQJ8Pwekqiefg60mY6Hin1QUxsf04kCQ+4/So/jf5geRP S/rOwj0PHuxkFeJlKzesCN+vFsw6nMDvebZsWrDpYyVv6by4LxNZMCW5B4Lr40N5Y+ j8okeU3ESxCIwpQEZoI41wRI4vV1QtdGf0WOmjKnq6h8uczWjy7ulZ1V6/QehTHRwD fHK1Furvf2GCPY4QgJyXH3rKJGqQ3hzmrjEQozDN8DchINN04z0Lp5BVdtO0rkerhC rNYxldjLrPrvAvXH0BOrOi+mjD9YNXb/i+5oOOzFCqsXDmwKeOF0BOA5jFC2JfiOko xbPEBVGs2u4kg== Original-Received: from jws-mba.fritz.box (a83-162-179-103.adsl.xs4all.nl [83.162.179.103]) by st11p05im-asmtp001.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) with ESMTPSA id <0OF1012I14G67H40@st11p05im-asmtp001.me.com> for ntg-context@ntg.nl; Fri, 14 Oct 2016 08:48:08 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-14_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1034 suspectscore=15 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1603290000 definitions=main-1610140154 In-reply-to: <58009895.8050209@gmail.com> X-Mailer: Apple Mail (2.3124) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:96544 Archived-At: --===============6667637853654303852== Content-type: multipart/alternative; boundary="Apple-Mail=_B6832A70-EA83-44AB-AD99-B9BADE91B82B" --Apple-Mail=_B6832A70-EA83-44AB-AD99-B9BADE91B82B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thank you Wolfgang. This suits my needs just fine. Kind regards, Jan Willem Flamma > On 14 okt. 2016, at 10:34, Wolfgang Schuster = wrote: >=20 >> Jan Willem Flamma 14. Oktober 2016 um = 10:12 >> Dear list members, >>=20 >> I create all my MetaFun drawings in a separate environment file where = each individual drawing sits inside a start/stopbuffer. This allows me = to easily use those drawings in all my documents using = \processMPbuffer[name]. Works just fine. >>=20 >> However, I also wish to have all the drawing available in a pdf file = (each drawing on a separate page). This allows me to split the pdf and = use the drawing elsewhere (e.g. in a Powerpoint) or include page(s) from = the pdf in another document. >>=20 >> The below MWE represent my MetaFun drawings file. >> The idea is that by uncommenting the \enablemode[makepdf] I can = create the pdf file with drawings. It seems however that startMPpage = does not accept buffers (I also tried processbuffer and = processMPbuffer). >>=20 >> Is it possible to somehow make this work? > You can use >=20 > \startTEXpage > \processMPbuffer[=E2=80=A6] > \stopTEXpage >=20 > but loading a buffer in MPpage doesn=E2=80=99t work because the = content of the environment > is just passed to MetaPost and buffers can=E2=80=99t be loaded inside = MetaPost code unless > Hans adds a function for this, e.g. >=20 > \startMPcode > buffer("mybuffer") > \stopMPcode >=20 > Wolfgang > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_B6832A70-EA83-44AB-AD99-B9BADE91B82B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thank you Wolfgang.

This suits my needs just fine.

Kind regards,
Jan = Willem Flamma

On 14 okt. 2016, at 10:34, = Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

14.=20 Oktober 2016 um 10:12
Dear list = members,

I create all my MetaFun drawings in a separate environment file where=20 each individual drawing sits inside a start/stopbuffer. This allows me=20= to easily use those drawings in all my documents using=20 \processMPbuffer[name]. Works just fine.

However, I also wish to=20 have all the drawing available in a pdf file (each drawing on a separate page). This allows me to split the pdf and use the drawing elsewhere=20 (e.g. in a Powerpoint) or include page(s) from the pdf in another=20 document.

The below MWE represent my = MetaFun drawings file.
The idea is that by uncommenting the \enablemode[makepdf] I can create the=20= pdf file with drawings. It seems however that startMPpage does not=20 accept buffers (I also tried processbuffer and processMPbuffer).

Is it possible to somehow make this work?
You can use

    \startTEXpage
        \processMPbuffer[=E2=80=A6]
    \stopTEXpage

but loading a buffer in MPpage doesn=E2=80=99t work because the content = of the=20 environment
is just passed to MetaPost and buffers can=E2=80=99t be loaded inside = MetaPost=20 code unless
Hans adds a function for this, e.g.

    \startMPcode
        buffer("mybuffer")
    \stopMPcode

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  : = http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_B6832A70-EA83-44AB-AD99-B9BADE91B82B-- --===============6667637853654303852== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwOi8vZm91bmRyeS5zdXBl bGVjLmZyL3Byb2plY3RzL2NvbnRleHRyZXYvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRnYXJk ZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6667637853654303852==--