# \SIrange[tophrase=dash] fails to render an en-dash

When using \SIrange[tophrase=dash] to specify a range of numbers with units, the range phrase is literally specified as dash.

The following MWE yields 10 mdash20 m as an output.

MWE:

\documentclass{article}

\usepackage{siunitx}

\begin{document}

\SIrange[tophrase=dash]{10}{20}{\metre}

\end{document}


Whats going on here? Where should I be looking?

-

Use it with tophrase={--}. But as the documentation says it can be confused with a subtraction operation so better to use to instead to specify a range:

\documentclass{article}

\usepackage{siunitx}

My apologies for taking so long to reply. Your answer works well. Thanks! What I still don't get is why the method suggested in the siunitx documentation fails to work. –  Ricardo Mar 9 '12 at 4:38