{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

10
votes
1answer
1k views

Having problems aligning in a table with siunitx when using uncertainties in some power of 10

I'm trying to have a table, with an S column (from the siunitx-package) where the numbers are aligned to the \pm signifying uncertainty. Some values have uncertainties like 1.00 x 10⁴ and that seems ...
9
votes
3answers
350 views

Why is there extra whitespace to the left of this standalone document when using siunitx?

I'm using the standalone document class. Here is a minimal working example: \documentclass{standalone} \usepackage[siunitx]{circuitikz} \begin{document} Hello world \end{document} The problem ...
9
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 ...
9
votes
2answers
143 views

ascii and siunitx packages collide

I want to load both the ascii package and the siunitx package. The problem is that both define a symbol \SI. Is there any way to make both packages work together?
9
votes
2answers
7k views

How do I get expl3 from CTAN?

My real problem is that I am trying to use a package which depends on siunitx, and it complains on compiling with the following error: (/usr/share/texmf/tex/latex/siunitx/siunitx.sty ! Package ...
9
votes
3answers
428 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
2answers
504 views

SIrange typeset different in text and math mode

I observe a difference in the dashes typesetting when using SIrange in text or math modes. Any idea of why this happens? Here's the MWE: \documentclass{article} \usepackage{siunitx} \sisetup{ ...
9
votes
1answer
284 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 ...
9
votes
2answers
794 views

siunitx and 'e' notation in Tables with S column

I have a problem using \sisetup{output-exponent-marker = \text{e}} in my table. I use the S-columns provided from the siunitx package. It does change to the 'e' notation but it does not delete the ...
9
votes
2answers
2k views

How to use SIrange in math mode

I cannot figure out which of the siunitx font options is the correct to typset the rangephrase when using SIrange in math mode the same way as in text mode. See the MWE \documentclass{book} ...
9
votes
1answer
837 views

How to denote the standard deviation with siunitx?

I'm certain that I saw a command generating the following kind of output the last time I read through the siunitx manual: \left( 12.3 \pm 0.4 \right) V for a measured voltage of 12.3 V and a ...
9
votes
1answer
217 views

Kerning between V and / in Palatino and Euler

Edit 1 I made the test with real palatino font and Neo-Euler, with the same result (As far as I can see) \documentclass{standalone} \usepackage{fontspec} \setmainfont[] {PalatinoLTStd-Roman.otf} ...
9
votes
1answer
229 views

Grouping digits according to the Indian numbering system in siunitx

\num{100000} prints 100 000 I want to have 1 00 000. Question: How to set siunitx package to do the above? Some more \num{1000} => 1 000 \num{10000} => 10 000 \num{100000} => 1 00 000 ...
9
votes
1answer
496 views

Can I make siunitx commands use serif fonts like the rest of the math in beamer?

In a beamer presentation I can use \usefonttheme[onlymath]{serif} to typeset the math in a serif font while the rest of the presentation is in a sans-serif font. But the \SI command from siunitx ...
9
votes
2answers
174 views

how to get square brackets with \SIrange{}{}{}?

I'd like to get something like this: [-40 ; 80] °C Instead I'm getting: Below is a MWE. I've tried to include all necessary packages for siunitx, as written in its documentation; there are more, ...
9
votes
1answer
206 views

siunitx: per-mode=fraction in displaystyle with tfrac

Is it possible to display a per-mode=fraction unit as a small fraction (\tfrac) in displaystyle math mode? In the following MWE, the first output is what I want in the displaystyle math mode. ...
9
votes
1answer
264 views

Store results of a calculation automatically under a new macro name

As I am now accessing values from tables via a macro to make dynamic references in the text (see here) and make calculations with it, I need a way to make the resulting variables under which the ...
9
votes
1answer
297 views

LaTeX's datatool package together with siunitx

I want to use the datatool package to read csv files and parse them to LaTeX tables. Furthermore I want to use siunitx to format the numbers from the csv file. Have a look at the following example: ...
9
votes
1answer
316 views

Time of the day or time period using the package siunitx

I would like to display the time of the day like 18h30 or 18h30m with siunitx. Is there a proper way to display time and time intervals? I have read some discussions on the Mailing-List, but it seems ...
8
votes
2answers
375 views

Automatically spacing the tilde (~) symbol as a prefix number using the `siunitx` package

I'm trying to work out if there is a way to get siunitx to natively handle the ~ symbol (\sim) in the same way that it can handle the < and > operators before a number, as I would like to be able ...
8
votes
2answers
543 views

the \percent macro is not working in siunitx package

I get error when I use the \percent macro in the siunitx package. Here is the code : \documentclass[]{beamer} \usetheme{CambridgeUS} \usepackage{siunitx} ...
8
votes
2answers
3k 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]} ...
8
votes
2answers
274 views

Table with Tabu & siunitx not working

I am trying to make a table with tabu and using the sunitx package to align and round the entries of my table. However I keep getting the following error: ! siunitx error: "unknown-option" ! ! ...
8
votes
1answer
2k views

How to format SI units?

I get 1.0 Nm. But how to get 1.0 N.m \documentclass{article} \usepackage{siunitx} \begin{document} \SI{1.0}{\newton\meter}\\ 1.0~N$\cdot$m \end{document}
8
votes
1answer
5k 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 ...
8
votes
1answer
1k views

siunitx: Bold single numeric cells

I'm struggling to make a single numeric cell in an siunitx table bold. (A similar question for making a whole column bold is available here.) I want to define a simple macro which I can set for the ...
8
votes
1answer
466 views

pgfplots - x unit with siunitx

I want to use x unit=something to draw the units to an axis. In the manual I find this to use siunitx to do so: \pgfplotsset{ unit code/.code 2 args={\si{#1#2}} } Now I make a plot: ...
8
votes
1answer
341 views

How to round to units of thousands or millions, etc., in a table column?

I have a table with lots of raw numbers in the billions and hundreds of millions. I'd like to abbreviate the figures in these columns to millions. So instead of 234,091,123 as per the input, I'd like ...
8
votes
1answer
274 views

siunitx rounding works only if centering

Using the siunitx package \usepackage{siunitx} Consider the following two tables: 1. \begin{tabular}{ S[table-number-alignment=center, table-figures-decimal=3, table-auto-round] } 3.23958398 ...
8
votes
1answer
570 views

Preserving thousands separator with siunitx

I'm writing a paper and my advisor is requiring that all large numbers have a comma as a thousands separator. I've read this question which asks about how to make siunitx not throw errors when there ...
8
votes
1answer
362 views

Can I define a new unit that behaves like \ang in siunitx?

The siunitx package provides support for "astronomy style" placement of the degree symbol using the angle-symbol-over-decimal switch, and for simple entry of degree-minutes-second values using the ...
8
votes
1answer
817 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 ...
8
votes
1answer
934 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? ...
8
votes
2answers
382 views

Chemical purity and siunitx clash when putting a “+” after percentage

I'm using siunitx to describe some chemical purities. The purity I would like to describe is sold by the chemical company as 99.9+ % (not the best way of describing it I'm sure). When I try to ...
8
votes
1answer
139 views

Remove leading 0 in siunitx

I am trying to create a big table without leading zeros using siunitx \num{}. Namely, I have a bunch of number formated like this: 0.001 0.1 1.000 and I want to remove the 0. part. So the output ...
8
votes
1answer
475 views

Selectively use scientific notation in siunitx “S column”

My question is similar to Scientific Notation Only For Large Numbers and Adjust the exponent to switch between notations using siunitx I have a table which, for the most part, has numbers between ...
8
votes
1answer
249 views

siunitx and Elsevier (EES)

This is the first and probably the last time I'll ever send a paper to an Elsevier journal. I'm having a problem with the siunitx package, a package that I'm very fond of and I use it very often. The ...
7
votes
3answers
498 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 ...
7
votes
2answers
231 views

Number alignment in tables with some values in partial boldface (all but the decimal point)

I want to align decimal values in a table with some values printed in bold. Just by itself, this is no problem. We can use the siunitx package and \robustify\bfseries to do the trick as described, ...
7
votes
2answers
387 views

Oldstyle numerals or lining numerals with units of measurement?

What is considered proper typography regarding which set of numerals to use with units of measurement? A real-life example: In the experiment, shown schematically in figure 2.2, we illuminate an ...
7
votes
2answers
217 views

siunitx does not work with overline

When I am typing a laboratory for physics, I tried using \overline inside SI from the siunitx package, like so: \begin{align} \begin{split} s &= \frac{d}{t}\\ &= ...
7
votes
1answer
228 views

Using siunitx in captions?

I am using pdflatex(texlive 2011) to compile a document. Unfortunately it does not compile. ! Undefined control sequence. \metre ->\ERROR l.69 ...feld \num{6}{\metre} mal \num{6}{\metre}} ...
7
votes
3answers
296 views

amsmath - bidi - siunitx possible bug?

MWE: \documentclass{article} \usepackage[english]{babel} \usepackage{fontspec} \usepackage[detect-all]{siunitx} \usepackage{amsmath} \usepackage[math-style=ISO,bold-style=ISO]{unicode-math} ...
7
votes
1answer
152 views

Add zeros after decimal marker

Consider the following code: \documentclass{article} \usepackage{booktabs} \usepackage[locale = DE]{siunitx} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff ...
7
votes
1answer
319 views

multi-part numbers and units in siunitx

I'm trying to type set something like this "4 x 5 x 6 mm^2". the following command using siunitx package does not generate what I wanted. \SI{4 x 5 x 6}{mm^3} Instead, it produces “4 mm^3 x 5 mm^3 ...
7
votes
1answer
115 views

How to set font-family for \num to always coincide with surrounding environemnt

I am trying to set my global options for the \num{} output so that it correspond to the same font style of the surrounding text. I am using the siunitx package. After reading the package ...
7
votes
1answer
231 views

Is there a more convenient way to represent (1,2+3,4) m with siunitx?

Background: I want all decimal numbers in my TeX input file use . as the decimal separator. If my document is translated to German (for example), the . can be globally converted to , by locale ...
7
votes
1answer
106 views

the macro \micro in siunitx does not work with fontspec

In recent versions of siunitx the macros \si{\micro} and \SI{0.550}{\micro\m} do not work with the package fontspec. Here is the MWE: \documentclass[12pt]{article} \usepackage{fontspec} ...
7
votes
1answer
104 views

siunitx: Detecting \mathversion{sans}

Is there a way to tell siunitx to use the \mathversion{sans} font in the following example? \documentclass{scrartcl} \usepackage[T1]{fontenc} \usepackage{helvet} ...
7
votes
1answer
245 views

Postprocessing pgfplotstable results using siunitx

I am trying to use the \num command from siunitx inside a table made with pgfplotstable, because I need the format given by siunitx with \sisetup{scientific-notation = true} and all the advantages of ...