From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51180 Path: news.gmane.org!not-for-mail From: Matthijs Kooijman Newsgroups: gmane.comp.tex.context Subject: Re: \typebuffer with typing style Date: Wed, 10 Jun 2009 15:52:54 +0200 Message-ID: <20090610135254.GA12271@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="===============1424817767==" X-Trace: ger.gmane.org 1244642046 12743 80.91.229.12 (10 Jun 2009 13:54:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Jun 2009 13:54:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 10 15:54:04 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 1MEOFg-0003YW-Fm for gctc-ntg-context-518@m.gmane.org; Wed, 10 Jun 2009 15:54:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4C2D01FB74; Wed, 10 Jun 2009 15:54:03 +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 12383-04; Wed, 10 Jun 2009 15:53:11 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4666E1FB30; Wed, 10 Jun 2009 15:53:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 446681FB30 for ; Wed, 10 Jun 2009 15:53:09 +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 12178-02 for ; Wed, 10 Jun 2009 15:52:55 +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 40C0E1FB1F for ; Wed, 10 Jun 2009 15:52:55 +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 n5ADqs4s020211 for ; Wed, 10 Jun 2009 15:52:54 +0200 Original-Received: from matthijs by katherina.student.utwente.nl with local (Exim 4.69) (envelope-from ) id 1MEOEY-00017I-6w for ntg-context@ntg.nl; Wed, 10 Jun 2009 15:52:54 +0200 Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: 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: 240814753 - abb170d97b4e - 20090610 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:51180 Archived-At: --===============1424817767== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Fo9oDfH89je183NY" Content-Disposition: inline --Fo9oDfH89je183NY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Peter, > \setuptyping[option=TEX] This is what I am using now, but this changes the global settings and requires resetting them afterwards. Not so pretty. I was hoping for a better method to achieve this, but I'm starting to doubt there is one currently. I've been trying to give \typebuffer a second argument with options or a typing style, but I haven't been so succesful so far... However, from looking at the definition of \dotypebuffer makes me wonder a bit if my understanding of TeX macros is faulty, or the code is weird: \def\dotypebuffer[#1][#2]% {\iffirstargument \dobuffer{17}{#1}\dotypefilebuffer \else \dobuffer{17}{#2}\dotypefilebuffer \fi} What I see here is the there is an argument "17" passed, which is not used by \dobuffer at all. Also, why is this "17" ? Secondly, there is a use of #2 in this definition, but only when there is no first argument (and thus, no second argument either). Is this a leftover that could be replaced with {}, or am I missing something? Gr. Matthijs --Fo9oDfH89je183NY 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) iEYEARECAAYFAkovurYACgkQz0nQ5oovr7yqEACcDPSHhL9P99jbDM1exCAAzXHT ZkUAnRBhmS5tYu+CIY2jqfR/Q108YMwu =7X+8 -----END PGP SIGNATURE----- --Fo9oDfH89je183NY-- --===============1424817767== 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 ___________________________________________________________________________________ --===============1424817767==--