Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-07 Thread Fabrice Couvreur
Hi Henri,
Thank you for answering me. We're entering an area that I don't really know. I
replaced all ^^ by ^ but I'm not sure I understood. I now have the
following message :
Thank you
Fabrice

tex error   > tex error on line 5 in file pgfplotsbinary.data.code.tex:
! Undefined control sequence

l.5 \catcode`\^00=11 \expandafter\xdef\csname pgfp@bin@\the\counter
\endcsname{^0

   0}\advance\counter by1
lua error:

?






The control sequence at the end of the top line of your error message was
never
\def'ed. You can just continue as I'll forget about whatever was undefined.


mtx-context | fatal error: return code: 256

TeX Output exited abnormally with code 1 at Tue Apr  7 14:15:58

Le mar. 7 avr. 2020 à 04:21, Henri Menke  a écrit :

> The problem is that pgfplots uses the ^^ syntax to access characters but
> this relies on ^ having catcode 7 which is not the case by default in
> ConTeXt.  I had a similar issue in PGF before and that was fixed by just
> replacing the ^^ syntax with the ascii code constants from
> syst-ini.mkxl.
>
> Cheers, Henri
>
> On 06/04/20, 22:23, Fabrice Couvreur wrote:
> > Hi,
> > Still with the idea of using lmtx, I get a compilation error when I use
> > pgfplots.
> > Thank you.
> > Fabrice
> > 
> > open source > level 9, order 92, name 'pgfplotsbinary.data.code.tex'
> >
> > tex error   > tex error on line 42 in file
> > pgfplotsbinary.data.code.tex: ! Undefined control sequence
> >
> > l.42 \catcode`\ =11^^I\expandafter\xdef\csname pgfp@bin@
> >
> > \the\counter^^I\endcsname{^^20}\endgroup\advance\counter by1
> > lua error:
> >
> > ?
> >
> >
> >
> > 
> >
> >
> > The control sequence at the end of the top line of your error message was
> > never
> > \def'ed. You can just continue as I'll forget about whatever was
> undefined.
> >
> >
> > mtx-context | fatal error: return code: 256
> >
> > TeX Output exited abnormally with code 1 at Mon Apr  6 22:19:01
>
> >
> ___
> > 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://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> >
> ___
>
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] "Remember picture" does not work (again)

2020-04-07 Thread Jairo A. del Rio
It does not work. I get the following error message:

You can't use `the character 6' after \the


l.1 6

120806

\lastxpos ->\clf_lastxpos

 \noexpand \pgfsyspdfmark {pgfid1}{\the \lastxpos

}{\the \lastypos }



}\endwrite

 \shipoutscratchbox

\page_shipout_box #1->\clf_shipoutpage #1

\relax \setbox #1\emptybox \global ...

...

l.22 \stoptext

El mar., 7 de abr. de 2020 a la(s) 02:32, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> On 4/7/2020 4:07 AM, Jairo A. del Rio wrote:
> > I've tried using the fix in
> > https://tex.stackexchange.com/a/492197/193767 in order to make TikX's
> > remember picture feature usable, Code below, just in case:
> >
> > |\unprotect% This fixes the present
> >
> bug\unexpanded\def\pdflastxpos{\numexpr\clf_lastxpos\relax}\unexpanded\def\pdflastypos{\numexpr\clf_lastypos\relax}%
>
> > This might be needed if you run PGF 3.1.3% see
> >
> https://github.com/pgf-tikz/pgf/issues/675\def\XC@tgt@mod#1{#1}\def\XC@sdef#1#2{\edef#1{#2}}\protect\usemodule[tikz]\starttext\starttikzpicture[remember
> > picture]\node(A){Node 1}; \stoptikzpictureHi world
> > \starttikzpicture[remember picture]\node(B){Node 2};
> > \stoptikzpicture\starttikzpicture[overlay,remember
> > picture]\draw(B)--++(0,0.5)-| (A); \stoptikzpicture\stoptext|
>
>
> \unprotect
>
> \ifcase\contextlmtxmode \else
>  \unexpanded\def\pdflastxpos{\numexpr\clf_lastxpos\relax}
>  \unexpanded\def\pdflastypos{\numexpr\clf_lastypos\relax}
> \fi
>
> % This might be needed if you run PGF 3.1.3
> % see https://github.com/pgf-tikz/pgf/issues/675
>
> % \def\XC@tgt@mod  #1{#1}
> % \let\XC@sdef\edef
>
> \protect
>
> \usemodule[tikz]
>
> >
> > However, the following appears:
> >
> > l.1 6
> >
> > 120806
> >
> > \lastxpos ->\clf_lastxpos
> >
> >  \noexpand \pgfsyspdfmark {pgfid1}{\the \lastxpos
> >
> > }{\the \lastypos }
> >
> > 
> >
> > }\endwrite
> >
> >  \shipoutscratchbox
> >
> > \page_shipout_box #1->\clf_shipoutpage #1
> >
> > \relax \setbox #1\emptybox \global ...
> >
> > ...
> >
> > l.20 \stoptext
> >
> >
> > I use LuaTeX 1.10 7127 + ConTeXt MkIV 2019.03.21 21:39 (TeX Live
> > version), in case this helps. Is another fix necessary? A Metapost
> > alternative would be fine, too.
> >
> >
> >
> ___
> > 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://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> >
> ___
> >
>
>
> --
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] "Remember picture" does not work (again)

2020-04-07 Thread Hans Hagen

On 4/7/2020 4:07 AM, Jairo A. del Rio wrote:
I've tried using the fix in 
https://tex.stackexchange.com/a/492197/193767 in order to make TikX's 
remember picture feature usable, Code below, just in case:


|\unprotect% This fixes the present 
bug\unexpanded\def\pdflastxpos{\numexpr\clf_lastxpos\relax}\unexpanded\def\pdflastypos{\numexpr\clf_lastypos\relax}% 
This might be needed if you run PGF 3.1.3% see 
https://github.com/pgf-tikz/pgf/issues/675\def\XC@tgt@mod#1{#1}\def\XC@sdef#1#2{\edef#1{#2}}\protect\usemodule[tikz]\starttext\starttikzpicture[remember 
picture]\node(A){Node 1}; \stoptikzpictureHi world 
\starttikzpicture[remember picture]\node(B){Node 2}; 
\stoptikzpicture\starttikzpicture[overlay,remember 
picture]\draw(B)--++(0,0.5)-| (A); \stoptikzpicture\stoptext|



\unprotect

\ifcase\contextlmtxmode \else
\unexpanded\def\pdflastxpos{\numexpr\clf_lastxpos\relax}
\unexpanded\def\pdflastypos{\numexpr\clf_lastypos\relax}
\fi

% This might be needed if you run PGF 3.1.3
% see https://github.com/pgf-tikz/pgf/issues/675

% \def\XC@tgt@mod  #1{#1}
% \let\XC@sdef\edef

\protect

\usemodule[tikz]



However, the following appears:

l.1 6

120806

\lastxpos ->\clf_lastxpos

 \noexpand \pgfsyspdfmark {pgfid1}{\the \lastxpos

}{\the \lastypos }



}\endwrite

 \shipoutscratchbox

\page_shipout_box #1->\clf_shipoutpage #1

\relax \setbox #1\emptybox \global ...

...

l.20 \stoptext


I use LuaTeX 1.10 7127 + ConTeXt MkIV 2019.03.21 21:39 (TeX Live 
version), in case this helps. Is another fix necessary? A Metapost 
alternative would be fine, too.



___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___