I need to use the command \dimexpr
, but in my machine no have an package for it. My specific objective is write this string:
\newcommand{\cancelraizq}\[1]{
\sbox0{$ \displaystyle \sqrt{\vphantom{#1^{^\cancel{2}}}}$}
\cancel{\phantom{\usebox0}\hspace{0.5em}}
\hspace{\dimexpr(-\wd0-0.5em)}
\sqrt{#1^{\cancel{2}}}}
I have the usual packages for example \usepackage{amsmath}
, \usepackage{tikz, tkz-euclide}
,etc, but for \dimexpr
I don't know which one to use.
\dimeval
command, if needed (see the LaTeX user manual, section 5 Expandable floating point (and other) calculations).[1]
is clearly wrong, remove it. It should be\newcommand{\cancelraizq}[1]{
...