TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In a table, I am listing several coordinates. I want to use a number format such as this

W 95°13'14''

W 95°03'00''


I am using the \ang{} environment of the siunitx package.

However, there seems to be no control over the number format when e.g. W 94°02'09'', then W\ang{94;02;09} produces W94°2'9'' i.e. eliminates automatically the zeros in the decade positions.

Is there a way to define a number format?

share|improve this question
up vote 7 down vote accepted

You have to use the right option, either locally:


or globally:


enter image description here

share|improve this answer
Or doing \newcommand{\latitude}[2]{#1\ang[minimum-integer-digits=2]{#2}}, then typing \latitude{W}{94;2;9} – egreg Feb 5 '13 at 14:47
(just btw: West and East prefixes refer to the longitude and N and S to latitude) – Paglia Orba Feb 5 '13 at 15:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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