Re: [LaTeX][PGF/TikZ] Undefined control sequence error for PGF intersections.

Liste des GroupesRevenir à ct tex 
Sujet : Re: [LaTeX][PGF/TikZ] Undefined control sequence error for PGF intersections.
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.text.tex
Date : 30. Aug 2024, 23:26:28
Autres entêtes
Organisation : Stefan Ram
Message-ID : <loop-20240830232543@ram.dialup.fu-berlin.de>
References : 1
Annada Behera <segfault@tilde.green> wrote or quoted:
% Mark intersection points and draw dashed lines
\foreach \n in {1,...,\t} {
   \path ({i-\n}) coordinate (i\n); %    <--- Error Here
   \fill[black]  (i\n) circle (2pt);
   \draw[dashed] (i\n) -- (i\n |- 0,0);
   \draw[dashed] (i\n) -- (0,0 -| i\n);
}

  Plain TeX to the rescue! What also works here is:

% Mark intersection points and draw dashed lines
\newcount\n
\n=1
\loop
\path ({i-\the\n}) coordinate (i\the\n);
\fill[black]  (i\the\n) circle (2pt);
\draw[dashed] (i\the\n) -- (i\the\n |- 0,0);
\draw[dashed] (i\the\n) -- (0,0 -| i\the\n);
\advance\n by 1
\ifnum\n<5
\repeat



Date Sujet#  Auteur
30 Aug 24 * [LaTeX][PGF/TikZ] Undefined control sequence error for PGF intersections.8Annada Behera
30 Aug 24 +- Re: [LaTeX][PGF/TikZ] Undefined control sequence error for PGF intersections.1Stefan Ram
31 Aug 24 +- Re: [LaTeX][PGF/TikZ] Undefined control sequence error for PGF intersections.1Stefan Ram
31 Aug 24 +* Re: [LaTeX][PGF/TikZ] Undefined control sequence error for PGF intersections.3Stefan Ram
1 Sep 24 i`* Re: [LaTeX][PGF/TikZ] Undefined control sequence error for PGF intersections.2Annada Behera
1 Sep 24 i `- Re: [LaTeX][PGF/TikZ] Undefined control sequence error for PGF intersections.1Stefan Ram
2 Sep 24 +- Re: [LaTeX][PGF/TikZ] Undefined control sequence error for PGF intersections.1Ulrich D i e z
2 Sep 24 `- Re: [LaTeX][PGF/TikZ] Undefined control sequence error for PGF intersections.1Ulrich D i e z

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal