-
Notifications
You must be signed in to change notification settings - Fork 108
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
Foreach operation's syntax is incorrectly documented #1039
Labels
Comments
I think pgf/doc/generic/pgf/text-en/pgfmanual-en-pgffor.tex Lines 35 to 38 in 9ab9df7
|
muzimuzhi
added a commit
to muzimuzhi/pgf
that referenced
this issue
Aug 10, 2021
muzimuzhi
added a commit
to muzimuzhi/pgf
that referenced
this issue
Aug 10, 2021
muzimuzhi
added a commit
to muzimuzhi/pgf
that referenced
this issue
Aug 10, 2021
Signed-off-by: muzimuzhi <[email protected]>
muzimuzhi
added a commit
to muzimuzhi/pgf
that referenced
this issue
Aug 10, 2021
Signed-off-by: muzimuzhi <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: 3.1.9a
On page 167, the document reads
which suggest that the syntax is
\path (0,0) foreach \x in { -- (\x, \x^2) };
while in reality you have to specify a list
\path (0,0) foreach \x in {1, 2, 3, 4, 5} { -- (\x, \x^2) };
For comparison, foreach statement's syntax is documented on page 1001 as follows
which brings up a question:
Isn't ⟨list⟩ always enclosed by curly braces?
So we should have
\marg{list}
in both tikz-paths.tex#L1123 and pgffor.tex#L23.(I am not pull-requesting this because I don't know what should I use.
\marg{list}
or\meta{list}
?)The text was updated successfully, but these errors were encountered: