I am searching for a macro which prints the current x-unit-length. For instance the following document:
\documentclass[border=2pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[x=2cm,y=3cm]
\node at (0,0) {};
\end{tikzpicture}
\end{document}
Now I want a macro which can return the '2cm' of 'x' or '3cm' of y.



\path let \p{x}=(1,0), \n{xlencm}={scalar(\x{x}/1cm)}withoutveclen? – Kpym Apr 04 '18 at 13:51x(andy) can be a length or a coordinate. – Paul Gaborit Apr 04 '18 at 13:54\p{x}=(1,0)soveclen(\x{x},\y{x})and\x{x}are the same, no ? – Kpym Apr 04 '18 at 14:30x={(1cm,1cm)}for example... – Paul Gaborit Apr 04 '18 at 14:41pt. I provided a variant with an explicitpt. – Paul Gaborit Apr 04 '18 at 14:46