From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92787 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Bug with ConTeXt and pgfplot library fillbetween Date: Mon, 26 Oct 2015 10:53:58 +0100 Message-ID: <562DF836.1080503@gmail.com> References: <562A5FC7.6050108@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1218402994==" X-Trace: ger.gmane.org 1445853303 17131 80.91.229.3 (26 Oct 2015 09:55:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Oct 2015 09:55:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 26 10:54:48 2015 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 1ZqeUJ-0000ux-22 for gctc-ntg-context-518@m.gmane.org; Mon, 26 Oct 2015 10:54:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24F6E1021C for ; Mon, 26 Oct 2015 10:54:46 +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 n0I4Eu8_82Fw for ; Mon, 26 Oct 2015 10:54:44 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7723D1022E for ; Mon, 26 Oct 2015 10:54:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0546B101F6 for ; Mon, 26 Oct 2015 10:54:04 +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 Tqs_O2IaUCt6 for ; Mon, 26 Oct 2015 10:54:02 +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 A60EF101E8 for ; Mon, 26 Oct 2015 10:54:02 +0100 (CET) Original-Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) by filter3-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t9Q9s1bk011273 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 26 Oct 2015 10:54:01 +0100 Original-Received: by wicll6 with SMTP id ll6so105877449wic.1 for ; Mon, 26 Oct 2015 02:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=ulnm2CbnDGO/8QQ7Am/GLTnZQS3hVm/gK+N7cWBOCm0=; b=Fc7DIN7Se+2E+Ps/LyIPNGANoig3c0P1Nqq9vvw/l1wzaXEShMDjzbrm+LcHuVxqDn xi0xxnV9JcpOBp+vTfofFhCGsf/hNaSOYguheeg56OVB5LlGfBcsPN0/YPAwcYPwkgaL PajHNOpEOH8Eurh3pRBGcjsyjDifd9kAtSKUkVPLPUzwRKsJ60p1tyF9SIR936mlPtJO GMEteSmA2czIJbuW3+NN2zcvZycHLDtrFABHS5Z2p+FR3i/y+OXv6Xst1au8eh2vJTEY TeUfDZn3s9nmRGgWTCx5iZGWaNugkolPJwu4c+jRZ1GLKkMdf1lQVdpD+S/psjL7j3EL ZTWQ== X-Received: by 10.194.243.232 with SMTP id xb8mr19367517wjc.138.1445853241162; Mon, 26 Oct 2015 02:54:01 -0700 (PDT) Original-Received: from keima.localdomain (x2f29ba1.dyn.telefonica.de. [2.242.155.161]) by smtp.googlemail.com with ESMTPSA id cr5sm36563717wjb.16.2015.10.26.02.54.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 Oct 2015 02:54:00 -0700 (PDT) User-Agent: Postbox 4.0.7 (Macintosh/20151021) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22d; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03PxJS1MM - cc960e7a87a9 - 20151026 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::22d as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::22d; envelope-from=; helo=mail-wi0-x22d.google.com; identity=mailfrom 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:92787 Archived-At: This is a multi-part message in MIME format. --===============1218402994== Content-Type: multipart/alternative; boundary="------------000003060802070101010909" This is a multi-part message in MIME format. --------------000003060802070101010909 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Aditya Mahajan > 24. Oktober 2015 um 20:45 > On Fri, 23 Oct 2015, Wolfgang Schuster wrote: > > > Thanks! > > What is the easiest way to fix this (without patching tikz)? Ensure that | has always the same catcode in math mode independant of=20 the catcode in text mode like _ and ^. > I thought that > > \pushcatcodetable > \usemodule[pgfplots] > \usepgfplotslibrary[fillbetween] > \popcatcodetable > > should work, but it does not. Why? > > Surrounding by \unprotect ... \protect does work, so I am wondering=20 > what is the difference between the two? When you use \unprotect =E2=80=A6 \protect context changes the catcode ta= ble=20 between the group but when you only use push and pop this isn=E2=80=99t t= he case. Below is a simplified version of your example where the catcode change=20 remains even when I try to restore the default settings with=20 \catcodetable\ctxcatcodes but I don=E2=80=99t now if this is a bug. \starttext \the\catcode`| \catcode`|=3D12 \catcodetable\ctxcatcodes \the\catcode`| \stoptext Wolfgang --------------000003060802070101010909 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
24= .=20 Oktober 2015 um 20:45
On Fri,= 23 Oct 2015, Wolfgang Schuster wrote:


Thanks!

What is the easiest way to fix this (without patching tikz)?
Ensure that | has always the same catcode in math mode independant of=20 the catcode in text mode like _ and ^.
I thought=20 that

\pushcatcodetable
\usemodule[pgfplots]
\usepgfplotslibrary[fillbetween]
\popcatcodetable

should work, but it does not. Why?

Surrounding by \unprotect ... \protect does work, so I am wondering=20 what=20 is the difference between the two?
When you use \unprotect =E2=80=A6 \protect context changes the catcode ta= ble=20 between the group but when you only use push and pop this isn=E2=80=99t t= he=20 case.

Below is a simplified version of your example where the catcode change=20 remains even when I try to restore the default settings with=20 \catcodetable\ctxcatcodes but I don=E2=80=99t now if this is a bug.

\starttext

\the\catcode`|

\catcode`|=3D12

\catcodetable\ctxcatcodes

\the\catcode`|

\stoptext

Wolfgang
--------------000003060802070101010909-- --===============1218402994== 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= --===============1218402994==--