5

I need to show unit symbols of micro, nano, kilo, mega .. Is there a recommend front for this usage?

ex: 10µ Ω

6
  • 1
    No one uses the units package anymore? Jun 9, 2014 at 11:19
  • I am developing a scientific app!
    – simo
    Jun 9, 2014 at 11:21
  • @ManuelKuehner why should I use the units package over siunitx? I'm genuinely curious.
    – Argo
    Jun 9, 2014 at 11:24
  • @Argo: The package is much simpler and stable. I experienced that I used siunitx and then I updated my LaTeX installation a couple of months later and I had an error due to changed in the code of siunitx. Of course siunitx is more powerful. But in normal day to day work units is good enough and I don't need to remember many commands. And I love the nicefrac option. All of that is highly subjective! Jun 9, 2014 at 11:54
  • I see, I'll look into it. I had to typeset some imperial units for an exam in physics and that was kinda a pain to do manually properly.
    – Argo
    Jun 9, 2014 at 12:03

2 Answers 2

12

Use the siunitx package, it's pretty much the best way to typeset (SI)units, since you don't have to take care of spacing, symbols and whatnot.

Example:

\documentclass{article}
\usepackage{siunitx}
\begin{document
This is an example of the siunitx package: \SI{10}{\micro\ohm}
\end{document

Gives the following:

enter image description here

2
  • Also the \num command by itself is very useful: it inserts thin spaces between triplets of digits in five-digit or higher numbers. So, \num{10000} would output 10 000 (with a thin space).
    – wchargin
    Jun 9, 2014 at 15:48
  • 1
    @WChargin agreed, although I don't use it for the space between digits, but rather for scientific notation. \num{8,85e-12} is faster than $8,85\cdot 10^{-12}$ (and it probably handles the spacing as well).
    – Argo
    Jun 9, 2014 at 16:14
3
\documentclass[12pt]{report}
\usepackage{amsmath}
\usepackage{upgreek}
\begin{document}

$10\,\upmu\Omega$

\end{document}

enter image description here

Have a look at package siunitx. It makes life easier for writing values and units.

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.