From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16528 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Natural Table does not allow using defined typing in its cell Date: Wed, 22 Sep 2004 23:14:23 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <4151EB2F.5080808@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1095925216 24792 80.91.229.6 (23 Sep 2004 07:40:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2004 07:40:16 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 23 09:40:02 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CAOCw-0005OR-00 for ; Thu, 23 Sep 2004 09:40:02 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2476F1278C; Thu, 23 Sep 2004 09:40:01 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30527-02; Thu, 23 Sep 2004 09:39:59 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8FCB812772; Thu, 23 Sep 2004 09:39:59 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 981D312772 for ; Thu, 23 Sep 2004 09:39:57 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30044-04 for ; Thu, 23 Sep 2004 09:39:56 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id E53561276F for ; Thu, 23 Sep 2004 09:39:55 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i8N7drwn006723; Thu, 23 Sep 2004 09:39:53 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id EC27E31B15; Thu, 23 Sep 2004 09:39:53 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id C1B2917AFA; Thu, 23 Sep 2004 07:39:51 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: Eugene Toporov , mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a on mailrelay02.solcon.nl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16528 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16528 Eugene Toporov wrote: >Hello, > >I found a strange (to me) bTABLE behaviour. > >I'm defining the "programlisting" typing and it works when used like below > >\def\BeforeProgramListing{\startframedtext[background=screen,width=\hsize,style=\tttf\small]} >\def\AfterProgramListing{\stopframedtext} >\definetyping[programlisting][before=\BeforeProgramListing,after=\AfterProgramListing] > > \startprogramlisting > "Hello World! Hello" + txtName.text + "!" > \stopprogramlisting > >When I'm trying to insert a programlisting into a table cell using the >following code -- it fails to create PDF. > >\bTABLE > \bTR > \bTD Set the value to \eTD > \bTD > \startprogramlisting > "Hello World! Hello" + txtName.text + "!" > \stopprogramlisting > \eTD > \eTR >\eTABLE > >When I replace \start\stopprogramlisting with in place >\start\stopframedtext -- it works ok. > \bTD > \startframedtext[background=screen,width=\hsize,style=\tttf\small] > "Hello World! Hello" + txtName.text + "!" > \stopframedtext > \eTD > > >Why is this so? Do I miss something important? > > indeed, passing verbatim as argument does not work due to catcode wizzardy; so, try to use buffers instead \startbuffer \startprogramlisting "Hello World! Hello" + txtName.text + "!" \stopprogramlisting \stopbuffer \bTABLE \bTR \bTD Set the value to \eTD \bTD \getbuffer \eTD \eTR \eTABLE