-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error of foreach and node commands #1313
Labels
Comments
This is actually well-known. See, for example: https://tex.stackexchange.com/a/75152/47927 |
Would be fixed by #1304 too? |
2 tasks
loopspace
added a commit
to loopspace/pgf
that referenced
this issue
Apr 12, 2024
This commit adds more information to what TikZ remembers between foreach iterations, and does so in a way that makes it easier to add other macros and dimensions to the list of things it remembers, both at the code level and via keys. Fixes pgf-tikz#356, pgf-tikz#1047, pgf-tikz#1303, pgf-tikz#1313 Signed-off-by: Andrew Stacey <[email protected]>
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Brief outline of the bug
I found that
foreach
command does not work well for\node
.I wrote the code
\draw (P1) foreach \n in {2,3}{ -- (P\i) };
to draw lines connecting nodes P1, P2, P3, consecutively. But, this code draw lines connecting P1 and P2 and connecting P1 and P3.If you change
\node
part to\coordinate
, thenforeach
command works well.Minimal working example (MWE)
The text was updated successfully, but these errors were encountered: