From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21704 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: \type ,\meaning eror check Date: Fri, 29 Jul 2005 11:28:34 +0200 Message-ID: <42E9F6C2.1050201@elvenkind.com> References: <42E7B637.2010502@wxs.nl> <1122609153.26434.5.camel@localhost.localdomain> <42E9D576.5060303@logosrl.it> <42E9E9AB.9050709@elvenkind.com> <42E9F324.1030702@logosrl.it> 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: quoted-printable X-Trace: sea.gmane.org 1122629550 8945 80.91.229.2 (29 Jul 2005 09:32:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2005 09:32:30 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 29 11:32: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 1DyRDs-0008SR-1a for gctc-ntg-context-518@m.gmane.org; Fri, 29 Jul 2005 11:32:08 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CE97812826; Fri, 29 Jul 2005 11:32:07 +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 04153-03; Fri, 29 Jul 2005 11:32:07 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0EFEE12820; Fri, 29 Jul 2005 11:28:40 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 42CED12820 for ; Fri, 29 Jul 2005 11:28:38 +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 04153-01-4 for ; Fri, 29 Jul 2005 11:28:37 +0200 (CEST) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with ESMTP id 482F312817 for ; Fri, 29 Jul 2005 11:28:36 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 131491818B for ; Fri, 29 Jul 2005 11:25:59 +0200 (CEST) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17803-05 for ; Fri, 29 Jul 2005 11:25:58 +0200 (CEST) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 15CB216FF9 for ; Fri, 29 Jul 2005 11:25:58 +0200 (CEST) User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <42E9F324.1030702@logosrl.it> X-Virus-Scanned: by amavisd-new at elvenkind.net X-Virus-Scanned: 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21704 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21704 luigi.scarso wrote: > Taco Hoekwater wrote: >=20 >> >> >> AFAIK, there is only one way to do this: write a new tex file on- >> the-fly and run a separate texexec on that file (using \write18), >> then parse the resulting log file for the occurence of any errors. >> Not simple at all, I'm afraid. >> > hmm, i've hundred of \startArticle.. I'll consider the possibility of adding a new primitive to pdfetex (the language) for the discovery of run-time errors like this. That will not help you at this moment, though. >>> 2. \type does not combine well with \meaning: =F2 (ie {\`o} ) is no= t=20 >>> show. >> >> >> \expanded\type{\expandafter\scantokens\expandafter{\Temp}}% >> > good , but type also first \expandafter after \type Sorry, the correct solution is: \expandafter\expandafter\expandafter\type \expandafter\expandafter\expandafter {\expandafter\scantokens\expandafter{\Temp}}% or, a bit shorter but needing \(un)protect: \@EA\@EA\@EA\type\@EA\@EA\@EA{\@EA\scantokens\@EA{\Temp}}% My original post only \expanded the single token \type, not the whole argument. Cheers, Taco