From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19887 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Possible bug in verbatim Date: Fri, 15 Apr 2005 11:52:34 +0200 Message-ID: <425F8EE2.6080406@wxs.nl> References: <4269EE7F@webmail.colostate.edu> <425F63AB.7070906@elvenkind.com> 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 1113558630 6116 80.91.229.2 (15 Apr 2005 09:50:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2005 09:50:30 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 15 11:50:28 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 1DMNRf-0006Ck-Eb for gctc-ntg-context-518@m.gmane.org; Fri, 15 Apr 2005 11:49:03 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1CCA512955; Fri, 15 Apr 2005 11:52:34 +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 21711-03; Fri, 15 Apr 2005 11:52:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 17CB812949; Fri, 15 Apr 2005 11:52:30 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5127912949 for ; Fri, 15 Apr 2005 11:52:29 +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 21754-02 for ; Fri, 15 Apr 2005 11:52:28 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id F3C9112935 for ; Fri, 15 Apr 2005 11:52:27 +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 j3F9qPR2031131 for ; Fri, 15 Apr 2005 11:52:25 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 0447017B1D; Fri, 15 Apr 2005 11:31:15 +0200 (CEST) Original-Received: from [10.100.1.54] (unknown [10.100.1.54]) by server-1.pragma-net.nl (Postfix) with ESMTP id 04F1C9CB0 for ; Fri, 15 Apr 2005 09:31:15 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <425F63AB.7070906@elvenkind.com> X-Virus-Scanned: ClamAV 0.80/705/Fri Feb 11 17:51:32 2005 clamav-milter version 0.80j on mailrelay02 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:19887 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19887 Taco Hoekwater wrote: > Idris Samawi Hamid wrote: > >> Dear cartel, >> >> \head\relax \type{ {A} } > > > Not a solution, but a workaround: > > \head\relax \expandafter\type\scantokens{{ {A} }} > > (I don't know how to solve this) I do, but i have no idea how robust it is ... % in cont-new.tex \unprotect \def\dostartitemattributes#1{\dostartattributes{\??op\currentitemgroup#1}} \def\dostopitemattributes {\dostopattributes} \def\complexdoitemgrouphead[#1]% beter in \complexdosom hangen met een if {\iffirstlist\else\doitembreak\allowbreak\fi \ifpackeditems\else\getitemparameter\itemlevel\c!beforehead\fi \iffirstlist\ifitemintro\else\ifcase\itemlevel % incr in \complexdosom \doitembreak\allowbreak \fi\fi\fi \complexdoitemgroupitem[#1]% \bgroup \dostartitemattributes\itemlevel\c!headstyle\c!headcolor\empty \ignorespaces \let\par\enditemhead} % brrrr but simple anyway \def\enditemhead {\removeunwantedspaces \dostopitemattributes \egroup \iftextitems \space\ignorespaces \else \par \fi \doitembreak\nobreak \ifpackeditems\else\getitemparameter\itemlevel\c!afterhead\fi \doitembreak\nobreak \noindentation} \protect % test file \starttext \setupitemgroup[itemize][1][headcolor=red,headstyle=bold] \setupcolors[state=start] (\type{ {A} }) \startitemize \head \input tufte (\type{ {A} }) \input tufte \par \input tufte \item \input tufte (\type{ {A} }) \input tufte \stopitemize \stoptext ----------------------------------------------------------------- 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 -----------------------------------------------------------------