From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89134 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt gobble my mind Date: Thu, 6 Nov 2014 12:16:54 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1481044123==" X-Trace: ger.gmane.org 1415272655 28111 80.91.229.3 (6 Nov 2014 11:17:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2014 11:17:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 06 12:17:31 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XmL4D-0000a1-4K for gctc-ntg-context-518@m.gmane.org; Thu, 06 Nov 2014 12:17:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91F2510226 for ; Thu, 6 Nov 2014 12:17:28 +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 Gq8IFOQvSDky for ; Thu, 6 Nov 2014 12:17:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4D5231022F for ; Thu, 6 Nov 2014 12:17:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C1AE6101E7 for ; Thu, 6 Nov 2014 12:16: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 S-7GO_-hRjvB for ; Thu, 6 Nov 2014 12:16:58 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 53D26101E3 for ; Thu, 6 Nov 2014 12:16:58 +0100 (CET) Original-Received: from mail-qa0-x236.google.com (mail-qa0-x236.google.com [IPv6:2607:f8b0:400d:c00::236]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sA6BGtYN017094 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 6 Nov 2014 12:16:56 +0100 Original-Received: by mail-qa0-f54.google.com with SMTP id u7so531500qaz.41 for ; Thu, 06 Nov 2014 03:16:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CcHkGjLj63JWY+z9dV8FVrIpU99XsNR+93GX8OjJuPo=; b=lwiaTkysH/jCrHbkZSQImvUIlhNdX/G9eEu9zPeIijqgSF+Q/ofUEhT/Ogue3dUpuS eyADFkYP6DSJAHzMctMKdW/ZY9fnoYWXqqchAh3aU+YUme/3r/4hTxAiqaJ012qi4DrU zJ4JYuYLou5DC/72+u7GB0wrcbMJrQ1kVzkoI1AcUDAMqqUSIpapgQBKh+b/WhHQtg5v OBVK8mToMO7wHasnjZdHqMnPfZPy5BUjnITkK2VLJO6IOxTkNPt5L5ouCcwUMh0VHsnB Ee7xire2Jax7M1frm36JRbjEzfTjAjPVBWilCzwuFaOA54lMpjrSBu6ifyHB6lW054IS z9hw== X-Received: by 10.140.97.37 with SMTP id l34mr5335080qge.43.1415272614777; Thu, 06 Nov 2014 03:16:54 -0800 (PST) Original-Received: by 10.140.37.99 with HTTP; Thu, 6 Nov 2014 03:16:54 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400d:c00::236; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03NcbgUkU - 0092f389a4b4 - 20141106 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89134 Archived-At: --===============1481044123== Content-Type: multipart/alternative; boundary=001a113a9c9076daec05072ed5a6 --001a113a9c9076daec05072ed5a6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Nov 6, 2014 at 10:35 AM, Pierre-Fran=C3=A7ois Bonnefoi < bonnefoi@unilim.fr> wrote: > Hello, > > I've made a lot of improvement to my slides format for my teaching > material and I've run into a serious issue with gobbleinput that I can > express with with simple lines : > > \starttext > \gobbleuntil\stoptyping > \starttyping > { printf("%d", data); } > \stoptyping > This is ignored ! > \stoptext > > How can I use correctly gobbleinput to make it works ? > > "%d" in this situation means ["][ token comment ] --- \gobbleuntil neutralizes \starttyping that changes the catcode of '%' --- so you are left with an open group (the { before printf) that needs to be closed. So the first step is to make '%' a letter token \starttext %\tracingall \gobbleuntil\stoptyping \starttyping { printf("\%d", data); } \stoptyping %\tracingnone This is not more ignored ! \stoptext --=20 luigi --001a113a9c9076daec05072ed5a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Thu, Nov 6, 2014 at 10:35 AM, Pierre-Fran=C3=A7ois Bonnefoi <bonne= foi@unilim.fr> wrote:
Hello,

I've made a lot of improveme= nt to my slides format for my teaching material and I've run into a ser= ious issue with gobbleinput that I can express with with simple lines :

\starttext
\gobbleuntil\stoptyping
\starttyping
= { printf("%d", data); }
\stoptyping
This is i= gnored !=C2=A0
\stoptext

How can I= use correctly gobbleinput to make it works ?


"%d"=C2=A0
in this situat= ion means ["][ token comment ] <other tokens>=C2=A0
--= - \gobbleuntil neutralizes \starttyping that changes the catcode of '%&= #39; =C2=A0---
so you are left with an open group =C2=A0(the = { before printf)
that needs to be closed.

So the first step is to make '%' a letter token

\starttext
%\tracingall
\gobbleuntil\stopt= yping
\starttyping
=C2=A0 =C2=A0 { printf("\%d&quo= t;, data); }
\stoptyping
%\tracingnone
This i= s not more ignored !=C2=A0
\stoptext

=C2=A0

--
l= uigi
--001a113a9c9076daec05072ed5a6-- --===============1481044123== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1481044123==--