9

How can I write an exponent in a \SI command like this:

\SI{2^3}{m}

The reason why I want to write 2^3 instead of 8 is that I have a formula above saying b^3 and I want to show the calculation steps very detailed.

19
\documentclass{article}
\usepackage{siunitx}

\begin{document}
\SI[parse-numbers=false]{2^3}{m}
\end{document}

enter image description here

  • 3
    +1. :-) Two additional possibilities: \SI[parse-numbers=false]{2\cubed}{m} and \SI[parse-numbers=false]{2\tothe3}{m}. – Mico Dec 11 '19 at 21:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.