From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51161 Path: news.gmane.org!not-for-mail From: Matthijs Kooijman Newsgroups: gmane.comp.tex.context Subject: Re: \typebuffer with typing style Date: Tue, 9 Jun 2009 18:28:24 +0200 Message-ID: <20090609162824.GK12271@katherina.student.utwente.nl> References: <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="===============1180896374==" X-Trace: ger.gmane.org 1244564967 29810 80.91.229.12 (9 Jun 2009 16:29:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jun 2009 16:29:27 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 09 18:29:24 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 1ME4CP-0007Gi-Q2 for gctc-ntg-context-518@m.gmane.org; Tue, 09 Jun 2009 18:29:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 516FC1FB38; Tue, 9 Jun 2009 18:29:21 +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 02077-08; Tue, 9 Jun 2009 18:28:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 86BE31FA4C; Tue, 9 Jun 2009 18:28:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 660C51FA4C for ; Tue, 9 Jun 2009 18:28:34 +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 01761-06 for ; Tue, 9 Jun 2009 18:28:25 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id A64181FA41 for ; Tue, 9 Jun 2009 18:28:25 +0200 (CEST) Original-Received: from katherina.student.utwente.nl (katherina.student.utwente.nl [130.89.168.160]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n59A9LW3023939 for ; Tue, 9 Jun 2009 12:09:22 +0200 Original-Received: from matthijs by katherina.student.utwente.nl with local (Exim 4.69) (envelope-from ) id 1ME4BU-0000uI-E1 for ntg-context@ntg.nl; Tue, 09 Jun 2009 18:28:24 +0200 Mail-Followup-To: ntg-context@ntg.nl In-Reply-To: <20090608162017.GC12271@katherina.student.utwente.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: 240206106 - 0acafb8b8279 - 20090609 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:51161 Archived-At: --===============1180896374== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QAdlk5ze2izLk3Ap" Content-Disposition: inline --QAdlk5ze2izLk3Ap Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, > Shortly after sending my email, I realized the actual problem I was trying to solve was not the one I posted, so perhaps I can clarify that a bit. What I'm trying to do, is pass some text to a custom command, which should then be displayed in a custom typing style. It seems I can pass some text to a command fine, even multiple lines: \define[1]\test{Lines: #1} \test{ One line Two lines Three lines } However, this will obviously not give me any typing style at all, just a single line with all the words after eachother. I can't just use \starttyping (or \startFOO, which was the actual goal of all this) inside a \define, since that gives me: File ended while scanning use of \dododowithbuffer. So, this made me look at using buffers, since I can pass in an entire buffer and use \typebuffer to get it in a typing style. However, as mentioned before I can't seem to be able to pass an actual style to \typebuffer (one defined with \definetyping). The only way I've found just now, is to use \setuptyping. However, that takes effect for the rest of the document, so I have to reset the settings to their defaults afterwards, destroying any custom settings that could have been set. I can't seem to find a way to "push" the typing settings or save them somehow, so this is not quite a perfect solution... Any other suggestions? Gr. Matthijs --QAdlk5ze2izLk3Ap 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) iEYEARECAAYFAkoujagACgkQz0nQ5oovr7yGAwCfdhJ6qxEbPfO//4s9Fe9s9Aq3 Gp0Ani72ADB+SbnSYPxVl0SGXBhJs6Pp =vMpP -----END PGP SIGNATURE----- --QAdlk5ze2izLk3Ap-- --===============1180896374== 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 ___________________________________________________________________________________ --===============1180896374==--