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