Skip to content

Fix foreach in TikZ to remember more stuff between iterations#1316

Open
loopspace wants to merge 3 commits into
pgf-tikz:masterfrom
loopspace:fixforeachclean
Open

Fix foreach in TikZ to remember more stuff between iterations#1316
loopspace wants to merge 3 commits into
pgf-tikz:masterfrom
loopspace:fixforeachclean

Conversation

@loopspace

Copy link
Copy Markdown
Contributor

Motivation for this change

Fixes #356, #1047, #1303, #1313 by remembering more information between iterations of a foreach loop on a path, in particular the last node. Also provides a more flexible interface to remember more macros & dimensions at both the code level and the user level (the latter via pgfkeys).

See #1304 for a previous version of this pull request where something went wrong with signing the commits.

Checklist

Please signoff your commits to explicitly state your agreement to the Developer Certificate of Origin. If that is not possible you may check the boxes below instead:

loopspace and others added 3 commits January 8, 2024 21:42
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 <loopspace@mathforge.org>
@cfr42

cfr42 commented Mar 10, 2026

Copy link
Copy Markdown

@hmenke

hmenke commented Jun 16, 2026

Copy link
Copy Markdown
Member

On 2026-06-15 a more comprehensive testsuite was introduced for PGF/TikZ. This tests all new contributions against the examples extracted from the manual and checks whether anything has changed to avoid regressions. Since this pull request was opened before that, these tests were not run automatically. I have run l3build check on the result of the merge of this pull request branch into master. The result can be found below.

Tip

Your pull request might have failed some tests. This does not mean that your contribution will be rejected. In fact, depending on the changes you propose, it might even be expected that some tests fail, however, this needs to be evaluated carefully.

All tests passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Drawing paths that start at a node using \foreach

3 participants