Sujet : Re: [LaTeX][PGF/TikZ] Undefined control sequence error for PGF intersections.
De : segfault (at) *nospam* tilde.green (Annada Behera)
Groupes : comp.text.texDate : 01. Sep 2024, 08:52:58
Autres entêtes
Organisation : tilde.green
Message-ID : <3e9a663629f7c14eb87d890bc0adf87218a28967.camel@tilde.green>
References : 1 2
User-Agent : Evolution 3.52.2
On Sat, 2024-08-31 at 18:14 +0000, Stefan Ram wrote:
Annada Behera <segfault@tilde.green> wrote or quoted:
% Mark intersection points and draw dashed lines
\foreach \n in {1,...,\t} {
. . .
What is undefined?
Looks like "\t" is on the fritz or not pulling its weight,
since the loop seems to be cruising when we swap "\t" for "4":
\foreach \n in {1,...,4} {
. That error message was probably about as clear as LA smog.
In this line, \t is definitely "pulling its weight,"
\fill[name intersections={of=line and sine, name=i, total=\t}, black]
\foreach \s in {1,...,\t} {(i-\s) circle (2pt)};
It's just looks like \t's scope is limited to the commands where it is defined.
Don't know whether this is expected behavior or a bug.