{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

13
votes
3answers
17k 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
3answers
473 views

mathpazo + siunitx: π turns into ß

When I use mathpazo and siunitx (version 2.3h) together, if I use \pi inside the numerical argument to \SI, it will show up in the output as "ß". \documentclass{article} \usepackage{mathpazo, ...
9
votes
1answer
369 views

How to typeset dimensions of a box?

I want to typeset something like this: 3.0 × 3.0 × 0.9 mm How can I do that in LaTeX (using siunitx package)? So far, I have this: \num{3.0} × \num{3.0} × \SI{0.9}{\milli\metre} But probably ...
21
votes
1answer
820 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 ...
4
votes
1answer
1k views

xfrac + siunitx gives me a font warning

I'm using mathpazo and the AMS math packages, and I just started using xfrac for the \sfrac command. However, now when I use \sfrac (or when I set siunitx to use it), I get this output: LaTeX Font ...
12
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 ...
10
votes
2answers
1k 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 ...
0
votes
1answer
2k views

Unknown options for package siunitx

I'm getting an error when I try to specify an option with the siunitx package. I have the following line in my preamble: \usepackage[load-configurations=si-abbr]{siunitx} And I get the following ...
1
vote
1answer
1k views

Just installed the latest siunitx and it says that expl3 is too old

Just installed the latest siunitx and it says that expl3 is too old. I looked on the miktex package update manager and I appear to have the latest version of everything. The package that now contains ...
5
votes
3answers
836 views

Automatically-adjusted spacing for scientific notation in siunitx

With the input [ n=CV = \SI{3.29e-3}{\micro\mol\per\L} \times \SI{8e-4}{L} = \SI{2.63}{\micro\mol} \] I get output As you see the spacing is not quite right - I really want the spacing of the ...
8
votes
1answer
632 views

Remove parentheses from number with uncertainty and the separate-uncertainty=true option with siunitx

This is a follow-up to my previous question. Using the separate-uncertainty=true option with siunitx, a number like \SI{100 \pm 12}{\kelvin} would be output as (100 \pm 12) K I want to get rid of the ...
5
votes
2answers
3k views

In the siunitx package, how do i get it to produce uncertainties with the \pm symbol instead of parenthesis

Using the siunitx package, if I specify an error with the \pm symbol then it automatically converts it to a form using parenthesis. I would like it to not do this and keep the \pm symbol, but still ...
11
votes
2answers
3k 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 ...
3
votes
1answer
300 views

Detect-all does not affect output-decimal-marker (siunitx)

I would like siunitx to detect the document font family and use it for numbers in an S tabular cell, so I am using the detect-all option, which however does not seem to affect the output decimal ...
7
votes
1answer
993 views

Aligning the currency symbol in a tabular environment

Friends, I have to create some sort of a balance sheet, so my first sketch is using a tabular environment. I also have to follow some styling rules. One of the styles rules I need to obey is the ...
7
votes
3answers
611 views

How to switch large document from units-package to siunitx?

For historical reasons, I've been using the units package in my thesis to typeset numbers with units or units with \usepackage[tight]{units} For formatting numbers in table columns I'm already using ...
4
votes
3answers
1k views

How to create equally spaced columns in a table with centered number blocks, which themselves are aligned on the decimal marker?

I've searched around this site and also alot with Google, but did not find exactly a solution to my problem: I want to create a table width equally (and automatically) spaced columns. These columns ...
6
votes
1answer
1k views

tabular, siunitx and input - `Extra }, or forgotten $.`

I'm trying to include data into a tabular environment \usepackage{booktabs} \usepackage{siunitx} \begin{table} \begin{center} \begin{tabular}{SSSS} \toprule {$na^3$} & ...
6
votes
3answers
1k views

siunitx: how can I avoid adding decimal zeroes?

How can I format a table column with siunitxwithout adding additional zeroes after the decimal separator? I'd like to see 5,2 in the output instead of 5,200 (however: 0,246 shall still be displayed ...
2
votes
1answer
588 views

siunitx S-column in table: can I combine scientific notation and decimal numbers in one column?

I have a table with values exported from a statistics software, where the values are formatted like this (see example below): Some (very small ones) are in scientific notation, some are in "normal" ...
5
votes
1answer
378 views

siunitx: protecting lines with text from being formatted as number?

The siunitx package has already been extremely helpful to me for formatting tables containing numbers and I now use the S-column in nearly every table of my thesis. However there is one problem: In ...
4
votes
1answer
593 views

How to center numbers in a table column with the siunitx package?

I've been trying and searching for quite some time, but I don't see what I'm doing wrong: I want to create several table columns with decimal numbers (some in the format "1,25" and some like "3,156" ...
25
votes
2answers
12k 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
3answers
12k 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 ...
13
votes
1answer
4k 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.
3
votes
1answer
2k views

siunitx, threeparttables and table footnotes

I am trying to use the S option of siunitx for table alignment alongside with threeparttables for table footnotes, but it looks like that the footnote mark is flushed left everytime \tnote{} is used. ...
6
votes
2answers
464 views

siunitx S column to produce aligned numbers in italics and parentheses

My apologies first as it may be that if i spent a sufficient amount of time playing and reading the siunitx manual, that I might be able to figure this out. About an hour has failed to yield the ...
6
votes
3answers
3k views

units error with siunitx

! Undefined control sequence. \documentclass[12pt]{article} \usepackage{siunitx} \begin{document} \si{300}{\nanogram\per\millilitre} \end{document} Why?
3
votes
1answer
273 views

I get an error when I put an imaginary number in a column of a table with column specifier S (from siunitx package)

Using the siunitx package. I have a table with column specifier S if I then put an imaginary number in it comes up with a compile time error: ! siunitx error: "table-partial-number" ! ! No space ...
4
votes
1answer
694 views

I had a problem with spacing of tabular columns combined with \multicolumn. I found an inelegant solution. Perhaps someone knows of a better one?

Consider a table with several columns. Three consecutive columns are thin. These three thin columns have a long \multicolumn{c}{3}{??} heading over them. If nothing is done to specify how these should ...
7
votes
1answer
289 views

siunitx package, doesn't seem to format imaginary numbers correctly

If I use the siunitx package to generate an imaginary number e.g. \SI{120i}{\per\centi\meter} then it places a 0 before the 120 (probably some artifact of expecting complex notation with a real number ...
8
votes
1answer
1k views

Align siunitx numbers in a tabu table

The minimal example below gives me a strange offset in numbers with exponential numbers. I think tabu and siunitx are getting in each others way. Is anyone aware of a workaround? ...
3
votes
2answers
366 views

Problem with slanted numerals when combining siunitx and arev

There is a strange interaction between the siunitx and arev packages, whereby all the numerals appear slanted when using commands such as \num or \SI. \documentclass{article} \usepackage{siunitx} ...
8
votes
1answer
1k views

siunitx: localisation not working

I have just discovered the siunitx package and want to use it in a German language document. Unfortunately, I can't get the German word 'bis' instead of 'to' with the \SIrange command: \listfiles ...
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 ...
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 ...
11
votes
1answer
636 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 ...
1
vote
2answers
411 views

\elementarycharge command not recognized in siunitx package

I'm trying to use \SI{0.006}{\elementarycharge} in the siunitx package \usepackage{siunitx}. The \elementarycharge command does not work. I'm using ...
10
votes
1answer
896 views

How to use lining figures in siunitx and fontspec?

I'm using XeTeX and fontspec, and I have selected old-style figures for my body text. Now I use the siunitx package, and have set it up to use text fonts instead of math fonts. For the siunitx values ...
5
votes
2answers
429 views

What is the correct way based on the consensus to write a volume measurement followed by its unit in liter?

Which one is the correct one? 100l There is no space between number and unit. Unit is written in small letter. 100L There is no space between number and unit. Unit is written in big letter. 100 l ...
2
votes
1answer
1k views

siunitx update breaks things

I upgraded to v2.1 of siunitx since the version in ubuntu's package manager (1.3?) is pretty old. Things seem to have broken. I might have got something wrong with the installation, or I might be ...
12
votes
1answer
5k 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 ...
6
votes
3answers
4k views

What LaTeX Lab packages use expl3?

I am trying to migrate documents to http://latexlab.org, but they won't compile because they require expl3.sty. Yesterday I started by uploading all of the expl3 sty files but then latex demanded even ...
12
votes
1answer
623 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.
4
votes
1answer
1k views

Puzzling error while using sunitx (in a tabular environment)

I've been working on writing a contingency table in LaTeX (I've prepared myself for a long battle to get multi-line and multi-column cells to appear as I need). \usepackage{booktabs} ...
2
votes
1answer
990 views

siunitx: centering table headings (or other text contents)

I'm trying to center-align the two-line heading of the rightmost column of the following table. Given that I use decimal point alignment, I guess the centre of the headings should be aligned with the ...
10
votes
2answers
8k views

Numbers in tables: align by decimal point *and* flush right?

This is a followup question to siunitx: aligning numbers by decimal points in tables doesn't work for bolded or italicized numbers and Aligning numbers by decimal points in table columns. While ...
8
votes
2answers
4k views

siunitx: aligning numbers by decimal points in tables doesn't work for bolded or italicized numbers

This is a follow-up question for Aligning numbers by decimal points in table columns. User lockstep provided this solution: \usepackage{siunitx} \begin{document} \begin{tabular}{S[table-format=3.2]} ...
54
votes
2answers
18k 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 ...
11
votes
1answer
6k views

siunitx: scientific notation

I want to use scientific notation with the siunitx package. However, when I try to do it I am getting an error: The width of a human hair is \SI{1 \times 10^{-4}}{m}. This has always given me a ...