# Proper way to write down a range with units [closed]

The task is to document that the r-coordinate lasts from 10 to 100 m.

What would be a good way to write this down? I thought about the following examples

r = 10 to 100 [m]
r = [10 - 100 [m]]
r = 10 - 100 [m]
r = 10 [m] - 100 [m]
r = [10 - 100] [m]


Any further/better ideas? I could not really find any standard or something which recommends something. I am aware of the sunits siunitx ... but it does not use square brackets. Am I just wrong here to use it?

PS: Is there a way to write tex using mathjax? I would assume so.

-

## closed as off-topic by ChrisS, Jesse, Jubobs, Bernard, MasroorJun 14 '14 at 11:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – ChrisS, Jesse, Jubobs, Bernard, Masroor
If this question can be reworded to fit the rules in the help center, please edit the question.

mathjax isn't enabled on this site –  David Carlisle Jun 14 '14 at 11:15
oh I see you write a "full" tex document. Thank you –  Daniel Wehner Jun 14 '14 at 11:18

Some variations with package siunitx:

\documentclass{article}
\usepackage{siunitx}

\begin{document}
\SIrange{10}{100}{\metre}

\SIrange[range-units = brackets]{10}{100}{\metre}

\SIrange[range-units = brackets, range-phrase = --]{10}{100}{\metre}

\SIrange[range-phrase = --]{10}{100}{\metre}
\end{document}


-

The siunitx package is the best LaTeX package for typesetting physical quantities:

\documentclass{article}

\usepackage{siunitx}

\begin{document}

\SIrange{10}{100}{\m}

\SIrange[range-units = brackets]{10}{100}{\m}

\SIrange[range-phrase = --]{10}{100}{\m}

\end{document}