5

I am trying to reproduce the look of the micro symbol in the siunitx documentation; see for instance the following picture:

\micro from documentation

However, when compiling the following code:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\usepackage{textcomp}
\usepackage{siunitx}  

\begin{document}

\SI{15}{\micro\metre}

\end{document}

the mu comes out with serif as in the following picture:

mu from my code

I suppose there is a font issue here but I could find how to solve it by reading the siunitx documentation.

M. Toya
  • 3,227
  • 1
    You can adjust the definition, but why do you expect there to be no serif here? – Joseph Wright Feb 28 '13 at 18:46
  • 2
    Different font, try replacing lmodern with mathpazo. – Torbjørn T. Feb 28 '13 at 18:50
  • 1
    Admitedly serif in a serif text is rather normal. However some people find that the serif on the mu look odd and also (mainly) the mu in the documentation are sans-serif even in serif text. I was wondering how you achieved that. – M. Toya Feb 28 '13 at 18:50

2 Answers2

11

Finding the 'correct' micro symbol is tricky as a lot of fonts do not include the appropriate (upright, roman font, 'matching') micro or mu. The siunitx package therefore provides two options which control the symbol used here: math-micro and text-micro. These are used to set the symbol in math and text mode, respectively. Simply pick a formulation you like and use \sisetup to activate it

\sisetup{math-micro = <your-choice-here>, text-micro = <your-choice-here>}
Benedikt Bauer
  • 6,590
  • 2
  • 34
  • 60
Joseph Wright
  • 259,911
  • 34
  • 706
  • 1,036
  • 1
    A concrete example that works nicely if using arev, is to use Helvetica for \micro: \sisetup{math-micro={\usefont{T1}{phv}{m}{n}\text{\textmu}}}. – timothymctim Oct 19 '16 at 09:49
4

In this particular case, you're using a font different to that of the manual. Replace lmodern with mathpazo to get the same font. (This will of course influence the entire document.)

Torbjørn T.
  • 206,688