From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29785 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Bug with type << .. >>? Date: Fri, 28 Jul 2006 21:07:48 -0400 (EDT) Message-ID: References: <44C9DF26.2030208@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154135293 1847 80.91.229.2 (29 Jul 2006 01:08:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Jul 2006 01:08:13 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 29 03:08:11 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org 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 1G6dJJ-0005t7-AN for gctc-ntg-context-518@m.gmane.org; Sat, 29 Jul 2006 03:08:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 724E91FE89; Sat, 29 Jul 2006 03:08:08 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27103-04; Sat, 29 Jul 2006 03:08:02 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2EC8E1FE86; Sat, 29 Jul 2006 03:08:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2312D1FE86 for ; Sat, 29 Jul 2006 03:07:58 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27137-02 for ; Sat, 29 Jul 2006 03:07:54 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with SMTP id B7DE11FE85 for ; Sat, 29 Jul 2006 03:07:53 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY tombraider.mr.itd.umich.edu ID 44CAB4E6.B1B7E.13947 ; 28 Jul 2006 21:07:51 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <44C9DF26.2030208@wxs.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29785 Archived-At: On Fri, 28 Jul 2006, Hans Hagen wrote: > Aditya Mahajan wrote: >> Isn't \type<<..>> be supposed to be equivalent to \type{..} ? >> >> \title{some \type{thing} } >> >> works perfectly but >> >> \title{some \type<>} >> > << >> will not work in commands that get an argument because it is > related to catcode changes Ah. Makes sense. > we could use \scantokens if there was not this space-creeps-in-after > \cs problem) Well, found a workaround. Not sure if this one is a bug or a feature (is a feature to me) \title{some \type{\thing\{and\}}} However, things get real weird. \title{\type{$\Pr\{A\}$}} gives me ! Extra }, or forgotten $. } ...tofoneargument {\type {$\Pr \{A\}$}} \endstrut }\xdef \localhe... \@@ko::normal ...box {\localheadsetup \noindent #2 }\fi \doplaceheadtext ...attributes \dostopattributes } }\fi \endheadplacement {#1... \dodododoconstructhead ...arking [#1\v!number ]{}} \writesection {#1}{-}{#4}\... l.69 \title{\type{$\Pr\{A\}$}} which I think is the currect behaviour. There is really no need to change anything. I am happy with "Do not use \type inside argument. The unexpected can happen." Aditya