19

I want to use a Greek letter as the variable with the unit, and I am using siunitx to do it. The code below cannot be successfully compiled in pdflatex

\documentclass{article}
\usepackage{siunitx}
\begin{document}
\SI{\alpha}{\radian}
\end{document}

How can I typeset the Greek letter in siunitx?

1 Answer 1

24

You need to disable the parser for anything that is not a number:

\documentclass{article}
\usepackage{siunitx}
\begin{document}
\SI[parse-numbers = false]{\alpha}{\radian}
\end{document}
1
  • 4
    Thanks for your answer :-) That solves it. Also thanks for writing the siunitx package, it's a very useful package~
    – Ice0cean
    Mar 15, 2017 at 10:27

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.