2

When using the siunitx package, how can I change the complex number format from 1+2j (or i) to 1+j2? The documentation calls this an "invalid arrangement", but it seems to be common in electrical engineering.

\documentclass{article}
\usepackage{siunitx}
\sisetup{output-complex-root=\ensuremath{j}}
\begin{document}
Default output: \num{1+j2}

Desired output: \(1+\mathrm{j}2\)
\end{document}

enter image description here

2
 \sisetup{output-complex-root=\ensuremath{j},
          complex-root-position=before-number}

enter image description here

  • Thank you! I can't believe I missed it though, as it's right there in the documentation. – erik Sep 3 '17 at 18:25

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.