From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19439 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Problem with \type in captions Date: Wed, 30 Mar 2005 08:59:20 +0200 Message-ID: <424A4E48.6030806@wxs.nl> References: <20050329193918.GA5794@puritan.pcp.ath.cx> <4249DEB8.6090703@wxs.nl> <20050330002836.GD5794@puritan.pcp.ath.cx> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.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 1112166032 31127 80.91.229.2 (30 Mar 2005 07:00:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2005 07:00:32 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 30 09:00:30 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGXBU-0006Wi-Iu for gctc-ntg-context-518@m.gmane.org; Wed, 30 Mar 2005 09:00:12 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 032801282F; Wed, 30 Mar 2005 09:01:12 +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 14373-02; Wed, 30 Mar 2005 09:01:11 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C1B6E12813; Wed, 30 Mar 2005 08:59:24 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B95C212813 for ; Wed, 30 Mar 2005 08:59:23 +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 14373-01-3 for ; Wed, 30 Mar 2005 08:59:23 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id ED9C8127B7 for ; Wed, 30 Mar 2005 08:59:22 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j2U6xLxt031896 for ; Wed, 30 Mar 2005 08:59:21 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 7690517DA7; Wed, 30 Mar 2005 08:41:00 +0200 (CEST) Original-Received: from [10.100.1.54] (unknown [10.100.1.54]) by server-1.pragma-net.nl (Postfix) with ESMTP id EED9517C21 for ; Wed, 30 Mar 2005 06:40:58 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20050330002836.GD5794@puritan.pcp.ath.cx> X-Virus-Scanned: ClamAV 0.80/744/Fri Mar 4 04:01:45 2005 clamav-milter version 0.80j on mailrelay01 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: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:19439 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19439 Nikolai Weibull wrote: > * Hans Hagen (Mar 30, 2005 01:10): > >>that's because the caption is passed as an argument and the catcode is >>frozen then (being active, the | expects something |...| ; try >>\type{0}\type{|} since the first token of type is not expanded at all > > > Yeah, that will work. The problem is, though, that I'd really like it > to be in one \type as I am actually using something called \TypedRegex > that delimits the regular expression argument with "quotes". > > I guess I could fake the quotes and use the split-\type trick, > nikolai \definetype[regexp][option=RAW] \starttext \type{0|} \section{test \regexp{0|} test} \stoptext this will trigger a pretty printing filter, and in this case the | is part of the deal 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 -----------------------------------------------------------------