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 Commented Apr 10, 2014 at 13:54
  • 7
    Nothing to do with siunitx: standard TeX concept is that spaces are skipped after control words.
    – Joseph Wright
    Commented Apr 10, 2014 at 13:58

1 Answer 1

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}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .