Graphics, Figures & Tablesintersection

Information and discussion about graphics, figures & tables in LaTeX documents.
kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm

intersection

Post by kent »

I fixed the problem with the use of the following construct

\csname pgfutil@ifundefined\endcsname{pgf@sh@ns@intersection-1}{no marking necessary since there is no intersection points}{do the marking of the intersection points}

thanks for a posting on https://tex.stackexchange.com .

Kent

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10328
Joined: Mon Mar 10, 2008 9:44 pm

intersection

Post by Stefan Kottwitz »

Hi Kent,

thank you for the information! I tested with the standard LaTeX \@ifundefined but did not finish.

Stefan
LaTeX.org admin
kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm

intersection

Post by kent »

A final comment from my side:
A more straightforward way of doing this may be just to
put \def\t{0} before PGF determines the intersections between the paths (if any).
Then \ifthenelse{\t=0}{}{mark the \t intersection points} will do the trick.

Kent
kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm

intersection

Post by kent »

Another related issue, see the example 96.5.4, page 981 in the PGF 3.0 manual illustrating the use of \pgfpointintersectionoflines.

How can I use this to get access the actual intersection point?
\coordinate (X) at (\pgfpointintersectionoflines); does not work.

Kent
Post Reply