I'm trying use \heightof
in my document but XeLaTeX throws an error. Both minimal code end errors are below. Ubuntu 20.04 with latest updates
\documentclass[14pt,a4paper]{extarticle}
\usepackage{calc}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[minimum height=\heightof{A}]{A};
\end{tikzpicture}
\end{document}
ABD: EveryShipout initializing macros
! Undefined control sequence.
\pgfmath@dimen@ ...men@@ #1=0.0pt\relax \pgfmath@
l.6 \node[minimum height=\heightof{A}]{A};
UPD. The height of bold text is height("{\textbf{A}}")
.
\heightof
works only in\setlength
or similar commands... try\documentclass{article} \usepackage{calc} \begin{document} \heightof{A} \end{document}
and get a surprise ;-)... – Rmano Jan 23 at 11:13