0

How do I get a clean looking \micro symbol µ ?

enter image description here

I want a micro symbol, not a greek \mu, because that is another symbol. However tex does not render the proper symbol, and the symbol that is does render looks like it was stolen from a different font.
The 2nd variant is not much better.

How do I get a \micro symbol that actually looks like it was not copy-pasted from comic-sans?

% !TEX encoding = UTF-8 Unicode
\documentclass{standalone}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage[euler]{textgreek}
%\usepackage{textcomp}
\usepackage[active,tightpage,psfixbb]{preview}
\PreviewEnvironment{pgfpicture}

\setlength\PreviewBorder{0pt}
\begin{document}
\begin{tikzpicture}[x=1pt,y=1pt]
  \begin{scope}
  \path[clip] (  0.00,  0.00) rectangle (433.62,252.94);
  \definecolor{drawColor}{RGB}{0,0,0}

  \node[text=drawColor,anchor=base,inner sep=0pt, outer sep=0pt, scale=  1] at (242.01, 10.00) 
{Time in μ $\text{\textmu{}} \text{seconds}$, $n = 125\,000$};
% the unicode char "μ" does not render. And it has better not look like #2 above >-:< 
  \end{scope}
\end{tikzpicture}
\end{document}
10
  • 10
    (1) welcome, (2) why don't you take a step back and look into the siunitx package. (3) using language like "looks like it was drawn by a 2-year old" does not really make others want to help you.
    – daleif
    Commented Feb 12, 2019 at 14:54
  • 2
    My alternative here, of slanting the italic Greeks into an upright posture, is another possibility you can reject: tex.stackexchange.com/questions/145926/… Commented Feb 12, 2019 at 14:58
  • 1
    and I thought my handwriting was bad.... ;-)
    – JPi
    Commented Feb 12, 2019 at 15:01
  • @StevenB.Segletes, I'd love to try it, but MikTex cannot find \usepackage{mathptmx} anywhere.
    – Johan
    Commented Feb 12, 2019 at 15:11
  • 4
    The unicode symbol in your question is Unicode Character 'GREEK SMALL LETTER MU' (U+03BC), so it is quite unclear what you mean by not wanting a greek mu. Commented Feb 12, 2019 at 15:12

2 Answers 2

4

As you don't like the micro symbol from siunitx, I try something else:

Use unicode-math with XeLaTeX or LuaLaTeX

enter image description here

\documentclass[margin=3mm]{standalone}
\usepackage{unicode-math}
\begin{document}
10 $\symup{\mu}$s
\end{document}

Edit:

As @Mico stated in the comments, you should combine unicode-math with siunitx by defining a new command – it is more natural IMHO:

\documentclass{article} 
\usepackage{unicode-math,siunitx} 
\newcommand\upmicro{\symup{\mu}} 
\begin{document} 
\SI{10}{\upmicro\second}
\end{document}
2
  • Thank you, although not technically very serif-ish, it does match the curvyness of CMU computer modern nicely. Much easier on the eyes.
    – Johan
    Commented Feb 12, 2019 at 16:55
  • 1
    +1. It's straightforward to combine this method with the siunitx package and its \SI macro. E.g., \documentclass{article} \usepackage{unicode-math,siunitx} \newcommand\upmicro{\symup{\mu}} \begin{document} \SI{10}{\upmicro\second} \end{document}.
    – Mico
    Commented Feb 12, 2019 at 17:46
0

I found this rather drastic solution given in the answer by user11232 in this StackExchange post quite satisfying (on GNU/Linux i.e. Fedora using pdflatex). I noticed that the mu character looked different there from that on my system when using siunitx package (without using the libertine package). The solution is drastic because it changes the font for the whole document but the libertine fonts are beautiful. In summary the solution comes down to using a combination of the siunitx and the libertine package. Example screenshots with and without libertine package are included below

\usepackage{libertine}
\usepackage{siunitx}

Examples

without libertine:enter image description here

with libertine:enter image description here

1
  • I've specified the source by mentioning the user that posted the answer I am referring to. Additionally I have explained how it led me to the solution I've posted here. Commented May 12, 2020 at 19:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .