In this minimal example
\documentclass{scrartcl}
\usepackage{calc}
\usepackage{tikz}
\newlength{\TestLength}
\begin{document}
\setlength{\TestLength}{\widthof{\tikz \node {bla};}}
\showthe\TestLength% MEASUREMENT 1
\begin{tikzpicture}
\setlength{\TestLength}{\widthof{\node {bla};}}
\showthe\TestLength% MEASUREMENT 2
\end{tikzpicture}
\end{document}
\TestLength
is calculated correctly in the first time (MEASUREMENT 1), but too small in the second time (MEASUREMENT 2). I'd like to calculate it within a tikzpicture environment, so that I'm fixed to the second way of calculation. is there any workaround?
Thanks a lot for any kind of comments or ideas.