{siunitx} is a package that provides consistent typesetting of physical quantities, allowing application of various typographic conventions with the same input syntax. This package replaces the deprecated {siunits} package.

learn more… | top users | synonyms

50
votes
2answers
14k views

Aligning numbers by decimal points in table columns

Let me begin by stating that I did google the answers (and I'll reference to them soon). Yet each of the resources I found discussed one particular method, I'm interested in a comparison of the ...
46
votes
5answers
6k views

Why use a package to typeset units?

I've seen a lot of posts about different packages for typesetting units and their relative strengths and weaknesses. Most posts seem to agree that the siunitx package is the most up to date package, ...
24
votes
2answers
10k views

Differences between SIunits and siunitx packages

I was reviewing What packages do people load by default in LaTeX?, and noticed that the siunitx package was recommended. I have been using ...
24
votes
1answer
1k views

microtype + siunitx and \micro - mysterious warnings

This code \documentclass{scrreprt} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{microtype} \usepackage{siunitx} \begin{document} \SI{10}{\micro\metre} \end{document} produces these ...
21
votes
3answers
8k views

Should I put a space between a number and its unit?

No too much more to say. \( 2.63\si\ohm \) looks odd. But it might be the correct way. \( 2.64\,\si\ohm \) looks much better IMO. What about the \,? Sould it be bigger, smaller or there is no really ...
21
votes
2answers
3k views

Automatic thousands separators?

I want to typeset big numbers with a separator (e.g a space or a ",") between hundreds and thousands, etc... For example 1 Million = 1 000 000. I know the package siunitx which does it very well, but ...
21
votes
1answer
372 views

How can I make a standalone document loading siunitx work?

I've got a standalone document that uses siunitx: % subdocument.tex \documentclass{standalone} \usepackage{siunitx} \begin{document} \SI{10}{\kilo\newton} \end{document} I'd like to include this ...
20
votes
1answer
978 views

Consistant formatting with siunitx and pgf: Thousands Separator

I like the default behavior of the siunitx package in that the thousands separator is not applied to four digit numbers, but is applied when the number of digits exceeds four. In documents that ...
20
votes
1answer
711 views

“Pretty-printing” numbers redux: engineering notation

Awhile ago I discovered the siunitx package as an answer to this question and it kind of blew my mind. For instance, if I'm using fp to compute a numerical result (in, say, a homework solution), then ...
17
votes
6answers
838 views

Rounding a number to its hundred

Does anybody know how I could have LaTeX round a number like 2,386 so that I finally get only written 2,300? I tried with siunitx and its option [round-mode=places,round-precision=-2] but it didn't ...
17
votes
4answers
395 views

How can I convert units in LaTeX environment?

Example: \usepackage{siunitx} \newcommand{\temperature}[1]{\SI{#1}{\celsius}} \temperature{100} output: 100°C I would like something like: \newcommand{\temperature}[1]{\SI{#1+273}{\kelvin} ...
15
votes
2answers
221 views

siunitx not using kerning units correctly ahead of a sentence-ending dot (period, full stop)

If the unit is the final character in a sentence, the sentence-ending dot is not kerned correctly. MWE: \documentclass{article} \usepackage{siunitx} \usepackage{mathpazo} \begin{document} ...
15
votes
2answers
2k views

How much space between number and unit?

Javier Bezos (famous of titlsec, tensind, spanish ... packages; and now maintainer of babel) wrote a nice book on typography and scientific notation in spanish. He says (pag. 82) that the space ...
14
votes
2answers
731 views

Why do the standard siunitx settings not detect font weight?

Using KOMA-script I got a bold font for chapter/section titles. I had a unit, \SI{1}{\something}, in one of them which was not set in bold font. Giving siunitx the following options ...
14
votes
0answers
777 views

Best practice for typesetting physical quantities using siunitx [closed]

Consider the following example. Code \documentclass{article} \usepackage{amsmath} \usepackage[ locale=DE, output-product=\cdot, product-units=single % I use this option a lot in the document, ...
13
votes
1answer
1k views

How to set the precision in numbers

I include the number as \num{0.12368455}. I need to print '0.1237'. How to do this...
13
votes
1answer
1k views

Why has m/s changed in siunitx package?

I would have expected \meter\per\second to generate an output m/s. But when using the package siunitx the output is similar to ms^-1. I referred the documentation for the package and there too the ...
13
votes
2answers
178 views

'e+08' (don't suppress 0) notation in columns with S-specifier

for symmetry reasons in a large table I want the scientific format with 2 digits (i.e. e+08). By default it suppresses the 0. Here is what I do: \documentclass[]{article} \usepackage{siunitx} ...
12
votes
3answers
2k views

How to use siunitx and tabularx together?

I'm using the tabular features of siunitx (for what it is worth: v1.3 since I'm on TexLive 2009) to align numbers in tables, eg. \begin{tabular}{ p{1.5cm} S S S } bla & 1.23 & 4.5 & 67.89 ...
12
votes
1answer
592 views

Align numbers and separated uncertainties in tables with S columns

If I have a table like this \documentclass{article} \usepackage{booktabs} \usepackage[separate-uncertainty=true]{siunitx} \begin{document} \begin{table} \centering \begin{tabular}{ ...
12
votes
1answer
781 views

Scientific Notation Only For Large Numbers

I have a table full of numbers. Most of them are floating point numbers that are less than one, some are integers from 1-100, and a few are large (×10^75). I know how to set the precision of the ...
12
votes
2answers
344 views

Adjust the exponent to switch between notations using siunitx

I have a big question about the siunitx package and I hope somebody out there can help me. At first I want to use the automatic number conversion of the package. So I defined: ...
12
votes
1answer
584 views

Why do some fonts used by siunitx and textcomp look rasterized?

For example, the mu in \SI{1.55}{\micro\metre} looks really bad for some reason. For textcomp, \textmu looks the same.
11
votes
5answers
2k views

How to use siunitx with non numerical values?

I understand that something like \SI{5}{\meter\per\second} defines a certain space between the number (5) and units (m/s). What should I use if instead of a numerical quantity I want a variable: R ...
11
votes
2answers
2k views

Expressing capital M for molar in siunitx package

The following code isn't valid but conveys my intention: \SI{}{\micro\molar} as in micro followed by a big M. I don't want to use the explicit form of micro moles per L raised to the negative one ...
11
votes
3answers
323 views

Aligning complex numbers in centre of table with siunitx

I'm trying to align complex numbers in the middle of a table column using the siunitx package for nicer alignment, but the numbers are centring based on where the decimal point would be on the real ...
11
votes
1answer
2k views

SI units for sheet resistance using siunitx

I'm trying to get the package siunitx to output the units for sheet resistance (Ohm per square), with the square as a square box. My current solution (in text mode) is: 30-60 $\Omega/\square$ ...
11
votes
1answer
3k views

Comma as decimal marker with siunitx (Spanish usage)

I'm using siunitx to input some big numbers and units in my document. Is there a way to make the output of \num{3.14} be "3,13" instead of "3.13"? In Spanish, we use the first one.
11
votes
1answer
470 views

siunitx and engineering 'E' notation

Is it possible to use the siunitx package to typeset numbers with the "E" notation so that the output might look like 1E3 instead of 1 x 10^3
11
votes
1answer
365 views

alignment of table numbers

why the numbers indicated from the arrows are not aligned compared to the columns above ? \documentclass[border=10.0mm]{standalone} \usepackage{booktabs,caption} \usepackage{siunitx} \sisetup{% ...
11
votes
1answer
3k views

Defining new unit (year, century) in siunitx

I'm having a hard time figuring out the LaTeX commands to define new units of year and century in siunitx. I'd like to write \SI{3}{\cm\per\year} and have it show: 3 cm yr-1, or ...
11
votes
1answer
214 views

Leading zero for azimuths using siunitx

Azimuths are often written with a leading zero, e.g. NE as 045°. I am using the siunitx package to format all the other quantities in my document with the \SI macro, e.g. \SI{100}{\metre} but ...
11
votes
1answer
701 views

Unwanted behaviour of siunitx

Consider the following example. Code \documentclass{article} \usepackage[per-mode=symbol-or-fraction]{siunitx} \begin{document} \[ \frac{x}{\SI{4}{\m\per\degree}} \] \end{document} Output ...
11
votes
1answer
349 views

Aligning text in S columns in a way that respects the decimal marker for numerical entries

As I understand it, using various options for the S column in siunitx, I may produce columns containing both numerical and nonnumerical entries. I may have the numerical entries aligned at their ...
11
votes
1answer
276 views

Siunitx and cancel package

I want to symbolically cancel out units using the siunitx package. To do so I tried the cancel package as in the following minimal example: \documentclass{article} \usepackage{amsmath} ...
11
votes
3answers
360 views

Angular frequency in siunitx

When using siunitx, is there an intuitive way to type angular frequencies with the prefix 2\pi \times? The provided example \documentclass{article} \usepackage{siunitx} \begin{document} \SI{2\pi x ...
11
votes
0answers
134 views

siunitx disturbs spacing of \, in math with xelatex

In the following example - compiled with XeLaTeX - the spacing of \thinspacing/the value of mu (used by \,) is disturbed if \SI is used in the math before: \documentclass{article} ...
10
votes
3answers
10k views

siunitx: µ doesn't work

I'm using TeXnicCenter for Windows (7) and I'm a bloody beginner in everything that concerns LaTeX. I'm using the siunitx package for mathematical formulas and it works just fine... with one ...
10
votes
2answers
1k views

How to use siunitx to write 100 MBps?

I want to show 100 MBps (one hundred mega byte per second) in my article. How to make use of siunitx package to produce the rate correctly? The following outputs are not what I want to get.
10
votes
2answers
918 views

Properly align numbers with units in table

I need to typeset a table comparing, among other things, the temporal resolution of certain datasets. Ordinarily, I would put the common unit into the table header, and only list the values in the ...
10
votes
2answers
874 views

siunitx: How do I unset options previously set with \sisetup?

In the siunitx package (v1.3), I know that I can set various options with the \sisetup command. But what if I want a particular option to apply to only a small section of my document, with default ...
10
votes
2answers
1k views

\per\kWh produces a wrong output

I want to say 10 cent dollar per kilowatt-hour of electricity. When I compile the following, \documentclass{article} \usepackage{siunitx} \begin{document} \SI[per-mode=symbol]{0.1}[\$]{\per\kWh} ...
10
votes
1answer
153 views

SIrange with leading plus

When using siunitx, by default, \SIrange{-4}{+6}{\percent} will render -4% to 6%. Is there any general way to change rendering of the positive values with a leading "+" for the positive values? ...
10
votes
1answer
996 views

The siunitx package messes with manually input thousand-separators

Recently I found the very useful siunitx package, and immediately looked to use it for some tables. Unfortunately, I already have all my numbers typeset with , thousand separator and . decimal ...
10
votes
1answer
2k views

Table typesetting with pgfplotstable

I have two questions concerning pgfplotstable and number formatting with pgf. Consider the following piece of code: \documentclass{article} \usepackage{pgfplotstable} \usepackage{amsmath} ...
10
votes
1answer
190 views

How to keep useless zeros in SIUNITX

I want to keep all useless zeros using siunitx. How could I ? \documentclass{article} \usepackage{siunitx} \begin{document} \verb+\num{5}+: \num{5}\\ \verb+\num{05.0}+: \num{05.0}\\ ...
10
votes
1answer
218 views

Getting \bm to pass thru siunitx macros

It seems that macros form the \siunitx package have a \bm problem, but no problem with \textcolor: Note that the 180 passed thru the \ang macro is not bold. So, how do I change the \MyFormat macro ...
10
votes
1answer
150 views

siunitx: Decimal alignment with 'less than' sign

How can I align the p-values that contain the 'less than' sign in the last column in this table and also specify spacing between individual columns to improve the layout? \documentclass{article} ...
10
votes
1answer
1k views

Make pgfplots typeset axis units as reciprocals using siunitx

pgfplots has a library units that allows to typeset units in axis labels provided through x unit=<unit>. Through the key \pgfplotsset{unit code/.code={\si{#1}}}, it can be made to typeset the ...
10
votes
1answer
554 views

Using siunitx when submitting to APS

Just got to know the pretty amazing siunitx package. I started converting all the units in my last draft for a publication, but I'm wondering now if maybe it is useless if the publisher does not ...