Deutsch   English   Français   Italiano  
<semicolon-20240901155334@ram.dialup.fu-berlin.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!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: 1 Sep 2024 15:13:46 GMT
Organization: Stefan Ram
Lines: 34
Expires: 1 Jul 2025 11:59:58 GMT
Message-ID: <semicolon-20240901155334@ram.dialup.fu-berlin.de>
References: <10c8b515e70ecda9ad95fc1529ff3b102da812e4.camel@tilde.green> <t-20240831191358@ram.dialup.fu-berlin.de> <3e9a663629f7c14eb87d890bc0adf87218a28967.camel@tilde.green>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de pYq3+l+P/4Z4P7/vIQMBQgyNEIBZDX368S5BiP15MxM420
Cancel-Lock: sha1:09ID1zatgV0gHh01wPan5q/H5Lo= sha256:D/ijFAaOe/LTGW97RfoZj6J6gisZWEgDuSpSN1LuwD0=
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: 2919

Annada Behera <segfault@tilde.green> wrote or quoted:
>Don't know whether this is expected behavior or a bug.

  The TikZ & PGF manual (for Version 3.1.5b) has got this entry
  "/tikz/intersection/total=<macro>" in the "13.3.2 Intersections
  of Arbitrary Paths" section. It's got this example where
  the "\foreach \s in {1,...,\t}" is all indented and stuff.

|\usetikzlibrary {intersections}
|\begin{tikzpicture}
|  \clip (-2,-2) rectangle (2,2);
|  \draw [name path=curve 1] (-2,-1) .. controls (8,-1) and (-8,1) .. (2,1);
|  \draw [name path=curve 2] (-1,-2) .. controls (-1,8) and (1,-8) .. (1,2);
|
|  \fill [name intersections={of=curve 1 and curve 2, name=i, total=\t}]
|        [red, opacity=0.5, every node/.style={above left, black, opacity=1}]
|        \foreach \s in {1,...,\t}{(i-\s) circle (2pt) node {\footnotesize\s}};
|\end{tikzpicture}
|
from "TikZ & PGF" "Manual for Version 3.1.5b".

  If you drop a semicolon in front of the "\foreach" (right after
  "opacity=1}]"), it's going to wig out on you with that error message.

  Well, "\fill" is shorthand for "\path[fill]", and the 411 on
  "\path" syntax is dropped in "14 Syntax for Path Specifications",
  which lays it down like this:

|\path<specification>;

  . So, there's that semicolon hanging ten, but I'm not stoked on where
  its implications for the scope of "name intersections" is posted up.