spent half the day to find a solution for this, but since now I didn't. In my thesis I write a lot about image and volume resolutions. Those resolutions are all isometric, so I'd like to shorten the notation to a squared or cubed value. Unfortunately SIunitx does not allow the modifiers
\squared
or \cubed
in the value part of \SI
. I attached this MWE, where I implemented my desired visualization manually in math mode:Code: Select all
\documentclass{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{siunitx}
\DeclareSIUnit\pixel{px}
\begin{document}
This is about my new favourite image resolution of \SI{100x100}{\pixel}.
I would like to write it in a shorter notation, because of its isometric nature:
$100^2\,\text{px}$. How do I implement that with SIunitx?
\end{document}
Thanks in advance
