* Bug with ConTeXt and pgfplot library fillbetween
@ 2015-10-26 10:16 Akira Kakuto
0 siblings, 0 replies; 7+ messages in thread
From: Akira Kakuto @ 2015-10-26 10:16 UTC (permalink / raw)
To: ntg-context
> \starttext
>
> \the\catcode`|
>
> \catcode`|=12
>
> \catcodetable\ctxcatcodes
>
> \the\catcode`|
>
> \stoptext
mkiv gives 13, and 12.
mkii gives 13, and 13.
Best,
Akira
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug with ConTeXt and pgfplot library fillbetween
2015-10-26 9:53 ` Wolfgang Schuster
@ 2015-10-26 16:50 ` Aditya Mahajan
0 siblings, 0 replies; 7+ messages in thread
From: Aditya Mahajan @ 2015-10-26 16:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 763 bytes --]
On Mon, 26 Oct 2015, Wolfgang Schuster wrote:
> Below is a simplified version of your example where the catcode change
> remains even when I try to restore the default settings with
> \catcodetable\ctxcatcodes but I don’t now if this is a bug.
>
> \starttext
> \the\catcode`|
> \catcode`|=12
> \catcodetable\ctxcatcodes
> \the\catcode`|
> \stoptext
This works:
\starttext
\the\catcode`|
\pushcatcodetable
\catcodetable\prtcatcodes
\catcode`|=12
\popcatcodetable
\the\catcode`|
\stoptext
(Note that under \prtcatcode, the catcode of | is 12).
But replacing \prtcatcodes with \ctxcatcodes does not work.
So, one "proper" fix may be add a new catcodetable, say \tikzcatcodes, for
all the catcode changes that tikz does.
Aditya
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug with ConTeXt and pgfplot library fillbetween
2015-10-24 18:45 ` Aditya Mahajan
2015-10-26 9:53 ` Wolfgang Schuster
@ 2015-10-26 10:03 ` Mojca Miklavec
1 sibling, 0 replies; 7+ messages in thread
From: Mojca Miklavec @ 2015-10-26 10:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sat, Oct 24, 2015 at 8:45 PM, Aditya Mahajan wrote:
>
> What is the easiest way to fix this (without patching tikz)?
It would also make sense to ask about the proper patch for TikZ, so
that we could push the patch upstream.
Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug with ConTeXt and pgfplot library fillbetween
2015-10-24 18:45 ` Aditya Mahajan
@ 2015-10-26 9:53 ` Wolfgang Schuster
2015-10-26 16:50 ` Aditya Mahajan
2015-10-26 10:03 ` Mojca Miklavec
1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2015-10-26 9:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1072 bytes --]
> Aditya Mahajan <mailto:adityam@umich.edu>
> 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
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
> what is the difference between the two?
When you use \unprotect … \protect context changes the catcode table
between the group but when you only use push and pop this isn’t the case.
Below is a simplified version of your example where the catcode change
remains even when I try to restore the default settings with
\catcodetable\ctxcatcodes but I don’t now if this is a bug.
\starttext
\the\catcode`|
\catcode`|=12
\catcodetable\ctxcatcodes
\the\catcode`|
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 2418 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug with ConTeXt and pgfplot library fillbetween
2015-10-23 16:26 ` Wolfgang Schuster
@ 2015-10-24 18:45 ` Aditya Mahajan
2015-10-26 9:53 ` Wolfgang Schuster
2015-10-26 10:03 ` Mojca Miklavec
0 siblings, 2 replies; 7+ messages in thread
From: Aditya Mahajan @ 2015-10-24 18:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, 23 Oct 2015, Wolfgang Schuster wrote:
>> Aditya Mahajan <mailto:adityam@umich.edu>
>> 22. Oktober 2015 um 02:52
>> Hi,
>>
>> The following example fails:
>>
>> \usemodule[pgfplots]
>> \usepgfplotslibrary[fillbetween]
>>
>> \starttext
>> \startformula
>> \left. a \right|
>> \stopformula
>>
>> \stoptext
>>
>> with
>>
>> tex error > tex error on line 7 in file /private/tmp/test.tex: ! Missing
>> \endgroup inserted
>>
>> <inserted text>
>> \endgroup
>> <to be read again>
>> \Ucheckedstopdisplaymath
>> \stopdisplaymath ...math \Ucheckedstopdisplaymath
>> \par \ifvmode \ifcase
>> \c_s...
>> \strc_formulas_stop_formula ...native \v!formula }
>> \dostoptagged
>> \dostoptagge...
>> l.7 \stopformula
>>
>> This is a weird bug. Only \left. \right| fails; \left| \right| works
>> correctly. If I remove the fillbetween library, the error goes away.
>>
>> Any hints as to what is happening will be appreciated.
>
> The fillbetween library changes the catcode of the bar character.
>
> \starttext
>
> \the\catcode`|
>
> \usemodule[pgfplots]
> \usepgfplotslibrary[fillbetween]
>
> \the\catcode`|
>
> \stoptext
Thanks!
What is the easiest way to fix this (without patching tikz)? 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 what
is the difference between the two?
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug with ConTeXt and pgfplot library fillbetween
2015-10-22 0:52 Aditya Mahajan
@ 2015-10-23 16:26 ` Wolfgang Schuster
2015-10-24 18:45 ` Aditya Mahajan
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2015-10-23 16:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1276 bytes --]
> Aditya Mahajan <mailto:adityam@umich.edu>
> 22. Oktober 2015 um 02:52
> Hi,
>
> The following example fails:
>
> \usemodule[pgfplots]
> \usepgfplotslibrary[fillbetween]
>
> \starttext
> \startformula
> \left. a \right|
> \stopformula
>
> \stoptext
>
> with
>
> tex error > tex error on line 7 in file /private/tmp/test.tex: !
> Missing \endgroup inserted
>
> <inserted text>
> \endgroup
> <to be read again>
> \Ucheckedstopdisplaymath
> \stopdisplaymath ...math \Ucheckedstopdisplaymath
> \par \ifvmode
> \ifcase \c_s...
> \strc_formulas_stop_formula ...native \v!formula }
> \dostoptagged
> \dostoptagge...
> l.7 \stopformula
>
> This is a weird bug. Only \left. \right| fails; \left| \right| works
> correctly. If I remove the fillbetween library, the error goes away.
>
> Any hints as to what is happening will be appreciated.
The fillbetween library changes the catcode of the bar character.
\starttext
\the\catcode`|
\usemodule[pgfplots]
\usepgfplotslibrary[fillbetween]
\the\catcode`|
\stoptext
You get the same error when you use \asciimode in your document.
\asciimode
\starttext
\startformula
\left. a \right|
\stopformula
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 2703 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Bug with ConTeXt and pgfplot library fillbetween
@ 2015-10-22 0:52 Aditya Mahajan
2015-10-23 16:26 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2015-10-22 0:52 UTC (permalink / raw)
To: pgfplots-features, mailing list for ConTeXt users
Hi,
The following example fails:
\usemodule[pgfplots]
\usepgfplotslibrary[fillbetween]
\starttext
\startformula
\left. a \right|
\stopformula
\stoptext
with
tex error > tex error on line 7 in file /private/tmp/test.tex: !
Missing \endgroup inserted
<inserted text>
\endgroup
<to be read again>
\Ucheckedstopdisplaymath
\stopdisplaymath ...math \Ucheckedstopdisplaymath
\par \ifvmode \ifcase
\c_s...
\strc_formulas_stop_formula ...native \v!formula }
\dostoptagged
\dostoptagge...
l.7 \stopformula
This is a weird bug. Only \left. \right| fails; \left| \right| works
correctly. If I remove the fillbetween library, the error goes away.
Any hints as to what is happening will be appreciated.
Thanks,
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-10-26 16:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-26 10:16 Bug with ConTeXt and pgfplot library fillbetween Akira Kakuto
-- strict thread matches above, loose matches on Subject: below --
2015-10-22 0:52 Aditya Mahajan
2015-10-23 16:26 ` Wolfgang Schuster
2015-10-24 18:45 ` Aditya Mahajan
2015-10-26 9:53 ` Wolfgang Schuster
2015-10-26 16:50 ` Aditya Mahajan
2015-10-26 10:03 ` Mojca Miklavec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).