5

When using siunitx to write percentages, I run into a problem with missing spaces. Why does that happen? And what would be the best practice for writing percentages in text?

\documentclass{article}

\usepackage{siunitx}

\begin{document}

Siunix will eat the space after \SI{100}\percent as you can see here.
Using 0 \% of siunitx the space is there.

\end{document}
2
  • 3
    Try \SI{100}{\percent} instead Apr 10 '14 at 13:54
  • 7
    Nothing to do with siunitx: standard TeX concept is that spaces are skipped after control words.
    – Joseph Wright
    Apr 10 '14 at 13:58
7

If you use it a \SI{100}{\percent} as then things work just fine:

enter image description here

Using {} to delimit parameters is the preferred LaTeX method.

Code:

\documentclass{article}

\usepackage{siunitx}

\begin{document}

\verb|Siunitx| will eat the space after \SI{100}{\percent} as you can see here.
Using 0 \% of \verb|siunitx| the space is there.

\end{document}

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.