Re: [NTG-context] Lmtx + pgfplots compilation error
On Wed, 8 Apr 2020, Aditya Mahajan wrote: Simpler example: Sorry, pasted the wrong thing: \usemodule[pgfplots] \starttext \starttikzpicture \startaxis \addplot {x}; \stopaxis \stoptikzpicture \stoptext Works with LMTX 2019.12.31 but fails with the most recent LMTX (same error as below) using the same pgfplots module. Aditya On Wed, 8 Apr 2020, Fabrice Couvreur wrote: Hi Henri, Sorry ! \usemodule[pgfplots] \pgfplotsset{compat=newest} \starttext \starttikzpicture \startaxis [ xlabel=$x$, ylabel={$f(x) = x^2 - x +4$} ] \addplot {x^2 - x +4}; \stopaxis \stoptikzpicture \stoptext tex error > tex error on line 5 in file pgfplotsbinary.data.code.tex: ! Undefined control sequence l.5 ...ode`\^0=11\expandafter\xdef\csname pgfp@bin@\the\counter \endcsname{^0 }\advance\counter by1 lua error: ? Le mer. 8 avr. 2020 à 12:40, Henri Menke a écrit : MINIMAL working example... Cheers, Henri On 08/04/20, 11:52, Fabrice Couvreur wrote: Hi Henri, This file works well with context but does not work with lmtx. \usemodule[pgfplots] \usemodule[pgfpltstable] \pgfplotsset{compat=newest} \starttext \starttikzpicture \startaxis[ title={\bf Relevé de notes chronologique}, ymajorgrids=true, grid style={cyan!30}, ymin=0, ymax=22, xmin=0, xmax=14, x=1cm, y=0.3cm, axis x line =bottom, axis y line =left, axis on top=true, axis line style =very thick, tick align=outside, tickwidth=0.12cm, tick style=very thick, xtick={\empty}, ytick={0,2,...,18,20}, extra x ticks={2,5,7,9,11,13}, extra x tick labels={octobre,novembre,janvier,mars,avril, juin}, extra x tick style={tick label style={rotate=45}}, extra tick style={tick style={draw=none}}, xlabel={Date},ylabel={Note}, xlabel={Date},ylabel={Effectif}, every axis x label/.style={ at={(ticklabel* cs:1.01)}, anchor=west, }, every axis y label/.style={ at={(ticklabel* cs:1.01)}, anchor=south, }, samples=1000, >=stealth, ] \addplot [color=green,only marks] coordinates { (1,5) (2,7) (3,5) (4,10) (5,5) (6,8) (7,10) (8,8) (9,10) (10,14) (11,18) (12,14) (13,11) }; \stopaxis \stoptikzpicture \stoptext open source > level 7, order 88, name 'pgfplotsbinary.data.code.tex' tex error > tex error on line 5 in file pgfplotsbinary.data.code.tex: ! Undefined control sequence l.5 ...ode`\^0=11\expandafter\xdef\csname pgfp@bin@\the\counter \endcsname{^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 Wed Apr 8 11:49:56 Le mer. 8 avr. 2020 à 11:21, Henri Menke a écrit : Hi Fabrice, Could you provide a MWE, or maybe even open an issue on the bugtracker? https://github.com/pgf-tikz/pgfplots/issues Cheers, Henri On 07/04/20, 14:22, Fabrice Couvreur wrote: 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 __
Re: [NTG-context] Lmtx + pgfplots compilation error
Simpler example: \usemodule[pgfplots] \pgfplotsset{compat=newest} \starttext \starttikzpicture \startaxis [ xlabel=$x$, ylabel={$f(x) = x^2 - x +4$} ] \addplot {x^2 - x +4}; \stopaxis \stoptikzpicture \stoptext Works with LMTX 2019.12.31 but fails with the most recent LMTX (same error as below) using the same pgfplots module. Aditya On Wed, 8 Apr 2020, Fabrice Couvreur wrote: Hi Henri, Sorry ! \usemodule[pgfplots] \pgfplotsset{compat=newest} \starttext \starttikzpicture \startaxis [ xlabel=$x$, ylabel={$f(x) = x^2 - x +4$} ] \addplot {x^2 - x +4}; \stopaxis \stoptikzpicture \stoptext tex error > tex error on line 5 in file pgfplotsbinary.data.code.tex: ! Undefined control sequence l.5 ...ode`\^0=11\expandafter\xdef\csname pgfp@bin@\the\counter \endcsname{^0 }\advance\counter by1 lua error: ? Le mer. 8 avr. 2020 à 12:40, Henri Menke a écrit : MINIMAL working example... Cheers, Henri On 08/04/20, 11:52, Fabrice Couvreur wrote: Hi Henri, This file works well with context but does not work with lmtx. \usemodule[pgfplots] \usemodule[pgfpltstable] \pgfplotsset{compat=newest} \starttext \starttikzpicture \startaxis[ title={\bf Relevé de notes chronologique}, ymajorgrids=true, grid style={cyan!30}, ymin=0, ymax=22, xmin=0, xmax=14, x=1cm, y=0.3cm, axis x line =bottom, axis y line =left, axis on top=true, axis line style =very thick, tick align=outside, tickwidth=0.12cm, tick style=very thick, xtick={\empty}, ytick={0,2,...,18,20}, extra x ticks={2,5,7,9,11,13}, extra x tick labels={octobre,novembre,janvier,mars,avril, juin}, extra x tick style={tick label style={rotate=45}}, extra tick style={tick style={draw=none}}, xlabel={Date},ylabel={Note}, xlabel={Date},ylabel={Effectif}, every axis x label/.style={ at={(ticklabel* cs:1.01)}, anchor=west, }, every axis y label/.style={ at={(ticklabel* cs:1.01)}, anchor=south, }, samples=1000, >=stealth, ] \addplot [color=green,only marks] coordinates { (1,5) (2,7) (3,5) (4,10) (5,5) (6,8) (7,10) (8,8) (9,10) (10,14) (11,18) (12,14) (13,11) }; \stopaxis \stoptikzpicture \stoptext open source > level 7, order 88, name 'pgfplotsbinary.data.code.tex' tex error > tex error on line 5 in file pgfplotsbinary.data.code.tex: ! Undefined control sequence l.5 ...ode`\^0=11\expandafter\xdef\csname pgfp@bin@\the\counter \endcsname{^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 Wed Apr 8 11:49:56 Le mer. 8 avr. 2020 à 11:21, Henri Menke a écrit : Hi Fabrice, Could you provide a MWE, or maybe even open an issue on the bugtracker? https://github.com/pgf-tikz/pgfplots/issues Cheers, Henri On 07/04/20, 14:22, Fabrice Couvreur wrote: 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 ___
Re: [NTG-context] Lmtx + pgfplots compilation error
Hi Henri, Sorry ! \usemodule[pgfplots] \pgfplotsset{compat=newest} \starttext \starttikzpicture \startaxis [ xlabel=$x$, ylabel={$f(x) = x^2 - x +4$} ] \addplot {x^2 - x +4}; \stopaxis \stoptikzpicture \stoptext tex error > tex error on line 5 in file pgfplotsbinary.data.code.tex: ! Undefined control sequence l.5 ...ode`\^0=11\expandafter\xdef\csname pgfp@bin@\the\counter \endcsname{^0 }\advance\counter by1 lua error: ? Le mer. 8 avr. 2020 à 12:40, Henri Menke a écrit : > MINIMAL working example... > > Cheers, Henri > > On 08/04/20, 11:52, Fabrice Couvreur wrote: > > Hi Henri, > > This file works well with context but does not work with lmtx. > > > > \usemodule[pgfplots] > > \usemodule[pgfpltstable] > > \pgfplotsset{compat=newest} > > \starttext > > \starttikzpicture > > \startaxis[ > > title={\bf Relevé de notes chronologique}, > > ymajorgrids=true, > > grid style={cyan!30}, > > ymin=0, > > ymax=22, > > xmin=0, > > xmax=14, > > x=1cm, > > y=0.3cm, > > axis x line =bottom, > > axis y line =left, > > axis on top=true, > > axis line style =very thick, > > tick align=outside, > > tickwidth=0.12cm, > > tick style=very thick, > > xtick={\empty}, > > ytick={0,2,...,18,20}, > > extra x ticks={2,5,7,9,11,13}, > > extra x tick labels={octobre,novembre,janvier,mars,avril, juin}, > > extra x tick style={tick label style={rotate=45}}, > > extra tick style={tick style={draw=none}}, > > xlabel={Date},ylabel={Note}, > > xlabel={Date},ylabel={Effectif}, > > every axis x label/.style={ > > at={(ticklabel* cs:1.01)}, > > anchor=west, > > }, > > every axis y label/.style={ > > at={(ticklabel* cs:1.01)}, > > anchor=south, > > }, > > samples=1000, > > >=stealth, > > ] > > \addplot [color=green,only marks] coordinates { > > (1,5) > > (2,7) > > (3,5) > > (4,10) > > (5,5) > > (6,8) > > (7,10) > > (8,8) > > (9,10) > > (10,14) > > (11,18) > > (12,14) > > (13,11) > > }; > > \stopaxis > > \stoptikzpicture > > \stoptext > > > > > > open source > level 7, order 88, name 'pgfplotsbinary.data.code.tex' > > > > tex error > tex error on line 5 in file > pgfplotsbinary.data.code.tex: > > ! Undefined control sequence > > > > l.5 ...ode`\^0=11\expandafter\xdef\csname pgfp@bin@\the\counter > > \endcsname{^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 Wed Apr 8 11:49:56 > > > > > > Le mer. 8 avr. 2020 à 11:21, Henri Menke a écrit > : > > > > > Hi Fabrice, > > > > > > Could you provide a MWE, or maybe even open an issue on the bugtracker? > > > https://github.com/pgf-tikz/pgfplots/issues > > > > > > Cheers, Henri > > > > > > On 07/04/20, 14:22, Fabrice Couvreur wrote: > > > > 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 > > > > >
Re: [NTG-context] Short weekday option for date command
Thank you Wolfgang! Adam On Wed, Apr 8, 2020 at 9:11 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Adam Reviczky schrieb am 08.04.2020 um 21:53: > > Thank you Hans and Wolfgang, > > > > I have updated the wiki (https://wiki.contextgarden.net/Command/date) > > with the new dayshort/daylong options, but I seem to get an empty value > > for every day after day 7, see example: > > > > \starttext > > \date[d=7,m=4,y=2008][{\dayshort\normalday},{,~},day,~,month,~,year] \par > > \date[d=8,m=4,y=2008][{\dayshort\normalday},{,~},day,~,month,~,year] > > \stoptext > > > > This gives me (note "sun" is missing in the second line): > > > > sat, 7 April 2008 > > , 8 April 2008 > > > > Am I using the options correctly? > > No, the \daylong and \dayshort expect a number between 1 and 7 and > result in a label for the requested day of the week but it's not meant > to be used in \currentdate. > > > Still using luatex and not luametatex. > > To get the short names with \currentdate you have to append ":mnem" to > the weekday, w, WEEKDAY or W keywords. > > \starttext > > \startlines > \date[d=7,m=4,y=2008][weekday,{,~},day,~,month,~,year] > \date[d=7,m=4,y=2008][weekday:mnem,{,~},day,~,month,~,year] > \date[d=8,m=4,y=2008][weekday,{,~},day,~,month,~,year] > \date[d=8,m=4,y=2008][weekday:mnem,{,~},day,~,month,~,year] > \stoplines > > \stoptext > > Wolfgang > ___ 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] Short weekday option for date command
Adam Reviczky schrieb am 08.04.2020 um 21:53: Thank you Hans and Wolfgang, I have updated the wiki (https://wiki.contextgarden.net/Command/date) with the new dayshort/daylong options, but I seem to get an empty value for every day after day 7, see example: \starttext \date[d=7,m=4,y=2008][{\dayshort\normalday},{,~},day,~,month,~,year] \par \date[d=8,m=4,y=2008][{\dayshort\normalday},{,~},day,~,month,~,year] \stoptext This gives me (note "sun" is missing in the second line): sat, 7 April 2008 , 8 April 2008 Am I using the options correctly? No, the \daylong and \dayshort expect a number between 1 and 7 and result in a label for the requested day of the week but it's not meant to be used in \currentdate. Still using luatex and not luametatex. To get the short names with \currentdate you have to append ":mnem" to the weekday, w, WEEKDAY or W keywords. \starttext \startlines \date[d=7,m=4,y=2008][weekday,{,~},day,~,month,~,year] \date[d=7,m=4,y=2008][weekday:mnem,{,~},day,~,month,~,year] \date[d=8,m=4,y=2008][weekday,{,~},day,~,month,~,year] \date[d=8,m=4,y=2008][weekday:mnem,{,~},day,~,month,~,year] \stoplines \stoptext Wolfgang ___ 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] Short weekday option for date command
Thank you Hans and Wolfgang, I have updated the wiki (https://wiki.contextgarden.net/Command/date) with the new dayshort/daylong options, but I seem to get an empty value for every day after day 7, see example: \starttext \date[d=7,m=4,y=2008][{\dayshort\normalday},{,~},day,~,month,~,year] \par \date[d=8,m=4,y=2008][{\dayshort\normalday},{,~},day,~,month,~,year] \stoptext This gives me (note "sun" is missing in the second line): sat, 7 April 2008 , 8 April 2008 Am I using the options correctly? Still using luatex and not luametatex. ConTeXt ver: 2020.04.08 14:34 MKIV beta fmt: 2020.4.8 int: english/english mtx-context | current version: 2020.04.08 14:34 This is LuaTeX, Version 1.13.0 (TeX Live 2020/Debian) Compiled with libpng 1.6.37; using 1.6.37 Compiled with lua version 5.3.5 Compiled with mplib version 2.00 Compiled with zlib 1.2.11; using 1.2.11 Development id: 7330 Thanks, Adam On Sat, Apr 4, 2020 at 11:24 AM Hans Hagen wrote: > On 4/4/2020 11:47 AM, Adam Reviczky wrote: > > Hi, > > > > Is there a way to achieve a short weekday option with \date[] to get 3 > > letter equivalents (Mon, Tue, Wed, Thu, Fri, Sat, Sun) similar to the > > monthshort either through context or lua? > Not currently but I will add the basics (I have to double check with WS > to see where if conflicts as such an extension involves additional > commands it has to go into the setups too) but others have to add the > abbreviations. > > Hans > > - >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] Float positioning
On Mon, 6 Apr 2020 16:53:33 +0200 Tomas Hala wrote: > You can try the work around below, it is based on computation of > additional measures for special instance of figure. Thank you, this is helpful indeed, at least as a workaround. -- Regards, Alexey Kryukov Moscow State University Faculty of History ___ 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] Lmtx + pgfplots compilation error
MINIMAL working example... Cheers, Henri On 08/04/20, 11:52, Fabrice Couvreur wrote: > Hi Henri, > This file works well with context but does not work with lmtx. > > \usemodule[pgfplots] > \usemodule[pgfpltstable] > \pgfplotsset{compat=newest} > \starttext > \starttikzpicture > \startaxis[ > title={\bf Relevé de notes chronologique}, > ymajorgrids=true, > grid style={cyan!30}, > ymin=0, > ymax=22, > xmin=0, > xmax=14, > x=1cm, > y=0.3cm, > axis x line =bottom, > axis y line =left, > axis on top=true, > axis line style =very thick, > tick align=outside, > tickwidth=0.12cm, > tick style=very thick, > xtick={\empty}, > ytick={0,2,...,18,20}, > extra x ticks={2,5,7,9,11,13}, > extra x tick labels={octobre,novembre,janvier,mars,avril, juin}, > extra x tick style={tick label style={rotate=45}}, > extra tick style={tick style={draw=none}}, > xlabel={Date},ylabel={Note}, > xlabel={Date},ylabel={Effectif}, > every axis x label/.style={ > at={(ticklabel* cs:1.01)}, > anchor=west, > }, > every axis y label/.style={ > at={(ticklabel* cs:1.01)}, > anchor=south, > }, > samples=1000, > >=stealth, > ] > \addplot [color=green,only marks] coordinates { > (1,5) > (2,7) > (3,5) > (4,10) > (5,5) > (6,8) > (7,10) > (8,8) > (9,10) > (10,14) > (11,18) > (12,14) > (13,11) > }; > \stopaxis > \stoptikzpicture > \stoptext > > > open source > level 7, order 88, name 'pgfplotsbinary.data.code.tex' > > tex error > tex error on line 5 in file pgfplotsbinary.data.code.tex: > ! Undefined control sequence > > l.5 ...ode`\^0=11\expandafter\xdef\csname pgfp@bin@\the\counter > \endcsname{^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 Wed Apr 8 11:49:56 > > > Le mer. 8 avr. 2020 à 11:21, Henri Menke a écrit : > > > Hi Fabrice, > > > > Could you provide a MWE, or maybe even open an issue on the bugtracker? > > https://github.com/pgf-tikz/pgfplots/issues > > > > Cheers, Henri > > > > On 07/04/20, 14:22, Fabrice Couvreur wrote: > > > 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
[NTG-context] Why does this example from the MetaFun manual not work?
I would like to use the result of transparent() straight in my macros, so I can pass the colors with transparency using a single parameter. That should be possible if I understand the MetaFun manual (where I’ve copy-pasted this example from): \starttext \startMPpage[instance=doublefun] vardef SampleText (expr t, c) = save p ; picture p ; p := image (draw t infont "\truefontname{Regular}") ; draw (p shifted (- xpart center p,0)) scaled 5 withcolor c; enddef ; SampleText ("Much Of This" , transparent(1, .5, red )) ; SampleText ("Functionality" , transparent(1, .5, green)) ; SampleText ("Was Written", transparent(1, .5, blue )) ; SampleText ("While Listening", transparent(1, .5, cmyk(1,0,0,0))) ; SampleText ("To the CD's Of" , transparent(1, .5, cmyk(0,1,0,0))) ; SampleText ("Tori Amos" , transparent(1, .5, cmyk(0,0,1,0))) ; \stopMPpage \stoptext But it results in: system > files > jobname 'testcolor', input './testcolor', result 'testcolor' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name './testcolor.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded metapost> initializing instance 'doublefun:1' using format 'metafun' and method 'double' metapost> loading 'metafun' as '/usr/local/context-osx-64/tex/texmf-context/metapost/context/base/mpiv/metafun.mpxl' using method 'double' metapost> initializing number mode 'double' metapost log> metapost log> loading metafun, including plain.mp version 1.004 for metafun iv and xl metapost log> metapost log> ! Missing ')' has been inserted. metapost log> metapost log>withprescript metapost log> transparent->(1)withprescript metapost log> "tr_alternative="&decimal.transparency_alternat... metapost log> <*> ... ("Much Of This" , transparent(1, .5, red ) metapost log> ) ; SampleText ("Functiona... metapost log> backend > xmp > using file '/usr/local/context-osx-64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 close source> level 2, order 3, name './testcolor.tex' close source> level 1, order 3, name 'cont-yes.mkiv' For me, it is not about passing colour on to ConTeXt to typeset text, these are colors that normally would be drawn with “withcolor ca withtransparency (method,factor)” but that requires the passing of many more parameters and a lot more work in coding. Does transparent() maybe produce a string that looks like “ca withtransparency (method,factor)” so something only usable in draw/fill/etc statements? But in that case how does that work without scantokens to parse the string? Is there a way I can do this without having twice the parameters (and I have to pass multiple colours) in my macros everywhere? Thanks, G___ 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] Background color of a framedtext that covers floats
On 4/8/20 11:32 AM, Fabrice Couvreur wrote: > [...] > \startframedtext[width=max,background=color,backgroundcolor=fondpaille] > \starthanging[location=right] > {\startMPcode > draw unitsquare scaled 2cm ; > \stopMPcode} > \input tufte > \stophanging > \stopframedtext Hi Fabrice, with this sample, I think it is impossible to get different background unless you add something similar to "addbackground withcolor white ;". With an external figure, you could add the background to the image. If you draw the image, you should draw the background too. Pablo -- http://www.ousia.tk ___ 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] Lmtx + pgfplots compilation error
Hi Henri, This file works well with context but does not work with lmtx. \usemodule[pgfplots] \usemodule[pgfpltstable] \pgfplotsset{compat=newest} \starttext \starttikzpicture \startaxis[ title={\bf Relevé de notes chronologique}, ymajorgrids=true, grid style={cyan!30}, ymin=0, ymax=22, xmin=0, xmax=14, x=1cm, y=0.3cm, axis x line =bottom, axis y line =left, axis on top=true, axis line style =very thick, tick align=outside, tickwidth=0.12cm, tick style=very thick, xtick={\empty}, ytick={0,2,...,18,20}, extra x ticks={2,5,7,9,11,13}, extra x tick labels={octobre,novembre,janvier,mars,avril, juin}, extra x tick style={tick label style={rotate=45}}, extra tick style={tick style={draw=none}}, xlabel={Date},ylabel={Note}, xlabel={Date},ylabel={Effectif}, every axis x label/.style={ at={(ticklabel* cs:1.01)}, anchor=west, }, every axis y label/.style={ at={(ticklabel* cs:1.01)}, anchor=south, }, samples=1000, >=stealth, ] \addplot [color=green,only marks] coordinates { (1,5) (2,7) (3,5) (4,10) (5,5) (6,8) (7,10) (8,8) (9,10) (10,14) (11,18) (12,14) (13,11) }; \stopaxis \stoptikzpicture \stoptext open source > level 7, order 88, name 'pgfplotsbinary.data.code.tex' tex error > tex error on line 5 in file pgfplotsbinary.data.code.tex: ! Undefined control sequence l.5 ...ode`\^0=11\expandafter\xdef\csname pgfp@bin@\the\counter \endcsname{^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 Wed Apr 8 11:49:56 Le mer. 8 avr. 2020 à 11:21, Henri Menke a écrit : > Hi Fabrice, > > Could you provide a MWE, or maybe even open an issue on the bugtracker? > https://github.com/pgf-tikz/pgfplots/issues > > Cheers, Henri > > On 07/04/20, 14:22, Fabrice Couvreur wrote: > > 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 > > > > > > > > ___ > > > > > > > > > >
Re: [NTG-context] xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes
Hi On Sun, 2020-04-05 at 15:56 +0200, Christoph Hintermüller wrote: > Hi > I'm helping to make t-vim module fully usable in xhtml and futher > epub > export. Getting a distingct tag for the individual lines was quiet > easy > to do using \dostarttagged and \dostoptagged internal macros. > What i'm not able to figure are the following things: > 1) How can i set/modify the display attribute of the resulting > div.myclass section in the generated *_templates.css file. > Per default the display attribute is set to "inline" while i need > "block" or "flex" (not jet decided" which). > 2) How can i predefine the white-space css attribute to pre-wrap > 3) Is there a way to tell context to include the resulting class > inside > the *.default.css or *.styles.css or should that be done via the css > parameter of the \setupbackend macro only? > I figured so far that with the command \setelementnature[][block] I can change the css 'displayÄ attribute of my to display=block in the *_templates.css output But i did not manage so far to in addition set the 'white-space' css attribute of mytag to 'pre-wrap' I tried `\dosettagproperty` and `\setelementexporttag` commands but none of the gave me the expected result in the *_templates.css output for the xhtm export. What other commands do i have to call first, after `\dostarttagged` to be able to use eg `dosettagproperty` to also set the 'white-space' css attribute accordingly and/or how is the related context/lua property called which will be than translated into `white-space=pre-wrap`. The css 'display' attribute is to be changed by changing the 'nature' property of the tag. Is there anybody who can provide at least some hints which *.tex and *.lua source files to look at to figure myself. At least some orientation would already help. Best Xristoph ___ 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] Background color of a framedtext that covers floats
Hi Pablo, Here a sample. Fabrice \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \starttext \startframedtext[width=max,background=color,backgroundcolor=fondpaille] \starthanging[location=right] {\startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input tufte \stophanging \stopframedtext \stoptext Le mer. 8 avr. 2020 à 10:45, Pablo Rodriguez a écrit : > On 4/8/20 10:19 AM, Fabrice Couvreur wrote: > > Hi, > > Is there a more elegant way to have a white background for the table? > > Hi Fabrice, > > I think not including the table in the framed text is the easiest way to > avoid the colored background. > > Or why do you need the table inside the framed text, which only adds the > background color (and disables the frame)? > > > In fact, my question is more general: if we insert an image, the > > background color envelops this image: how to solve this problem? > > Unless you provide a sample that shows the issue you are facing, not > including the image in the frame may be your best option. > > Just in case it helps, > > Pablo > -- > http://www.ousia.tk > > ___ > 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] Lmtx + pgfplots compilation error
Hi Fabrice, Could you provide a MWE, or maybe even open an issue on the bugtracker? https://github.com/pgf-tikz/pgfplots/issues Cheers, Henri On 07/04/20, 14:22, Fabrice Couvreur wrote: > 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 > ___ ___ 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] Background color of a framedtext that covers floats
On 4/8/20 10:19 AM, Fabrice Couvreur wrote: > Hi, > Is there a more elegant way to have a white background for the table? Hi Fabrice, I think not including the table in the framed text is the easiest way to avoid the colored background. Or why do you need the table inside the framed text, which only adds the background color (and disables the frame)? > In fact, my question is more general: if we insert an image, the > background color envelops this image: how to solve this problem? Unless you provide a sample that shows the issue you are facing, not including the image in the frame may be your best option. Just in case it helps, Pablo -- http://www.ousia.tk ___ 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 ___
[NTG-context] Background color of a framedtext that covers floats
Hi, Is there a more elegant way to have a white background for the table ? In fact, my question is more general : if we insert an image, the background color envelops this image : how to solve this problem ? Thank you. Fabrice \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \starttext \startframedtext [frame=off,width=\textwidth, background=color,backgroundcolor=fondpaille] \input tufte \startlinecorrection[blank] \startmidaligned \startxtable [align={lohi,middle}, option={stretch},framecolor=cyan, offset=0.8ex,background=color,backgroundcolor=white] \startxrow \startxcell \bf Profondeur \m{x} (en mètre) \stopxcell \startxcell \bf Pression \m{P} (en bar) \stopxcell \startxcell \bf Volume \m{V} (en \m{\text{dm}^{3}}) \stopxcell \stopxrow \startxrow \startxcell 0 (niveau de la mer) \stopxcell \startxcell 1 \stopxcell \startxcell 1 \stopxcell \stopxrow \startxrow \startxcell 10 \stopxcell \startxcell 2 \stopxcell \startxcell 0,5 \stopxcell \stopxrow \stopxtable \stopmidaligned \stoplinecorrection \stopframedtext \stoptext ___ 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 ___