{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

3
votes
1answer
567 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 ...
9
votes
1answer
45 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. ...
0
votes
0answers
17 views

xspace's spacing with siunitx macro does not work in math mode

To make life with LaTeX easier and faster (especially faster), I defined some macros in the preamble with the help of xspace. They work as intended in text mode, but fail in math mode. How could I ...
8
votes
1answer
166 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}\\ ...
1
vote
0answers
25 views

Use emulateapj/aastex with siunitx

I am trying to use siunitx in an emulateapj document, however it reports a conflict of command: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! LaTeX error: "xparse/command-already-defined" ! ! ...
4
votes
1answer
40 views

Add custom key to display units in glossary with siunitx

I decided to enrich my list of symbols by adding a unit column with a newly defined key "unit". \glsaddkey {unit} {} {\glsentryunit} {\Glsentryunit} {\glsunit} {\Glsunit} {\GLSunit} A new ...
0
votes
0answers
20 views

Control stargazer table output in combination with mathpazo and siunitx

I like the idea to control all my numeric outputs with the smallest number possible of packages. I use mathpazo to control my fonts and siunitx to control formatting. Yet when I knit a LaTeX table ...
1
vote
0answers
29 views

Knitr and numbers

I return to a question, which is few months old and then maybe not yet the best practice around. I use the siunitx package in my documents along with knitr to compile my R chunks. As far as I ...
3
votes
0answers
50 views

Typography of unit symbols for Molar and Liter in siunitx

The siunitx manual suggests using \DeclareSIUnit\Molar{\textsc{m}} as the symbol for Molar but this creates a small cap M. This is (apparently) how Molar was defined in version 1 of siunitx. However, ...
4
votes
1answer
54 views

Problem with \setmathfont and siunitx

