pgf-tikz / pgf

A Portable Graphic Format for TeX
https://pgf-tikz.github.io/
1.08k stars 104 forks source link

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

Open loopspace opened 2 months ago

loopspace commented 2 months ago

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 https://github.com/pgf-tikz/pgf/pull/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: