[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror
rsync: [Receiver] failed to connect to rsync.pragma-ade.nl (213.125.29.165): Connection refused (111) rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.2.7] ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate
On 8/8/2023 8:59 PM, Xavier B. wrote: First of all, thanks, Hans for the answer. I just do want others do [1] and it seems to work. What's my error here? it looks like tikz expects shift={(a,b)} so with a brace but not a macro inside as it does not expand the value; it sees \p and not the meaning of \p which means that you cannot simply use the loop 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate
On 8/8/2023 7:43 PM, Hans Hagen wrote: On 8/8/2023 6:13 PM, Xavier B. wrote: After some time, I could write a minimal example with tikz with strange error: Cannot parse this coordinate. Can someone help me to find the bug? I attach the file and the log. Help very appreciate I run \starttikzpicture \foreach \p in {(6,2)} { \tracingall \startscope[shift={\p}] \draw[color=green!60, thick] (0,0) -- (1,1); \stopscope } \stoptikzpicture looks like some parsing issue, are you sure that you can assign \p to shift this way? puzzle: \startMPcode draw textext ("\externalfigure[mill.png][height=1cm]") ; draw image ( draw for p = (6,0), (7,0), (5,1), (6,1), (7,1), (1,2), (2,2), (3,2), (4,2), (5,2), (7,2), (0,3), (1,3), (3,3), (4,3), (8,3), (0,4), (7,4), (8,4), (0,5), (1,5), (2,5), (6,5), (7,5), (2,6), (3,6), (4,6), (5,6), (6,6), (3,7), (4,7), (5,7), (6,7) : ( (0,0) -- (1,0) -- (1,1) -- (0,1) -- cycle &&& (0,0) -- (1,1) && (0,1) -- (1,0) ) shifted p && endfor nocycle withcolor red ; draw for p = (6,2), (2,3), (5,3), (6,3), (7,3), (1,4), (2,4), (3,4), (4,4), (5,4), (6,4), (3,5), (4,5), (5,5) : ( (0,0) -- (1,0) -- (1,1) -- (0,1) -- cycle &&& (0,0) -- (1,1) ) shifted p && endfor nocycle withcolor green ; ) ysized 4cm withpen pencircle scaled .5pt ; \stopMPcode - 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate
First of all, thanks, Hans for the answer. I just do want others do [1] and it seems to work. What's my error here? Xavier [1] https://tex.stackexchange.com/a/7557 On Tue, 8 Aug 2023 19:43:01 +0200 Hans Hagen ha escrit: > On 8/8/2023 6:13 PM, Xavier B. wrote: > > After some time, I could write a minimal example with tikz with strange > > error: Cannot parse this coordinate. > > > > Can someone help me to find the bug? > > > > I attach the file and the log. > > > > Help very appreciate > > I run > \starttikzpicture > \foreach \p in {(6,2)} > { > \tracingall > \startscope[shift={\p}] > \draw[color=green!60, thick] (0,0) -- (1,1); > \stopscope > } >\stoptikzpicture > > looks like some parsing issue, are you sure that you can assign \p to > shift this way? > > > - >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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate
On 8/8/2023 7:43 PM, Hans Hagen wrote: On 8/8/2023 6:13 PM, Xavier B. wrote: After some time, I could write a minimal example with tikz with strange error: Cannot parse this coordinate. Can someone help me to find the bug? I attach the file and the log. Help very appreciate I run \starttikzpicture \foreach \p in {(6,2)} { \tracingall \startscope[shift={\p}] \draw[color=green!60, thick] (0,0) -- (1,1); \stopscope } \stoptikzpicture looks like some parsing issue, are you sure that you can assign \p to shift this way? ok, i found it but i'm not going to make it custom to fix tikz you need to use this: \normalexpanded{\noexpand\startscope[shift={\p}]} instead of \startscope[shift={\p}] this can be automated with (maybe we need a m-fixz module for that) % fix \appendtoks \let\normaltikzstartscope\startscope \def\startscope[#1]% {\normalexpanded {\noexpand\normaltikzstartscope[#1]}}% \to \everyinsidetikzpicture % end of fix but for that you need to use the attached module so that we hook it in aftert tikz sets itself up the fix you can put in your style or in a cont-loc.mkxl in a local tree 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 - %D \module %D [ file=m-tikz, %Dversion=2021.07.12, %D title=\CONTEXT\ Extra Modules, %D subtitle=TIKZ support, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D A fixed variant of the t-tikz module distributed with tikz. For practical reasons %D per 2021 we split the module for \MKIV\ and \LMTX. (Maybe some day I'll optimize %D TIKZ a bit.) %D %D All these t-* modules in the tikz distribution make no sense as we can just load %D them here which is way cleaner. There is also some mkii filename mapping going on %D that is not needed on todays systems (windows has no 8.3 limitation and on unix %D tds finally adopted a case insensitive approach.) %D Just in case someone does a hard input ... \ifdefined\pgfdefined\endinput \fi \ifdefined\pgfcoredefined\endinput \fi %D ... but normally we end up here: \startmodule[tikz] \ifdefined\pdflastxpos \else \unprotect \frozen\overloaded\protected\def\pdflastxpos{\numexpr\clf_lastxpos\relax} \frozen\overloaded\protected\def\pdflastypos{\numexpr\clf_lastypos\relax} \protect \fi \newcatcodetable \tikzcatcodes \startcatcodetable \tikzcatcodes \catcode\tabasciicode \spacecatcode \catcode\endoflineasciicode \endoflinecatcode \catcode\formfeedasciicode\endoflinecatcode \catcode\spaceasciicode \spacecatcode \catcode\endoffileasciicode \ignorecatcode \catcode\circumflexasciicode \superscriptcatcode \catcode\underscoreasciicode \subscriptcatcode \catcode\ampersandasciicode \alignmentcatcode \catcode\backslashasciicode \escapecatcode \catcode\leftbraceasciicode \begingroupcatcode \catcode\rightbraceasciicode \endgroupcatcode \catcode\dollarasciicode \mathshiftcatcode \catcode\hashasciicode\parametercatcode \catcode\commentasciicode \commentcatcode \catcode\atsignasciicode \lettercatcode \catcode\exclamationmarkasciicode \othercatcode \catcode\questionmarkasciicode\lettercatcode \catcode\tildeasciicode \activecatcode \catcode\barasciicode \othercatcode \stopcatcodetable \permanent\protected\def\starttikzinput {\pushoverloadmode \pushcatcodetable \setcatcodetable\tikzcatcodes \pushmacro\meaning \let\meaning\meaningless \autoparagraphmode\zerocount} \permanent\protected\def\stoptikzinput {\autoparagraphmode\plusone \popcatcodetable \popmacro\meaning \popoverloadmode} \permanent\protected\def\tikzinputfile#1% {\starttikzinput \input{#1}\relax \stoptikzinput} \permanent\protected\def\tikzerrormessage#1#2#3% {\writestatus{#1}{#2}} % For now we need this but we need to educate the user to wrap settings in the % wrappers. So some day the next line will go. I need to check what commands are % possible outside a picture. \overloadmode\zerocount \newtoks\everytikzpicture \newtoks\everyinsidetikzpicture % \appendtoks % \resetcharacterspacing % \to \everytikzpicture \permanent\protected\def\starttikzsettings {\pushoverloadmode \pushmacro\meaning \let\meaning\meaningless \autoparagraphmode\zerocount}
[NTG-context] Re: ideas for ConTeXt stickers?
> On 7 Aug 2023, at 18:13, Henning Hraban Ramm wrote: > > while it’s too late for this year’s conferences, I’d like to have some nice > ConTeXt, MetaPost or general TeX stickers for next year’s. > Do you have ideas? Here's my suggestion for a sticker that we can't use. ;-) Regards, — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate
On 8/8/2023 6:13 PM, Xavier B. wrote: After some time, I could write a minimal example with tikz with strange error: Cannot parse this coordinate. Can someone help me to find the bug? I attach the file and the log. Help very appreciate I run \starttikzpicture \foreach \p in {(6,2)} { \tracingall \startscope[shift={\p}] \draw[color=green!60, thick] (0,0) -- (1,1); \stopscope } \stoptikzpicture looks like some parsing issue, are you sure that you can assign \p to shift this way? - 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Parallel columns using start/stop setups
Two concurrent situations can happen, which I'd like to typeset as two parallel columns while keeping the overall page layout (i.e., headers, footers, margins, and such). current version: 2023.07.18 22:07 I'd like to find a way to set up start/stop environments, if possible, to come up with a general-purpose solution (i.e., the prose itself is not changed). Here are a few examples. In the first, a "concurrent" environment is created with two "timelines": % SOT \definestartstop[concurrent][ before={\startcolumns[n=2, align={verytolerant,stretch}, separator=rule]}, after=\stopcolumns, ] \definestartstop[timelinea][ after=\column, ] \definestartstop[timelineb][] \starttext \startconcurrent \starttimelinea \dorecurse{5}{\input ward} \stoptimelinea \starttimelineb \dorecurse{5}{\input knuth} \stoptimelineb \stopconcurrent \stoptext % EOT The ward and knuth texts end up in the same column because one is shorter than the other. Here's another attempt: % SOT \defineparagraphs[concurrent][n=2] \definestartstop[timelinea][ before=\concurrent, after=\concurrent, ] \definestartstop[timelineb][ before=\concurrent, ] \starttext \startconcurrent \starttimelinea \dorecurse{5}{\input ward} \stoptimelinea \starttimelineb \dorecurse{5}{\input knuth} \stoptimelineb \stopconcurrent \stoptext % EOT This loses much of the input text. Can this be accomplished using LMTX and what would be the best approach? Would this setupparagraphs, definecolumnset, synchronizestreams, or possibly incomplete/experimental functionality? Thank you! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Triaging tikz error: Cannot parse this coordinate
After some time, I could write a minimal example with tikz with strange error: Cannot parse this coordinate. Can someone help me to find the bug? I attach the file and the log. Help very appreciate I run $ context --version mtx-context | ConTeXt Process Management 1.04 mtx-context | mtx-context | main context file: /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2023.03.10 12:15 mtx-context | main context file: /usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2023.03.10 12:15 via texlive (arch) Thanks, Xavier open source > level 1, order 1, name '/usr/share/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv' system > system > ConTeXt ver: 2023.03.10 12:15 MKIV fmt: 2023.6.6 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name '/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' system > beware: some patches loaded from cont-new.mkiv close source> level 2, order 2, name '/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'dev', input './dev', result 'dev' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name '/home/xan/zync/docencia/candoc8/apunts-espa/dev.tex' modules > 'pgfrcs' is loaded open source > level 3, order 4, name '/usr/share/texmf-dist/tex/context/third/pgf/utilities/t-pgfrcs.tex' loading > ConTeXt User Module / pgfrcs open source > level 4, order 5, name '/usr/share/texmf-dist/tex/context/third/pgf/utilities/t-pgfmod.tex' loading > ConTeXt User Module / pgfmodules close source> level 4, order 5, name '/usr/share/texmf-dist/tex/context/third/pgf/utilities/t-pgfmod.tex' open source > level 4, order 6, name '/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex' close source> level 4, order 6, name '/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex' open source > level 4, order 7, name '/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-context.def' close source> level 4, order 7, name '/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-context.def' open source > level 4, order 8, name '/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex' open source > level 5, order 9, name '/usr/share/texmf-dist/tex/generic/pgf/pgf.revision.tex' close source> level 5, order 9, name '/usr/share/texmf-dist/tex/generic/pgf/pgf.revision.tex' close source> level 4, order 9, name '/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex' close source> level 3, order 9, name '/usr/share/texmf-dist/tex/context/third/pgf/utilities/t-pgfrcs.tex' modules > 'pgfmat' is loaded open source > level 3, order 10, name '/usr/share/texmf-dist/tex/context/third/pgf/math/t-pgfmat.tex' loading > ConTeXt User Module / pgfmath open source > level 4, order 11, name '/usr/share/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex' open source > level 5, order 12, name '/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex' open source > level 6, order 13, name '/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.code.tex' close source> level 6, order 13, name '/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.code.tex' close source> level 5, order 13, name '/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex' open source > level 5, order 14, name '/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex' close source> level 5, order 14, name '/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex' open source > level 5, order 15, name '/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex' close source> level 5, order 15, name '/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex' open source > level 5, order 16, name '/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex' close source> level 5, order 16, name '/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex' open source > level 5, order 17, name '/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex' close source> level 5, order 17, name '/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex' open source > level 5, order 18, name '/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex' close source> level 5, order 18, name '/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex' open source > level 5, order 19, name '/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.tex' close source> level 5, order 19, name
[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror
rsync: [Receiver] failed to connect to rsync.pragma-ade.nl (213.125.29.165): Connection timed out (110) rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.2.7] ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: ideas for ConTeXt stickers?
On 8/8/2023 11:19 AM, Otared Kavian wrote: On 7 Aug 2023, at 20:25, Henning Hraban Ramm wrote: […] The TeX community, mostly consisting of LaTeX users, is joking about LaTeX vs. latex all the time. At least the part of the community that meets at open source conferences and hacker camps. only by texies who don't know that they are pronounced differently and i bet the publisher of the latex companion preferred a rather boring cover over a more tantalizing one but it would have made a nice experiment i hope it's not the only joke they make about tex as there is plenty to joke about (the) tex (community) for years we used the excellent yandy(tex) dvipsone postscript backend and pretty good dviwindo viewer (that had hyperlink support, which is why we had pdf hyperlink working in a day after acrobat 1 showed up) but googling for yandy was not helpful for their marketing i guess Indeed, those old enough, would remember that the book « The Joy of TeX, a Gourmet Guide to Typesetting with the AMSTeX Macro Package » by Michael Spivak was written as a parody of « The Joy of Sex: A Gourmet Guide to Lovemaking » appeared in 1972… So, did that became a best seller then? It could explain why there are some folk always complaining about the context manuals. 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: ideas for ConTeXt stickers?
> On 7 Aug 2023, at 20:25, Henning Hraban Ramm wrote: > […] > The TeX community, mostly consisting of LaTeX users, is joking about LaTeX > vs. latex all the time. At least the part of the community that meets at open > source conferences and hacker camps. > Indeed, those old enough, would remember that the book « The Joy of TeX, a Gourmet Guide to Typesetting with the AMSTeX Macro Package » by Michael Spivak was written as a parody of « The Joy of Sex: A Gourmet Guide to Lovemaking » appeared in 1972… ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___