Re: [NTG-context] Problem with shading in Metafun (LMTX)
On 12/21/2020 4:46 AM, Jairo A. del Rio wrote: While shading works with MkIV, with LMTX the following breaks: \startMPpage comment("two shades with named colors"); fill fullcircle scaled 5cm withshademethod "circular" withshadecolors ((1,0,0),(0,0,1,0)) ; fill fullcircle scaled 5cm shifted (6cm,0) withshademethod "circular" withcolor (1,0,0,0) shadedinto "blue" ; \stopMPpage in mp-base.mpxl there is a ; missing temp_any_u = u must be: temp_any_u := u ; (in the min and max macros) (i replaced some internal names as part of a cleanup) (there will be a new upload later that will also fix this) 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] Polar pgfplots seems to be broken
On Sun, 20 Dec 2020, Gavin wrote: > Hello, > > I’m drawing solar system diagrams using the pgfplots module, but the polar > library seem to be broken. It looks like it is calling something with a > \begin{axis}... command. Here is the error message for a short document, > included below. > > > tex error > tex error on line 18 in file > > /Users/Gavin/Documents/Computer/ConTeXt/Polar Plot > > Experiments/Untitled.tex: ! Undefined control sequence > > > > \pgfplots@environment@polaraxis@ [#1]->\begin > > {axis}[#1,data cs=polar,axis > > type=polar] > > l.18\startpolaraxis[] > > > > 16 \startsection[title={Polar Plot}] > > 17 \starttikzpicture % tikz code > > 18 >> \startpolaraxis[] > > 19 > > \addplot+[mark=none,domain=0:720,samples=600]{sin(4*x)}; > > 20 \stoppolaraxis > > 21 \stoptikzpicture > > 22 \stopsection > > > > mtx-context | fatal error: return code: 256 > > I’d love a fix or an idea for a work around. This is a bug in pgfplots macro pgfplotsdefineaxistype, which uses an explicit \begin{axis} ... \end{axis} instead of the more portable \axis ... \endaxis. Attached is a quick fix, but it has been quite a while since I looked at pgfplots code, so it may be better to post a bug-report on pgfplots mailing list for a proper fix. Aditya polar.tex Description: TeX document ___ 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] Problem with shading in Metafun (LMTX)
While shading works with MkIV, with LMTX the following breaks: \startMPpage comment("two shades with named colors"); fill fullcircle scaled 5cm withshademethod "circular" withshadecolors ((1,0,0),(0,0,1,0)) ; fill fullcircle scaled 5cm shifted (6cm,0) withshademethod "circular" withcolor (1,0,0,0) shadedinto "blue" ; \stopMPpage The log says: metafun > log > metafun > log > error: Unknown relation will be considered false metafun > log > metapost > log > metapost > log > metapost > log > : metapost > log > if(EXPR0)>temp_any_u: metapost > log > temp_any_u:=(EXPR0);fi ENDFOR metapost > log > max->begingroup.save.temp_any_u;if.pair(EXPR2):pair.temp_any_u.elseif.string(EXPR2): string.temp_any_u.fi ;temp_any_u=(EXPR2)for.i=(TEXT3):if.i>temp_any_u:temp_any_u:=i;fi.endfor metapost > log > .temp_any_u.endgroup metapost > log > mfun_max_radius->...er(EXPR2)-xpart.center(EXPR2))++(ypart.center(EXPR2)-ypart.lrcorner(EXPR2)),(xpart.urcorner(EXPR2)-xpart.center(EXPR2))++(ypart.urcorner(EXPR2)-ypart.center(EXPR2))) metapost > log > endgroup metapost > log > withshademethod->...cimal.center(EXPR0)withprescript"sh_center_b="(EXPR0)withprescript"sh_radius_a=""sh_radius_b="_max_radius((EXPR0)) metapost > log > fi metapost > log > metapost > log > withprescript metapost > log > withshadecolors->...hprescript"sh_color_a_"_shade_step&"="(EXPR0)withprescript"sh_color_b_"_shade_step&"="(EXPR1)else:withprescript metapost > log > "sh_color=in... metapost > log > <*> comment("two shades with named colors"); fill fullcircle scaled 5cm withshademethod "circular" withshadecolors ((1,0,0),(0,0,1,0)) metafun > log > metafun > log > Oh dear. I can't decide if the expression above is positive, negative, or zero. So this comparison test won't be 'true'. metafun > log > metapost > log > ; fill fullcircle scaled 5cm shifted (6cm,0) withshademethod "... metapost > log > Hans told me not to use the B tag, so I'm asking first in case I've missed something. Thank you in advance. Best regards, Jairo ___ 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] Polar pgfplots seems to be broken
Hello, I’m drawing solar system diagrams using the pgfplots module, but the polar library seem to be broken. It looks like it is calling something with a \begin{axis}... command. Here is the error message for a short document, included below. > tex error > tex error on line 18 in file > /Users/Gavin/Documents/Computer/ConTeXt/Polar Plot Experiments/Untitled.tex: > ! Undefined control sequence > > \pgfplots@environment@polaraxis@ [#1]->\begin > {axis}[#1,data cs=polar,axis > type=polar] > l.18 \startpolaraxis[] > > 16 \startsection[title={Polar Plot}] > 17\starttikzpicture % tikz code > 18 >> \startpolaraxis[] > 19 > \addplot+[mark=none,domain=0:720,samples=600]{sin(4*x)}; > 20\stoppolaraxis > 21\stoptikzpicture > 22 \stopsection > > mtx-context | fatal error: return code: 256 I’d love a fix or an idea for a work around. I’m using ConTeXt Suite (ver: 2020.12.15 10:10 MKIV fmt: 2020.12.16), but I’ve tried it with TeX Live 2020 and the MkIV included with LMTX. Both have the same issue. Thanks! Gavin \usemodule[tikz]% TikZ module for diagrams \usemodule[pgfplots]% PGFPlots module for graphs \pgfplotsset{compat=1.17} % Required to get new any features that could cause compatibility issues. \usepgfplotslibrary[polar] % ConTEXt \starttext \startsection[title={Rectangular Plot}] \starttikzpicture% tikz code \startaxis[] \addplot+[mark=none,domain=0:720,samples=600]{sin(4*x)}; \stopaxis \stoptikzpicture \stopsection \startsection[title={Polar Plot}] \starttikzpicture % tikz code \startpolaraxis[] \addplot+[mark=none,domain=0:720,samples=600]{sin(4*x)}; \stoppolaraxis \stoptikzpicture \stopsection \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 ___
[NTG-context] Problem with \Caps
Good day to everyone. I have a problem that may be very simple to solve, but for which I have not found an answer in the wiki. Until relatively recently I was using the January 2020 version of ConTeXt Standalone, recently I have updated it to the December 18th version, and when I compile a file that I used to compile well, an error is generated because the \Caps macro is not recognized. I can't get the desired effect with \sc, it has to be with \Caps. I have tried to compile it with LMTX but there too is considered that \Caps is an undefined control sequence. -- Joaquín Ataz López Derecho Civil Universidad de Murcia ___ 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] Update for old computers
On 12/19/2020 9:53 PM, Alain Delmotte wrote: When there is an update of lmtx, is it for all versions (Windows, Linux and x32 and x64)? I have an old laptop running Linux (16.04) but it is x86 32bits. I can use it for lmtx, even it this one is not updated as regularly as the Windowsx64 on my main computer. I just want to know when I should update the Linux version. You can just try it as parallel installation. Mojca's farm also breeds the 32 bit binaries. Because luametatex is leaner on memory and less demanding wrt the cpu, if luatex works, luametatex should also work. 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] \dodoubleemptywithset not working in LMTX
On Sun, Dec 20, 2020 at 4:32 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Christoph Reller schrieb am 20.12.2020 um 16:15: > > Hi, > > > > The following MNWE uses \dodoubleemptywithset. In ConTeXt MKIV it > > works as expected, In ConTeXt LMTX an error results. > > It's a bug, the wrong argument is passed as comma list. > > \permanent\tolerant\protected\def\dodoubleemptywithset#1#*[#2]#*[#3]% >{\doifsomething{#2}% > {\def\syst_helpers_with_set_step##1{#1[##1][#3]}% > - \processcommalist[#1]\syst_helpers_with_set_step}} > + \processcommalist[#2]\syst_helpers_with_set_step}} > > \permanent\tolerant\protected\def\dotripleemptywithset#1#*[#2]#*[#3]#*[#4]% >{\doifsomething{#2}% > {\def\syst_helpers_with_set_step##1{#1[##1][#3][#4]}% > - \processcommalist[#1]\syst_helpers_with_set_step}} > + \processcommalist[#2]\syst_helpers_with_set_step}} > > Wolfgang Thank you Wolfgang for the fast response! (And sorry for having provided a faulty MWE.) Cheers, Christoph ___ 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] \dodoubleemptywithset not working in LMTX
Christoph Reller schrieb am 20.12.2020 um 16:15: Hi, The following MNWE uses \dodoubleemptywithset. In ConTeXt MKIV it works as expected, In ConTeXt LMTX an error results. There is a fix below but even then your example won't work because \typeTEX isn't defined. \starttext \unexpanded\def\doMyDefs[#1][#2]{\getparameters[MD#1][#2]} \def\MyDefs{\dodoubleemptywithset\doMyDefs} \MyDefs[A,B][key=val,k=v] \MyDefs[C] \typeTEX{\MDAkey} is \MDAkey. \typeTEX{\MDBkey} is \MDBkey. \typeTEX{\MDAk} is \MDAk. \typeTEX{\MDBk} is \MDBk. \stoptext Possibly, \dodoubleemptywithset is not used anymore in LMTX, in which case it should be removed. Otherwise this could be a bug. Or maybe I use it wrongly? It's a bug, the wrong argument is passed as comma list. \permanent\tolerant\protected\def\dodoubleemptywithset#1#*[#2]#*[#3]% {\doifsomething{#2}% {\def\syst_helpers_with_set_step##1{#1[##1][#3]}% - \processcommalist[#1]\syst_helpers_with_set_step}} + \processcommalist[#2]\syst_helpers_with_set_step}} \permanent\tolerant\protected\def\dotripleemptywithset#1#*[#2]#*[#3]#*[#4]% {\doifsomething{#2}% {\def\syst_helpers_with_set_step##1{#1[##1][#3][#4]}% - \processcommalist[#1]\syst_helpers_with_set_step}} + \processcommalist[#2]\syst_helpers_with_set_step}} 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 ___
[NTG-context] \dodoubleemptywithset not working in LMTX
Hi, The following MNWE uses \dodoubleemptywithset. In ConTeXt MKIV it works as expected, In ConTeXt LMTX an error results. \starttext \unexpanded\def\doMyDefs[#1][#2]{\getparameters[MD#1][#2]} \def\MyDefs{\dodoubleemptywithset\doMyDefs} \MyDefs[A,B][key=val,k=v] \MyDefs[C] \typeTEX{\MDAkey} is \MDAkey. \typeTEX{\MDBkey} is \MDBkey. \typeTEX{\MDAk} is \MDAk. \typeTEX{\MDBk} is \MDBk. \stoptext Possibly, \dodoubleemptywithset is not used anymore in LMTX, in which case it should be removed. Otherwise this could be a bug. Or maybe I use it wrongly? Cheers, Christoph ___ 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] Using ConTeXt to create dictionnaries
Thanks Arthur! Regards, Alain Le 20/12/2020 à 13:34, Arthur Reutenauer a écrit : On Sat, Dec 19, 2020 at 09:55:59PM +0100, Alain Delmotte wrote: One of the presentations was the use of ConTeXt (mkiv?) to create a dictionary. I think for a linguistic edition using a data base and ConTeXt to create the final edition. That was by Jelle Huisman; the conference proceedings were published in TUGboat: http://tug.org/TUGboat/tb30-3/tb96huisman.pdf Best, Arthur ___ 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] Using ConTeXt to create dictionnaries
On Sat, Dec 19, 2020 at 09:55:59PM +0100, Alain Delmotte wrote: >One of the presentations was the use of ConTeXt (mkiv?) to create a >dictionary. I think for a linguistic edition using a data base and ConTeXt >to create the final edition. That was by Jelle Huisman; the conference proceedings were published in TUGboat: http://tug.org/TUGboat/tb30-3/tb96huisman.pdf Best, Arthur ___ 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-20201218 | \usetypescriptfile | typescripts > unknown library
Richard Mahoney schrieb am 20.12.2020 um 03:42: In the recent versions of LMTX I've been having trouble with finding my own typescriptfile -- type-sourceserifpro.tex (attached) This file lives in the working directory of all of the other project files, and is also here: ~/lmtx-20201218/tex/texmf-fonts/tex/context/user/type-sourceserifpro.tex This file is found and executes correctly with: lmtx-20200920 but fails with: lmtx-20201218: fonts > typescripts > unknown library 'sourceserifpro' (Latin Modern is substituted for Adobe's Source Serif Pro.) My setups haven't changed and are: \usetypescriptfile[sourceserifpro] \setupbodyfont[sourceserifpro,11pt] following what's found here: https://wiki.contextgarden.net/Use_the_fonts_you_want Does anyone have any thoughts on this? There has been a change in the naming of typescript file, a simple "type-" prefix isn't anough anymore, you have to change it to "type-imp-" (e.g. type-imp-sourceserif.tex) to be found by ConTeXt. Valid file extensions for a typescript file in LMTX (and MkIV) are "tex", "mkiv" and "mkxl". 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 ___
[NTG-context] mathmatrix and tagging
Hi, Unfortunately, the following MNWE results in an error when compiled with the latest version of ConTeXt LMTX: \setuptagging[state=start] \definemathmatrix[mymatrix][left={\left(},right={\right)}] \starttext \startformula \startmymatrix \NC A \NC B \NR \stopmymatrix \stopformula \stoptext Omitting "\setuptagging[state=start]" removes the error. A fix would be highly appreciated! Cheers, Christoph ___ 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 ___