I have some problem with the following code. \documentclass{minimal} \usepackage{fontspec,luatextra,unicode-math} \usepackage{icomma} \usepackage[noload=abbr]{siunitx} \sisetup{decimalsymbol=comma, ...
2
votes
0answers
58 views

siunitx - What is the best way to write “million”? [closed]

Is this a good way to write "million"? How do you do it? Initially I used the scientific notation of the value but of course this got silly fast. What do you do in this case? Picture MWE ...
6
votes
1answer
115 views

How to combine engineering notation from siunitx with pgfplotstable

I'm trying to get engineering notation (i.e. scientific notation in which the powers of ten must be multiples of three) in my tables produced by pgfplotstable. Because pgfplotstable does not support ...
5
votes
1answer
174 views

Using space instead of comma for large numbers?

Is there a package I could use to insert a space instead of a comma for large numbers? For example, 12 345.67 instead of 12,345.67 If needed, I am using the extbook environment. All of ...
1
vote
1answer
78 views

Siunitx: Suppressing decimal alignment for an integer row in a table

How can I align the figures in the column of the following MWE? The figure in the N row is always an integer, so I don't want that to be aligned on the decimal place like the coefficients above: it's ...
7
votes
1answer
39 views

Automatic per-mode switch from symbol to reciprocal

Is there a way to make the siunitx package output a unit with a single slash using per-mode=symbol and fallback to per-mode=reciprocal when there is more than one slash? \documentclass{article} ...
3
votes
3answers
579 views

Centering siunitx columns

I have the following table, with the decimal aligning handled by siunitx (MWE): \documentclass{scrartcl} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \sisetup{ ...
4
votes
1answer
65 views

Align missing data in siunitx S column type

How can I align missing data inside a S column type like in the below image? If I just add {\textemdash}, the dash is not centered, example: \documentclass{article} \usepackage{siunitx} ...
1
vote
1answer
116 views

Engineering notation (scientific) as tick labels with pgfplots (maybe via siunitx)?

I would like to have numbers on the ticks labels formatted in engineering notation -- but unlike in How to control pgfplots axis scaling for engineering notation (multiple of 3 exponent)?, I would ...
6
votes
1answer
127 views

Is mixed per-mode possible in SIunitx?

In spectroscopy, frequency is often expressed as wavenumbers, which are reciprocal centimeters (I have \DeclareSIUnit\wn{\per\cm} in my standard preamble). I would like to show the shift in frequency ...
11
votes
3answers
314 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 ...
8
votes
2answers
209 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" ! ! ...
2
votes
0answers
68 views

Problem adding caption with siunitx

I am using latex/beamer(texlive) to compile a document and I am getting an error. Apparently it has something to do with siunitx package. Here is a minimum working example. ...
3
votes
1answer
86 views

Siunitx - significant stars (***) far away

I'm testing Stata → LaTeX integration, and reading some guides, I was satisfied with the results. Unfortunately, it seems that one can only use the dcolumn package in Stata. Knowing that the siunitx ...
5
votes
2answers
85 views

alignment of numbers in exponential format in a table with complicated header rows

I have a table that contains a lot of numbers. I have been defining new column types to allow me to specify column widths and allow \newline within a cell. Some of my columns of numbers are in ...
6
votes
2answers
111 views

Formatting table with siunitx: problem with parentheses and signs

I basically need to create a regression table with coefficients on one line, and t-statistics in brackets on the second line. However, I have a problem when the t-statistics are negative. When I ...
4
votes
2answers
123 views

Table, siunitx, render + sign

I have a table with number formatting through siunitx. In one column, I have values which show an improvement (or worsening) of one approach over another. To make it really clear, that I'm giving a ...
6
votes
2answers
52 views

Using one group separator for integer part and another for decimal part (siunitx)

I thought I was able to do something like this before, but I can't find my solution. I would like to format my large numbers as follows: 12,504.3124 2359 3 I know I can use siunitx to partially ...
5
votes
1answer
85 views

Scanning all the siunits in a document

When the macro \tableofcontents, is given it takes all the chapters, parts, sections, ... and generates the Table of Contents for the Whole Document. Even the \listoftables and \listoffigures do that. ...
6
votes
1answer
94 views

Change text for a unit in siunitx

I am using siunitx package. When I type \SI{60}{\second}, the output will be 60 s. How can I change the appearing text in the output to be 60 sec?
3
votes
1answer
80 views

Alignment in Siunitx with Comma separators

How can I right align the following two columns, just specifying that there will be at most 5 integer digits and never any decimals? I can't seem to get the right combination of options. I can align ...
1
vote
1answer
56 views

How to get rid of an error when I load array or siunitx?

When I load array or siunitx or (probably other packages that I haven't tried), I get an error saying: ! Package array Error: Illegal pream-token (\specifier): `c' used. ...
3
votes
1answer
39 views

Why do you need both list-pair-separator and list-final-separator in siunitx?

I wanted to translate the automatically written words in the siunitx package to Danish (at least the parts I use) and found the answer to Problem with \SIlist with two values and list-final-separator ...
0
votes
1answer
90 views

siunitx with product-units, mixed units

Is the following possible with full siunitx syntax? \documentclass{article} \usepackage{siunitx} \begin{document} $\SI{80}{\micro\meter}\times\SI{1.25}{mm}$ \end{document} For clarification: I ...
6
votes
2answers
341 views

Problems using \addlegendentry in a loop with pgfplots

I have some spectra to plot, which I exported from the Siemens Xray toolbox, which works nicely with pgfplots. Since these are multiple files that look the same I think I can do it with a for loop, ...
2
votes
1answer
67 views

Using SageTeX with siunitx

I have the following problem: I'd like to do calculations using SageTeX and use the result in an siunitx expression, so that (for example) \SI{\sage{3.5^2}}{kg m} would give me the same result as ...
8
votes
1answer
336 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 ...
4
votes
1answer
119 views

Old Style Fonts not applied to whole document

The old style font is not applied to the whole document. Whats the issue there? The MWE: \documentclass{article} \usepackage{siunitx} \usepackage[osf]{libertine} \begin{document} 92\si{\percent}\par ...
6
votes
1answer
114 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 ...
5
votes
1answer
79 views

How to print negative value with currency

At the moment my report print currency values with siunitx with \$\numprint{12} But negative values displayed as $-12.00 I would like to display it as: -$12.00 Or you think $-12.00 is ok too for ...
9
votes
2answers
119 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, ...
0
votes
0answers
48 views

How to cope with version incompatibilities (i.e. binary units in siunitx)

I have to compile my dissertation on two machines with two different TeX Live versions (TeX Live 2009 on Ubuntu 12.04 and now TeX Live 2013 on Ubuntu 14.04). Unfortunately, the siunitx maintainer ...
3
votes
2answers
137 views

Removing space around tabular columns set with siunitx

OK, first off, this table is horrendous looking and desperately needs help. But what I'd really like to know is how to eliminate some of the extra white space between the columns set with S in the ...
2
votes
0answers
64 views

Put brackets around value and uncertainty with exponent in tables with siunitx

I have a number with an exponent and an uncertainty that I want to display in an S-column in a table. When I just put it in, the spacing is terrible, and if I tell the column how much space to reserve ...
3
votes
1answer
81 views

Why does siunitx remove the space after \percent?

When using siunitx to write percentages, I run into a problem with missing spaces. Why does that happen? And what would be the best practice for writing percentages in text? \documentclass{article} ...
6
votes
3answers
213 views

How do I write $\sim$ approximately with the correct spacing using siunitx?

This question is similar to this one, only that I'm using the siunitx package: \documentclass{minimal} \usepackage{siunitx} \begin{document} The temperature is \SI{\sim 200}{\kelvin}. \\ The ...
5
votes
2answers
146 views

How to put numbers in parenthesis in the S column using siunitx package

In the following minimal code, when I replace the l columns by S I get an error message saying invalid-number!! Invalid numerical input '(4.36)'.!! See the siunitx documentation for further ...
3
votes
1answer
105 views

Fundamental Physical Constants in SI Units with siunitx

I would like to write e.g. the Bohr magneton in SI units without writing yJ/T and the nuclear magneton (the following code is inconsistent with siunitx-notation: $\mu_\text{N}\approx \SI{5\times ...
0
votes
1answer
42 views

Using is siunitx, how do I put symbols in the number, e.g. to format $\mu_0$

The permeability of free space I have $\mu_0$ = 4$\pi$ $\times$ \SI{E-7}{\volt\second\per\ampere\per\metre} because $\mu_0$ = \SI{4$\pi$ E-7}{\volt\second\per\ampere\per\metre} How do I ...
3
votes
1answer
60 views

How to make temperatures with decimal comma? [duplicate]

I was asked to write a document where I have to put temperatures like -51,4 degrees celcius. How can I do that in LaTeX? I tried \usepackage{siunitx} ... \SI{-51{,}4}{\celsius} but it turns the ...
1
vote
0answers
54 views

siunitx table leading zeros

How to preserve the leading zeros of the errors in a table using siunitx' S column type. \documentclass[ngerman,english]{scrreprt} \usepackage{babel} \usepackage[locale=DE]{siunitx} ...