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
___________________________________________________________________________________