{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
0answers
53 views

Round numbers while using plus/minus sign

I'm working currently with the siunitx-package and I would like to use scientific-notation mode, while rounding the numbers. It all works well until I use the \pm command to seperate the uncertainty ...
4
votes
0answers
58 views

Problem with empty cells in siunitx 2.6f

I've just updated to TeX Live 2015, which updates siunitx to v2.6f. Now tables that include some empty cells do not compile anymore, with the error: ! Misplaced \cr.\reserved@c ->\ifnum 0=`{}\fi ...
4
votes
3answers
136 views

Speed up compilation of a document with a table created with siunitx

I have this table that I want to include in my document: \documentclass[12pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[utf8]{inputenc} % kodovani ...
3
votes
1answer
48 views

Math font changing and siunitx?

Consider this MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T2A, T1]{fontenc} \usepackage{amsmath} \usepackage{lmodern} \usepackage{siunitx} \usepackage{mathpazo} ...
2
votes
1answer
58 views

pgfplotstable error on read

I have a Problem with a \pgfplotstableread command. I m always getting the output: Package PGF Math Error: Could not parse input 'VasconcelosEtAl2012' as a floating point number, sorry. The ...
6
votes
2answers
87 views

Currency formatting with siunitx

This is just an oddity. I use siuniutx to format currencies (with some spacing every three digits, and to 2 decimals irrespective of input). However the prefix does not like the usual \pounds symbol ...
2
votes
3answers
64 views

How to fit a table with long header cells in “S”-type columns?

Well fit tables in LaTeX is hard for me, and I don't know if there is a manual with good practices about it. I need to create a table with S columns contending numbers, but the header of those columns ...
5
votes
1answer
164 views

“12,345” and “1.234,5” with siunitx

\num{12345} formats as "12,345". That looks right. I want that thousands separator. \num{1.2345} formats as "1.234,5". I'm not used to seeing the comma group separator used after the decimal like ...
6
votes
1answer
72 views

Center-set column headers in siunitx S columns

I'm using the siunitx package to automatically put thousand separators in all my tabular environments. It works fine, but not if you have a column header. This seemingly innocuous MWE fails to ...
3
votes
1answer
27 views

Passing unit macro to siunitx with pythontex

I want to write a macro combining \pythontex and \siunitx packages. More precisely, I want to make calculation with (complex) numbers in python and then typeset result in \SI{number from ...
4
votes
0answers
37 views

siunitx: Warning “\textsuperscript invalid in math mode” and missing spaces

Is there a reasonable explanation for those warnings/errors? How can I avoid them properly? If I use pdfLaTeX, I get the same (incorrect) output, but no warning. %!TEX TS-program = lualatex ...
2
votes
2answers
62 views

Different column widths under a multicolumn prevent appropriate centering

How can I center the two columns inside the multicolumn? MWE \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \sisetup{input-ignore={,}, ...
4
votes
1answer
57 views

Comma format error (siunitx)

Why is the comma missing in the rendering of 1,089 ? MWE: \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} ...
1
vote
1answer
59 views

Align colored numbers in table

How to align colored numbers in the last line with other numbers in the same column? \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} ...
0
votes
1answer
80 views

LaTeX error for siunitx in a longtable environment

I've been working on a large document which makes frequent use of \include{}ed longtable environments and siunitx. Recently, longer expressions using siunitx have been causing compile errors which I ...
1
vote
0answers
36 views

Finding current siunitx settings (or extracting expl3 keys)

The siunitx package provides a way of formatting (SI) units. It has a plethora of internal settings that the user can set with \sisetup. For example, \documentclass{article} \usepackage{siunitx} ...
0
votes
1answer
91 views

Sans-serif font in siunitx does not work with \electronmass

As default font, I want to have a serif font (MinionPro in my case). But for figure and table captions I like to use a sans-serif font (MyriadPro in my case). If I want to give a mass in electron ...
4
votes
1answer
50 views

Formatting and aligning of floating point numbers in table

I've got the following table: \documentclass{report} \usepackage[intlimits]{amsmath} \usepackage{floatflt} \usepackage{caption} \usepackage{listliketab} \usepackage{tabularx} ...
3
votes
0answers
32 views

Conflict between siunitx and sansmath?

I use the following preamble to get a sans serif font in my docs: \usepackage{lmodern} \renewcommand*\familydefault{\sfdefault} \usepackage[T1]{fontenc} The siunitx package works well with this, ...
2
votes
2answers
218 views

calorie unit with siunitx

How to get the calorie unit in siunitx package. Thanks \documentclass{memoir} \usepackage{siunitx} \usepackage{amsmath} \usepackage{amssymb} \begin{document} ...
2
votes
1answer
27 views

Conflict between ULon and siunitx

I am trying to create an automatic numbering of remarks which will be highlighted. It does produce the expected result but it crashes and I don't understand what is wrong. Below is the minimum working ...
5
votes
1answer
107 views

Why does TeXstudio's autocomplete suggest missing commands like \microfarad, \microampere, etc.?

TeXstudio's autocomplete suggested \microfarad as a command so I attempted to use it but received an "undefined control sequence" error. There are easy workarounds (\micro\farad and \micro\F), but why ...
2
votes
1answer
71 views

Siunitx adding the \cdot and \chemfig to get extra top space in a tabular

i am having a problem compiling, i get an error of missing $ and { also } when i use \si....... [siunitx package] ----> I tried the \sisetup... but it gives me an error, may be it has conflicts with ...
4
votes
1answer
57 views

center dollar values in siunitx S table column

How do I get \$ values centered properly in this table? This should be straightforward, but a frustrating search on this site and in siunitx documentation didn't help me. Of course I can always ...
1
vote
1answer
31 views

table formatting help (centering on a dash)

I'm not happy with the look of this table: I think the dashes in the entries in the first column should align vertically. I don't like the extra space after the integer percentages in the second ...
1
vote
0answers
48 views

Replace missing character (minus) in text font for use in siunitx with fontspec

I'm forced to use a commercial (Univers) font in my presentations, which obviously does not contain a dedicated \minus sign, which is called by siunitx. (Though I'm not sure if it is \minus or ...
0
votes
1answer
72 views

MinionPro: Tabular Figures in Tables and Proportional Figures in text

I am using TexMaker and MinionPro and I would like to keep proportional both in figures and in the rest of the document. For figures, I use this configuration: \documentclass[english]{article} ...
5
votes
1answer
69 views

siunitx does not detect number style

Siunitx does not recognise the oldstyle numbers, despite the detect-all setting, can you help me? MNWE: \documentclass{standalone} \usepackage{fontspec} \setmainfont{TeX Gyre Pagella} ...
1
vote
1answer
35 views

How to get siunitx to centre columns of integers correctly

I've just discovered siunitx, which seems to do what I want with tables, that is centering a column but keeping numbers decimal aligned. I find it doesn't work for a column of integers (say 99, 9, 99, ...
6
votes
2answers
152 views

How to declare a variable as a unit with siunitx?

In astronomy the value of the Hubble constant is still somewhat uncertain. Therefore, it is customarily written as $H = h \SI{100}{\kilo\meter\per\second\per\mega\parsec}$, where $h$ is now considered ...
2
votes
1answer
83 views

siunitx table with separate-uncertainty is too wide

I'm using a tabular environment with the siunitx type S and the package option separate-uncertainty, like in the example below. In the resulting document, the columns are too wide, and the 3rd column ...
5
votes
1answer
86 views

centering column headers in siunitx table column

In this table with some big numbers the column headers centered over the decimal point look odd to me. And, too, the columns seem a little too wide. I've puttered a bit with other answers here and ...
3
votes
1answer
99 views

Select largest value from a list of variables in LaTeX

I am trying to adapt this example How to iterate over a comma separated list? as my base. Except, rather than display all values, I actually want to iterate through all the values and only return / ...
11
votes
1answer
117 views

siunitx: How to hide a part of a number

I want to suppress a number in a \SI-command. \documentclass{article} \usepackage{siunitx,textcomp} \sisetup{per-mode=symbol} \begin{document} current output: (\SI{{}e9}{\per\litre}) % current ...
4
votes
2answers
61 views

Using the macro generated by \pgfmathprintnumberto in a \pgfmathparse or \SI

To demonstrate, here's a MWE: \documentclass[a4paper,titlepage]{article} \usepackage{pgf} \usepackage{siunitx} \begin{document} \pgfmathparse{1 + 1} ...
0
votes
1answer
24 views

How do I increase spacing between unit components in pgfplots?

I'm using pgfplots (version 1.12) with the units library. When I create a unit label \si{molecules \cm^{-2}}, this turns up without any spacing between "molecules" and "cm". When I use the same ...
2
votes
1answer
58 views

Format table number alignment

I am having a few problems with the following code: \documentclass{standalone} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{tabular}{ l S[table-format = 4.2] ...
4
votes
1answer
220 views

Showing plus or minus error in siunitx

Using the notation we were taught, 0.0010 plus or minus 0.0001, for example, would be: (1.0 +/- 0.1)*10^-3s Is there a way to print this in latex using the siunitx package?
3
votes
0answers
44 views

siunitx: mu is jerky + memory object warning [closed]

First of all, I am sorry if this was already mentioned before (I did look at threads with problems regarding mu in siunitx). The problem is that when I use code: \SI{1}{\micro\metre} I get a ...
6
votes
2answers
115 views

siunitx: why is there a value in \num{} with empty argument?

I accidentally stumbled upon the following Problem: If I use the \num command of the siunitx package and leave the argument empty like \num{}, I get a value in my pdf output and it seems to ...
4
votes
1answer
136 views

Comma, not full stop, as decimal separator in numbers in siunitx table

Consider the following code (taken from this answer by egreg): \documentclass{article} \usepackage{xparse,siunitx,booktabs} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n ...
4
votes
1answer
60 views

Using Rowstyle with S-column of siunitx

Is it possible to use a rowstyle with S-column provided by sinuitx? When I try the following the S-column does not allign the numbers (they are not even recognized as actual numbers): ...
6
votes
2answers
151 views

How to localize package siunitx to spanish?

I'm writing a report where I use units inside a table. In few cases I need to use a range with units. But since I'm writing not in English (actually in Spanish) The result of a range using the ...
20
votes
2answers
225 views

Removing double punctuation when SI units with dots occur at the end of a sentence

I'm writing a document that uses a mix of SI and atomic units. The latter are usually written in the slightly awkward notation p = 1 a.u. with dots and all. (I know, it's not great, but what can ...
1
vote
0answers
56 views

Change font in column centred using siunitx [closed]

I have centred a column about the decimal point using siunitx v2.6 (column B). The font used in this column is different compared to that used in the other column (column A). How do I make the ...
2
votes
1answer
61 views

Percentage sign in column centered about decimal point

I know how to centre a column about the decimal point using the siunitx package. How do I include a percent sign in the column heading, ie "Heading (%)"? Neither \% or \SI{}{\percent} seem to work. ...
5
votes
1answer
263 views

How to write 7.5 ( ± 2.5) × 10 − 5 in siunitx?

I can seem to find a question like this one, but maybe I don't know how to properly describe it, so sorry if it has already been answered. I am using siunitx but I want to put my range in parentheses ...
2
votes
2answers
130 views

How to write hyphen between number and unit in an attribute (30-s acquisition) with siunitx?

I think the title says it all. I browsed through the whole manual of siunitx, but I could not find an option allowing to write 30-s acquisition with a single \SI... command (I could of course use a ...
12
votes
1answer
218 views

Print “< .001” in table with siunitx

I have a table where one column are p values. p values should be formatted without leading zero, and if they are smaller than .001, they should be reported as "< .001". Numbers should be aligned at ...
0
votes
1answer
53 views

siunitx automatically rounds the values?

\documentclass[12pt,landscape,a4paper]{report} \usepackage{amsmath} \usepackage{siunitx} % nice alignment for decimals \begin{document} \begin{tabular}{ >{$}c<{$} | ...