From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51141 Path: news.gmane.org!not-for-mail From: Matthijs Kooijman Newsgroups: gmane.comp.tex.context Subject: \typebuffer with typing style Date: Mon, 8 Jun 2009 18:20:17 +0200 Message-ID: <20090608162017.GC12271@katherina.student.utwente.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1564182169==" X-Trace: ger.gmane.org 1244478063 10789 80.91.229.12 (8 Jun 2009 16:21:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jun 2009 16:21:03 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 08 18:20:58 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 1MDhaj-0005pT-Dq for gctc-ntg-context-518@m.gmane.org; Mon, 08 Jun 2009 18:20:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4BD0A1FB7F; Mon, 8 Jun 2009 18:20:52 +0200 (CEST) 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 25238-03-3; Mon, 8 Jun 2009 18:20:29 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D3D211FB71; Mon, 8 Jun 2009 18:20:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BF28C1FB71 for ; Mon, 8 Jun 2009 18:20:26 +0200 (CEST) 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 25238-03-2 for ; Mon, 8 Jun 2009 18:20:19 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id 056CD1FB6D for ; Mon, 8 Jun 2009 18:20:18 +0200 (CEST) Original-Received: from katherina.student.utwente.nl (katherina.student.utwente.nl [130.89.168.160]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n58GKIv8031295 for ; Mon, 8 Jun 2009 18:20:18 +0200 Original-Received: from matthijs by katherina.student.utwente.nl with local (Exim 4.69) (envelope-from ) id 1MDha5-0008KQ-OQ for ntg-context@ntg.nl; Mon, 08 Jun 2009 18:20:17 +0200 Mail-Followup-To: ntg-context@ntg.nl X-PGP-Fingerprint: 7F6A 9F44 2820 18E2 18DE 24AA CF49 D0E6 8A2F AFBC X-PGP-Key: http://katherina.student.utwente.nl/~matthijs/gpg_pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=130.89.168.160; country=NL; region=15; city=Enschede; latitude=52.2167; longitude=6.9000; http://maps.google.com/maps?q=52.2167,6.9000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 239462665 - ca74ac81e0bf - 20090608 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:51141 Archived-At: --===============1564182169== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uh9ZiVrAOUUm9fzH" Content-Disposition: inline --uh9ZiVrAOUUm9fzH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm trying to use a buffer together with a custom typing style using the latest beta with MkIV, but so far I've only managed to do this using \start= FOO and \stopFOO inside the buffer: \definetyping[FOO][option=3DFOO] \startbuffer[bar] \startFOO baz \stopFOO \stopbuffer \getbuffer[bar] Since the \getbuffer is really inside some self-defined command, I'd like to put the startFOO / stopFOO in there as well. However, I can't seem to find a way to do this, since \startFOO \getbuffer[bar] \stopFOO gives me compile errors. It seems the canonical way to define typing and buffers is using \typebuffer, but that only seems to work with the default typing style. I'd like to do the following: \definetyping[FOO][option=3DFOO] \startbuffer[bar] baz \stopbuffer \typebuffer[FOO][bar] =46rom looking at buff-ini.mkiv it seems typebuffer has some code to handle= a second argument, but it seems to always throw it away (as far as I can understand this Tex stuff... :-). Is there some way to achieve this? Would it be good to make \typebuffer support this if there isn't? Gr. Matthijs --uh9ZiVrAOUUm9fzH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkotOkEACgkQz0nQ5oovr7yqggCg3xNrsIy99/sATBHHhvqIBdcJ PPsAmgIhkdoWClDp0UJru3qUopycD9i1 =MF1/ -----END PGP SIGNATURE----- --uh9ZiVrAOUUm9fzH-- --===============1564182169== 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 ___________________________________________________________________________________ --===============1564182169==--