I was wondering if it is just a question of someones own opionion or is there a clear superior way of using unit-of-measure such as
- pt,
- px,
- cm,
- ex,
- ...
when drawing a picture or setting the tikzstyles? Maybe some way is more "dynamic" or have other advantages?
sp(scaled points) inside TeX, so I guess the answer is "the one you need or the one you like" – Phelype Oleinik Aug 20 '18 at 18:06\documentclass[tikz,border=3.14mm]{standalone} \begin{document} \begin{tikzpicture} \draw (0,0) circle (1); \begin{scope}[xshift=2] \draw (0,0) circle (1); \end{scope} \end{tikzpicture} \end{document}to see that the argument ofxshiftis interpreted as points whereas the circle radii are interpreted ascm. Actually, most of the more low-level stuff used points rather than centimeters. – Aug 20 '18 at 18:17\the\dimexpr1cmyou'll get it converted topt. – Phelype Oleinik Aug 20 '18 at 18:26\pgfmathsetmacro{\mylen}{1cm+2pt+3ex}, you'll get the sum of the three dimensions in points. (Of course,\mylenhere is no length, just a macro, in this case just43.36937, which specifies the distance in points.) – Aug 20 '18 at 18:53