Menu

#366 PGF Math Error: Unknown function using `\heightof` and `\depthof`

v1.0 (example)
closed-invalid
nobody
None
5
2018-12-21
2015-08-26
Daniel Moos
No

In 3.0.0 I used the following code to set the text height and text depth of every node:

every node/.style={text height=\heightof{A}, text depth=\depthof{g}}

After an update to 3.0.1 this doesn't work anymore and I receive the following errors for every node:

Latex Error: ./main.tex:347 Undefined control sequence.
Latex Error: ./main.tex:347 Package PGF Math Error: Unknown function 'A' (in '{A}').
Latex Error: ./main.tex:347 Undefined control sequence.
Latex Error: ./main.tex:347 Package PGF Math Error: Unknown function 'g' (in '{g}').

Is this a new feature of 3.0.1? And does a better way exist to give all nodes the same text height and depth?

Discussion

  • Martin Melik-Merkumians

    I have the same problem. Is there a fix for it?

     
  • Stefan Pinnow

    Stefan Pinnow - 2018-12-21
    • status: open --> closed-invalid
     
  • Stefan Pinnow

    Stefan Pinnow - 2018-12-21

    These keys were replaced by width("..."), height("...") and depth("..."). See section 92.3.8 "Miscellaneous functions". See also e.g. https://tex.stackexchange.com/q/353896/95441.

     
Monday.com Logo