# [Tex/LaTex] How to correctly write number ranges

punctuation

Suppose I would like to write something like: "She has between 1-5 cookies on her at all times."; what is the correct way to write such a number range in TeX?

Is it:

$1$-$5$


Or:

$1\text{-}5$


Or something else entirely? To me, both of the above seem clumsy.

Why not go the SI way ;)

\documentclass{article}
\usepackage[detect-all]{siunitx}
\begin{document}
This is a range from  \numrange{1}{10}.
This is a range from  \numrange[range-phrase = --]{1}{10}.
\end{document}


Here is some more.

\documentclass{article}
\usepackage[detect-none]{siunitx}
\sisetup{range-phrase = \text{--}}
\begin{document}
This is a range from  \numrange{1}{10}.

This is a range from  $\numrange{1}{10}$.

This is a range from  $\SIrange{1}{10}{}$.
\end{document}