Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question

closed as off-topic by ChrisS, Jesse, Jubobs, Bernard, Masroor Jun 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

2 Answers 2

up vote 3 down vote accepted

Some variations with package siunitx:



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

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

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


share|improve this answer

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





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

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



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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.