Deutsch English Français Italiano |
<loop-20240830131903@ram.dialup.fu-berlin.de> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail From: ram@zedat.fu-berlin.de (Stefan Ram) Newsgroups: comp.text.tex Subject: Re: [LaTeX][PGF/TikZ] Undefined control sequence error for PGF intersections. Date: 30 Aug 2024 12:20:12 GMT Organization: Stefan Ram Lines: 69 Expires: 1 Jul 2025 11:59:58 GMT Message-ID: <loop-20240830131903@ram.dialup.fu-berlin.de> References: <10c8b515e70ecda9ad95fc1529ff3b102da812e4.camel@tilde.green> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de Mi9fEbTS/YBp3A3ZoFHg/gebUfTqOiw3z0W9tGXoJYYXG/ Cancel-Lock: sha1:JazfcuYkIWpeCvZZ8rWzyEZuC8k= sha256:Mdw10bTvmNr/3sW7snGYbJm7eu2dVobEvkUuUZNscOg= X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the Web, to change URIs of this article into links, and to transfer the body without this notice, but quotations of parts in other Usenet posts are allowed. X-No-Archive: Yes Archive: no X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some services to mirror the article in the web. But the article may be kept on a Usenet archive server with only NNTP access. X-No-Html: yes Content-Language: en-US Bytes: 5287 Annada Behera <segfault@tilde.green> wrote or quoted: > \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); > } I'm about as familiar with LaTeX as I am with surfing Pipeline - which is to say, not at all. And this tikz thing? Totally off my radar. But after messing around like a bear in a honey factory, I stumbled onto something. Turns out, if you unravel that last loop and use the following code, it's all gravy here. \path ({i-1}) coordinate (i1); \fill[black] (i1) circle (2pt); \draw[dashed] (i1) -- (i1 |- 0,0); \draw[dashed] (i1) -- (0,0 -| i1); \path ({i-2}) coordinate (i2); \fill[black] (i2) circle (2pt); \draw[dashed] (i2) -- (i2 |- 0,0); \draw[dashed] (i2) -- (0,0 -| i2); \path ({i-3}) coordinate (i3); \fill[black] (i3) circle (2pt); \draw[dashed] (i3) -- (i3 |- 0,0); \draw[dashed] (i3) -- (0,0 -| i3); \path ({i-4}) coordinate (i4); \fill[black] (i4) circle (2pt); \draw[dashed] (i4) -- (i4 |- 0,0); \draw[dashed] (i4) -- (0,0 -| i4); | /H H | :$ .;XM | =$ +%$@= | =$ .+$//H: | =$ .+$+ +H= | =$ ,+%+ XH | =$ ,+$/ /H$ | =$ .+%; /XX= | =$ .--,+HX$/+$X$: | =$ ;$X$%X@#M+++/: | =$ %HX/.-+%;- | =$ :HX, ,+%/ ;: . | =$ $H: -%%; ;= | =$ HX -%%; ;= | =$ .H$-%%; ;= | :$ HX+$; ;= | %@H+: ;= |;/::::::::::::::::;:::::::::::::;:-X#@+:=;:::::::::::%+:::::::::::::::; |X/---------------=%------------,,/X#M --------------------------------- |$, / :%$M;/ |$- / ;%%%H:-$ |$- / ;%%-/H= :$ |$- / ;%%- $H, =$ |$- + ;%%- =HX =$ |$- .+ ;%+, ,XH/ =$ |$- ;;%+=-+XX% =$ |$- .;%%%$@#@X%$$%: =$ |$- :XX$;:%$%: =$ |$- -XH/ ;%+, =$ |$- +H+ /$+, =$ |$- XH +%+, =$ |$- H$ /$+, =$ |$-.H$/$+. =$ |+,@H%+. =$ |@#H;. :$ |##;/+++++++++++++++++++++++++++++++X@++++++++++++++++++++++++++++++++++