3

I am trying to have a group separator between 3-digits groups. However the package savetrees removes the group separator. Here's my MWE:

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{siunitx}
\usepackage[subtle]{savetrees}

\begin{document}
\num{100000}
\end{document}

How can I have an output like this: "100 000" without removing the savetrees package? Any ideas?

  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Seamus Jun 28 '16 at 10:30
4

The savetrees package sets \thinmuskip to 0.0mu plus 3.0mu rather than the standard \3.0mu. The easiest solution is to reverse that

\documentclass{article}
\usepackage{siunitx}
\usepackage[subtle]{savetrees}
\AtBeginDocument{\thinmuskip = 3mu}
\begin{document}
\num{100000}
\end{document}

but that will apply to all uses of the value. We might therefore hard-code the skip

\documentclass{article}
\usepackage{siunitx}
\usepackage[subtle]{savetrees}
\sisetup{group-separator = \ensuremath{\mkern 3.0mu\relax}}
\begin{document}
\num{100000}
\end{document}
  • 1
    I ended up using the first option as it didn't change the page-count of my document. – Joey Jun 28 '16 at 11:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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