From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55500 Path: news.gmane.org!not-for-mail From: Tad Ashlock Newsgroups: gmane.comp.tex.context Subject: Re: Verbatim Text with Embedded Formatting Commands (MkIV) Date: Fri, 08 Jan 2010 16:52:34 -0700 Message-ID: <4B47C542.2010809@cyberdude.com> References: <4B24CF7F.10108@cyberdude.com> <4B3BDB69.8070404@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: ger.gmane.org 1262994793 5096 80.91.229.12 (8 Jan 2010 23:53:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2010 23:53:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 09 00:53:06 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.50) id 1NTOdd-0002GO-Fl for gctc-ntg-context-518@m.gmane.org; Sat, 09 Jan 2010 00:53:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3658CC9C91; Sat, 9 Jan 2010 00:53:04 +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 66ecacoF8qer; Sat, 9 Jan 2010 00:53:01 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 09E29C9CAA; Sat, 9 Jan 2010 00:53:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 48B79C9CAA for ; Sat, 9 Jan 2010 00:52:59 +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 5AxRK+1sNL02 for ; Sat, 9 Jan 2010 00:52:46 +0100 (CET) Original-Received: from omspl-da01.mx.aol.com (omspl-da01.mx.aol.com [205.188.170.51]) by balder.ntg.nl (Postfix) with ESMTP id 4A419C9C91 for ; Sat, 9 Jan 2010 00:52:46 +0100 (CET) Original-Received: from rly-mh03.mx.aol.com (rly-mh03.mx.aol.com [64.12.139.199]) by omspl-da01.mx.aol.com (OMS Interface) with ESMTP id 1786C380002C2 for ; Fri, 8 Jan 2010 18:52:45 -0500 (EST) Original-Received: from [127.0.0.1] (71-210-199-37.albq.qwest.net [71.210.199.37]) by rly-mh03.mx.aol.com (WebSuites/MUA Thirdparty client Interface) with ESMTPA id 8707A1C000083 for ; Fri, 8 Jan 2010 18:52:43 -0500 (EST) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <4B3BDB69.8070404@wxs.nl> X-Antivirus: avast! (VPS 100108-1, 01/08/2010), Outbound message X-Antivirus-Status: Clean x-aol-global-disposition: S X-AOL-SCOLL-SCORE: 0:2:376665664:93952408 X-AOL-SCOLL-URL_COUNT: 0 x-aol-sid: 3039400c8bc74b47c54b6e37 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:55500 Archived-At: Hans Hagen wrote: > On 13-12-2009 12:26, Tad Ashlock wrote: >> As noted at >> http://wiki.contextgarden.net/Verbatim_text#Embedded_formatting_commands, >> the >> embedded formatting commands in verbatim text don't work in MkIV. >> >> Are there any plans to fix this capability soon? I'm planning on working >> on a project on over the holiday break that will need it. > > the beta has: > > \starttext > > \setuptyping[TEX][escape=yes] > > \startTEX > /BTEX\em sometex/ETEX > /BTEX\em sometex/ETEX \after > \before /BTEX\em sometex/ETEX > \before /BTEX\em sometex/ETEX \after > \before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \after > \before \after > \stopTEX > > \setuptyping[TEX][escape={[[,]]}] > > \startTEX > [[\em sometex]] > [[\em sometex]] \after > \before [[\em sometex]] > \before [[\em sometex]] \after > \before [[\em sometex]] \inbetween [[\em sometex]] \after > \before \after > \stopTEX > > \setuptyping[TEX][escape=//] > > \startTEX > //\em sometex > \before //\em sometex > \stopTEX > > \stoptext > > so, in mkiv option-commands is gone and escape no longer is an escape > character but a condition (range or start) > > please wikify this > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > Ok, I'm (finally) getting back to this subject. Is this supposed to work for any verbatim environment besides \startTEX...\stopTEX? I can't get it to work for 'C' or even basic 'typing'. They don't pick up on the embedded formatting, everything is typeset verbatim. Tad PS: Here are my test cases: ============================ \definetyping[C][option=C] \setuptyping[C][escape=yes] \starttext \startC #include int main(){ return 0; /BTEX{\em unreachedCode;}/ETEX } \stopC \stoptext ============================ ============================ \starttext \setuptyping[escape=yes] \starttyping /BTEX\em sometex/ETEX /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \before /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \after \before \after \stoptyping \stoptext ============================ ___________________________________________________________________________________ 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 ___________________________________________________________________________________