4

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.

Masroor
  • 17,842

2 Answers2

5

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}

Result

Heiko Oberdiek
  • 271,626
2

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}

output

Update Damn. I didn't see that Heiko had already posted a similar answer.