From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60702 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: vbox construct breaking MKII Date: Wed, 4 Aug 2010 13:23:59 -0400 (EDT) Message-ID: References: <5DD081BA-F3A2-4C0B-8A69-98EDAFE38AA6@boede.nl> <4C5922AD.6070401@wxs.nl> <4C599A9C.1010705@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1280942411 23249 80.91.229.12 (4 Aug 2010 17:20:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Aug 2010 17:20:11 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 04 19:20:08 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OghdN-0001hl-UU for gctc-ntg-context-518@m.gmane.org; Wed, 04 Aug 2010 19:20:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 08F4DC9FAB; Wed, 4 Aug 2010 19:20:05 +0200 (CEST) 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 VQVPYFnAvrIY; Wed, 4 Aug 2010 19:20:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A671EC9FA4; Wed, 4 Aug 2010 19:20:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 14A4AC9FA4 for ; Wed, 4 Aug 2010 19:19:59 +0200 (CEST) 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 3Hho2a3f2Kls for ; Wed, 4 Aug 2010 19:19:56 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by balder.ntg.nl (Postfix) with ESMTP id 2FEE8C9F9F for ; Wed, 4 Aug 2010 19:19:55 +0200 (CEST) Original-Received: FROM [192.168.0.104] (c-71-235-82-170.hsd1.ct.comcast.net [71.235.82.170]) By tombraider.mr.itd.umich.edu ID 4C59A138.3B052.17063 ; Authuser adityam; 4 Aug 2010 13:19:52 EDT In-Reply-To: <4C599A9C.1010705@wxs.nl> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:60702 Archived-At: On Wed, 4 Aug 2010, Hans Hagen wrote: > On 4-8-2010 6:51, Aditya Mahajan wrote: >> On Wed, 4 Aug 2010, Hans Hagen wrote: >> >> > On 4-8-2010 9:16, Willi Egger wrote: >> > > Hi all, >> > > >> > > Any variation of the following construct breaks in MKII as long as >> > > there >> > > is no new line after the closing } of the vbox. MKIV does not have >> > > this >> > > problem. >> > > >> > > \startbuffer[bf4] >> > > \vbox{ >> > > test >> > > }\stopbuffer >> > > >> > > Please refer to the testfile >> > >> > \stopbuffer has to be on a line of its own so >> > >> > } >> > \stopbuffer >> >> Is it possible to have an "inline" version of \start...stopbuffer. So that >> >> \buffer[options]{...} is similar to >> >> \startbuffer[options] >> ... >> \stopbuffer >> >> The functionality is already there. \type parses the contents correctly, >> and >> \startbuffer writes it to an external file. Something that combines the >> two will >> be great. >> >> Such a feature will be handy for inline syntax highlighting with the t-vim >> module. > > \setbuffer[bla]more bla\endbuffer That does not work in mkii and does not look right for the user interface. For pretty printing using the inbuilt macros, one can use \startTEX .... \stopTEX and \typeTEX{...} Normally, I want the "display" version to insert blank spaces while the "inline" version to leave them alone. In the t-vim module, I can create environment \startvimTEX ... \stopvimTEX (that writes contents to file and inputs the result) but cannot easily create \typevimTEX. For that I will need to reimplement all the catcode trickery of \definetype and \definebuffer. 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 ___________________________________________________________________________________