ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Bug with ConTeXt and pgfplot library fillbetween
Date: Mon, 26 Oct 2015 10:53:58 +0100	[thread overview]
Message-ID: <562DF836.1080503@gmail.com> (raw)
In-Reply-To: <alpine.OSX.2.02.1510241439430.6217@nqv-znpobbx>


[-- 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
___________________________________________________________________________________

  reply	other threads:[~2015-10-26  9:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2015-10-26 16:50       ` Aditya Mahajan
2015-10-26 10:03     ` Mojca Miklavec
2015-10-26 10:16 Akira Kakuto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=562DF836.1080503@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).