{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
38 views

How can I use regular dashes in S-columns?

I would like to have the cells with non-number entries centered but I can't even figure out how to get -- (or ---) working and printed out. The reason behind this is that I have several instances of ...
6
votes
2answers
109 views

Translation not working when using siunitx + glossaries + polyglossia + xindy + LuaLaTeX

I'm trying to move to a modern LaTeX setup, by using LuaLaTex, polyglossia, glossaries + xindy. When I create a German document with a glossary, the title of the glossary correctly changes to ...
6
votes
2answers
78 views

siunitx's S column misaligns numbers if retain-unity-mantissa is false

Consider this MWE: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{tabular}{l @{\hskip+0.5em} S[retain-unity-mantissa = false]} ...
1
vote
1answer
48 views

Error with parenthesized neg. numbers and siunitx in a table

Why do I get an error (Misplaced sign token) for the negative sign in the second parenthesized number? Executing without the negative sign works! \documentclass{article} \usepackage{booktabs,siunitx} ...
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 ...
5
votes
1answer
114 views

Format table with aligned values +/- errors and units (and parentheses)

I want to have a table with numbers ± errors and units (or a percent sign). Ideally, the numbers are aligned at the decimal separators and the ± sign. Here is my best solution so far using siunitx ...
6
votes
1answer
567 views

Align decimal marker with thousands separator using siunitx

My table consists of two groups of rows. The first group contains large values (X,XXX). The second groups contains smaller values (0.XXX). Siunitx aligns all numbers based on the position of the ...
3
votes
1answer
184 views

siunitx table alignment

I want to align both the numbers and the text to the left using siunitx' S column type. I tried: \documentclass[ngerman]{scrreprt} \usepackage{babel} \usepackage[locale=DE]{siunitx} ...
3
votes
1answer
86 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} ...
2
votes
1answer
79 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 ...
6
votes
1answer
164 views

How to ignore hard space (~) in siunitx number parsing

I used to format number grouping with a protected space (~). Now I'm switching to siunitx's \num. According to the package documentation ... The formatter removes ‘hard’ spaces (\, and ~) but ...
5
votes
1answer
64 views

How can I use \SI from siunitx inside \replaced from changes?

I'm trying to rceord some changes using the changes package - I've already done a lot of the text, and had to work around display maths but I've got a simply value typeset using siunitx, and changing ...
5
votes
1answer
142 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, ...
6
votes
0answers
52 views

Defining a list and range of \ang values in siunitx

The angle processing function \ang provided in siunitx to print angles are printed in arc format with degree, arcmin and arcsec separated by semi-colons: \ang{1;2;3} Is it possible to define a ...
17
votes
6answers
846 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 ...
0
votes
1answer
65 views

print hour & minutes in french style

I'm using babel, datetime & siunitx but I don't see an automatic way to mark and to write time in the french style. It's possible with plain hour with datetime: SI{18}{\hour} -> 18 h. But for ...
3
votes
3answers
84 views

Table alignment help

I have three fairly minor problems, but I can't seem to figure out how to fix them. First Problem: Even though I have 'gaps' in my Latex editor between the semi-colon and the number after it (e.g. ...
5
votes
2answers
87 views

Table alignment problem

So I wasn't happy with how esttab was formatting my regression tables from the statistical program Stata. So I instead I decided to attempt to build my own skeleton table, which had better formatting, ...
6
votes
2answers
267 views

Basic S Column Alignment with siunitx package

OK, what am I missing here? Why is the S column not aligning on the decimal: The desired result is the data aligned on the decimal and centered within the column: Code: \documentclass{article} ...
6
votes
1answer
104 views

Can I write a range in [0-1) style with siunitx?

I want to give a range of degree in my document. One end is explicitly inside the range, while the other is outside. Is there a "correct" SI way of writing a range with an inclusive and exclusive end ...
4
votes
1answer
68 views

One header for all subtables: Correct arranging of Columns

I am trying to create a table consisting of three other subtables. I have tried it with two versions (see e.g Alignment Problem in Table environment). There are three problems: 1) The Columns of the ...
5
votes
2answers
657 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 ...
5
votes
1answer
70 views

Dotted vertical line in math array + siunitx?

This works until I uncomment siunitx. I presume this is a bug? Should I file anywhere? \documentclass{article} \usepackage{amsmath} \usepackage{arydshln} \usepackage{mathtools} % Uncommenting this ...
1
vote
2answers
83 views

\num with parameters in siunitx table

I have a couple of different methods to solve a diven problem and I want to compare them in a table. My aim is it to automatically add the relative deviation. I got some problems using siunitx within ...
1
vote
0answers
98 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" ! ! ...
9
votes
1answer
267 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
30 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 ...
11
votes
1answer
198 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}\\ ...
4
votes
1answer
152 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 ...
1
vote
0answers
99 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
71 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
121 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, ...
2
votes
0answers
129 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
194 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
261 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
117 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
124 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
700 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{ ...
5
votes
1answer
97 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
296 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
175 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
368 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
286 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
98 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
131 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
143 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
218 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
148 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
74 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
104 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. ...