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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- 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: 10360
- 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: 10360
- 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