From: Hans Hagen <j.hagen@xs4all.nl>
To: "Xavier B." <somenxavier@posteo.net>,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Triaging tikz error: Cannot parse this coordinate
Date: Tue, 8 Aug 2023 21:13:42 +0200 [thread overview]
Message-ID: <90b6d7bc-4804-27a5-1b52-76d7a9b53237@xs4all.nl> (raw)
In-Reply-To: <bb37e773-8053-dcfc-b789-1e0abbd3675f@xs4all.nl>
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
___________________________________________________________________________________
prev parent reply other threads:[~2023-08-08 19:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-08 16:13 [NTG-context] " Xavier B.
2023-08-08 17:43 ` [NTG-context] " Hans Hagen
2023-08-08 18:57 ` Hans Hagen
2023-08-09 8:02 ` Henri Menke via ntg-context
2023-08-08 18:59 ` Xavier B.
2023-08-08 19:52 ` Hans Hagen via ntg-context
[not found] ` <20230809130016.a41b4dab1957f7ca865714f1@posteo.net>
2023-08-09 11:41 ` Hans Hagen via ntg-context
2023-08-08 19:13 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=90b6d7bc-4804-27a5-1b52-76d7a9b53237@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
--cc=somenxavier@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).