From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80575 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: setupblock with starttyping doesn't work Date: Thu, 31 Jan 2013 11:47:56 -0500 (EST) Message-ID: References: <510A88B4.5090701@ingohohmann.de> <510A8D8B.3060702@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1359650886 18367 80.91.229.3 (31 Jan 2013 16:48:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jan 2013 16:48:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 31 17:48:26 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U0xJJ-0007Ie-Hy for gctc-ntg-context-518@m.gmane.org; Thu, 31 Jan 2013 17:48:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4AC4D10272; Thu, 31 Jan 2013 17:48:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BwN0CYuYptJI; Thu, 31 Jan 2013 17:48:05 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6AE1810243; Thu, 31 Jan 2013 17:48:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 66B9B10243 for ; Thu, 31 Jan 2013 17:48:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kN4-4G9cmfgz for ; Thu, 31 Jan 2013 17:48:02 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id E23EE10236 for ; Thu, 31 Jan 2013 17:48:01 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0VGaR1d013307 for ; Thu, 31 Jan 2013 17:36:29 +0100 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By tombraider.mr.itd.umich.edu ID 510AA03D.75E8A.18185 ; Authuser adityam; 31 Jan 2013 11:47:57 EST In-Reply-To: <510A8D8B.3060702@wxs.nl> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WISEAs1S - dba975ec9f9e - 20130131 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80575 Archived-At: On Thu, 31 Jan 2013, Hans Hagen wrote: > On 1/31/2013 4:07 PM, Ingo Hohmann wrote: >> Hello, >> >> this is my first post to this mailing list. I have played a little bit >> with latex and context before, and now I am trying context for real. >> >> To get a feel for it, I am setting up a letter style for my self, and >> some problems are showing up now. >> >> So here it goes ... >> >> What I want to accomplish: >> >> The user writes the address, and he should not have to use \crlf or have >> to use several distinct commands. >> >> Why does the following not work? >> >> >> \defineblock[Address] >> \setupblock[Address][ >> before=\starttyping, >> after=\stoptyping >> ] > > you pick the two more complex mechanisms .. the ones that intercept the input > stream > > \setupblock[Address][ > before=\startlines\tt, > after=\stoplines, > ] > > will work ok for most text cases > > >> \starttext >> \beginAddress >> Peter Pan >> Somewhere over the Rainbow >> Neverland >> \endAddress >> >> \useblocks[Address] >> >> Some more text. >> >> \stoptext And if you really need a typing environment, you can use buffers: \startbuffer[address] #whatver& \stopbuffer \getbuffer[address] or \typebuffer[address] Aditya ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________