Graphics, Figures & Tables ⇒ coordinates
coordinates
to the specific x and y coordinates of (A). I do not have the angle package available in PGF 3.0 or tkz-2d etc..
Kent Holing
NORWAY
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: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
coordinates
welcome to the forum!
You could use
test
Code: Select all
\path (A);
\pgfgetlastxy{\xcoord}{\ycoord}
Stefan
Re: coordinates
My PGF 2.0 don't find the command \pgfgetlastxy I am afraid.
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Re: coordinates
Stefan
Re: coordinates
Can anybody else out there have a solution of my problem using PGF 2.0?
If so, I would be delighted to hear about it.
Regards,
Kent
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
coordinates
Code: Select all
\makeatletter
\newcommand{\getcoords}[3]{%
\tikz@scan@one@point\pgfutil@firstofone(#1)\relax
\edef#2{\the\pgf@x}%
\edef#3{\the\pgf@y}%
}
\makeatother
tikzpicture
environment such as:Code: Select all
\getcoords{A}{\xcoord}{\xcoord}
% just print the x and y values:
\node {\xcoord,\xcoord};
Re: coordinates
Kent