{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

2
votes
1answer
32 views

Setvariable and siunitx exponent-to-prefix producing error“prefix-only”

I am trying to store SI-units in variables so that I can manipulate the number mathematically and show it afterwards with the correct prefix and exponent according to our schools scientific notation ...
1
vote
0answers
81 views

Calculations with siunitx and fp [closed]

I would like to use some variables for math-calculations, stored as SI-units, so that I don't have to retype their units every time I supply them into a equation. I am wondering if it is possible to ...
3
votes
1answer
86 views

siunitx option retain-zero-exponent not working in tabular

I'm trying to format a table using siunitx. There's a column I want to have with scientific notation in which zero-exponents are retained, but the output doesn't put the zero-exponent there even with ...
3
votes
1answer
42 views

Clash between siunitx and mdwtab

I just had the following error after including mdwtab while using siunitx inside a tabular block: ! Extra \fi. \@maybe@unskip ...skip \m@ne \lastskip \relax \fi l.18 1.0 & 0.0 \\ ...
5
votes
2answers
136 views

How do I automatically multiply columns by 100 to get percentage numbers in a pgfplotstable?

I have a csv file with percentages to load into a pgfplotstable. I already format them with siunitx but I did not find a possibility to shift the decimal point (multiply by 100) to get percentage ...
1
vote
1answer
26 views

Datatool and Siunitx - ERROR: Can't break out of anything

i'm constantly getting "! Package datatool Error: Can't break out of anything. " when using data tool and siunitx, if i change the S column definers to normal centered columns (thus not using siunitx) ...
3
votes
1answer
88 views

Symmetry between tables

I need to make these tables look the same. With the same column width I would like to make the top row independant and not have any vertical lines. Below the first row the columns should have a line ...
6
votes
2answers
515 views

Thermal conductivity unit

I am trying to type the unit for thermal conductivity w/mK in my document using the siunitx package but I get the wrong output. I'm writing \SI[per-mode = symbol]{113}{\watt\per\metre\kelvin} which ...
1
vote
1answer
51 views

Unit spacing in bibliography with siunitx

I am using the siunitx package to manage unit spacing in my text, but I just realized that it is not working properly when used in the references (using BibTex). TeXmaker does not through any errors ...
4
votes
2answers
125 views

How to use letter with SI unit in table using siunitx

I want this I (μA) and this ΔC (nF) but cannot seem to be able to use letter (instead off numbers) and how do I put the parenthese too. Thks in advance. \begin{document} \begin{table}[h!] ...
3
votes
2answers
79 views

siunitx inconsistent when using parse-numbers=false

In the MWE below I was expecting that even with the option parse-numbers=false. I would have the f written in math mode, not as regular text. \documentclass{article} \usepackage{siunitx} ...
1
vote
1answer
63 views

siunitx produces number too big error with large numbers

minimal (non)-working example: \documentclass{article} \usepackage{siunitx} \usepackage{pgfplotstable} \usepackage{filecontents} \pgfplotstableset{ header=true, trim cells=true, col sep=comma, ...
1
vote
1answer
45 views

pgfplots units breaks when using classicthesis

I have some math-expression I want to have as a unit in a PGF plot. However, the greek letter is replaced by a horizontal line, if I activate the classicthesis package. Here a MWE (it works if I ...
5
votes
0answers
43 views

Typesetting numbers in binary format [duplicate]

I am writing a document that occasionally contains large numbers in binary format. I originally typeset them with spaces between groups of four digits, e.g. 1010 0110 0111 1100. However, when copying ...
12
votes
2answers
389 views

Defining a new unit in siunitx that has a subscript

I would like to define a new unit, analogous to \electronmass, in the siunitx package but this time for the proton mass. So I just copy/pasted the definition of \electronmass from the style file and ...
4
votes
2answers
344 views

Does `ruledtabular` environment from revtex4-1 break the S column in `siunitx`?

I am trying to used the revtex4-1 document class for a paper, and I want to align the decimal point in columns of numbers. I am trying to use the S column type from the siunitx package. If I use the ...
2
votes
1answer
82 views

Packages siunitx and cancel not working together [closed]

So I tried to use the MWE in the answer to this question. However my output looks identical to the original post's problem. I checked using \listfiles and my version of siunitx has cancel support. ...
3
votes
1answer
41 views

Alignment of column headers in siunitx

I have the following table: \documentclass{scrartcl} \usepackage[locale = DE, round-mode = places, round-precision = 4]{siunitx} \usepackage{booktabs} \begin{document} \begin{table}[h] \centering ...
0
votes
1answer
137 views

package “charter” and “siunitx” problem with \textohm

Consider the following MNWE: \documentclass{article} %%% start code I can't touch \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{charter} % Serif: Bitstream ...
8
votes
1answer
108 views

Cannot declare molar units

I am trying to overwrite the small cap on \Molar to be a normal cap M and I cannot seem to change it. I have tried: \documentclass[12pt]{article} \usepackage{chemmacros} \usepackage{siunitx} ...
1
vote
1answer
34 views

Missing padding for S column in tabularx

I am trying to create a table that has a filling column in between. However, my last column (an S type) has not padding on the right side for reasons I do not understand. Here a MWE ...
0
votes
0answers
74 views

How to use tabularx and siunitx together with siunitx 2.6h / texlive 2015

This is a follow up question of this question: How to use siunitx and tabularx together? Updating to texlive 2015 (with siunitx 2.6h) seems to have broken the accepted answer. So the question is How ...
4
votes
1answer
184 views

Thousand Separator in LaTeX and LyX table

I want to get thousand separator in LyX tables. I had the following LaTeX code. It works fine for the second column but not for the first column and also when I import it into LyX it adds extra ...
3
votes
1answer
133 views

siunitx: Bold single numeric cells with turned off alignment

Having a table with numeric values, I want to achieve: Automatically grouping digits into blocks of three Highlight some cells in bold However, no alignment is needed. To achieve the first, I use ...
5
votes
2answers
482 views

Using siunitx, \ohm results in an italic Omega

The title basically says it all. I use siunitx with \usepackage[binary-units=true]{siunitx} \sisetup{locale = DE} For \SI{...}{\micro\ohm}, the \micro is output correctly (non-italic), and \ohm is ...
2
votes
0answers
19 views

Currency group separators for India [duplicate]

I am typesetting some Indian currency using spreadtab for calculations. I want to obey the usual conventions followed in typesetting Indian money amounts: One thousand (hazar) = 1,000 One lakh = ...
3
votes
1answer
133 views

Different prefixes in SIrange

I use the siunitx package for typesetting numbers, units and ranges. When typesetting large ranges of numbers, for example "150 kHz to 8 MHz", I prefer the notation with different prefixes, i.e. ...
4
votes
1answer
162 views

Putting numbers in a column in parentheses

I am trying to put numbers in some siunitx columns in parentheses like this: ---------------------------------- time/s (efficiency/%) ----------------------------- ID strategy A ...
3
votes
2answers
43 views

How can I define table column by width and align it using siunitx at the same time in a longtable?

I have this MWE: \documentclass[12pt,landscape,a4paper]{article} \usepackage{multirow} \usepackage{microtype} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{longtable} ...
4
votes
4answers
618 views

siunitx error: “invalid-number” Invalid numerical input 'e'

Well I've been working in some tables and for the number alignment I normally use the siunitxpackage since Mico helped me with this question. But I've had in these new tables an error I don't ...
3
votes
1answer
137 views

Display French instead of English while using \SIlist

While using \SIlist from siunitx package, say something like \SIlist{-3;3}{\Pa}, the following is displayed: -3 Pa and 3 Pa However, I am writing a report in French. How can I change the default ...
4
votes
1answer
55 views

l3fp keeping trailing zero in math calc

I would like to keep the trailing zeros when the data, used for internal calculations with l3fp, are printed. For example: \documentclass{article} \usepackage{siunitx} \usepackage{expl3} ...
2
votes
1answer
148 views

Misaligned vertical lines in table

In my document I use different kinds of tables, as shown below in a simplified way. My problem only affects the first table shown in the output. Strangely, the vertical lines between columns "B" and ...
3
votes
1answer
165 views

Siunitx S column with line break

I have a table with many S columns of the siunitx package containing mean and errors. The table is to wide for the page width when the mean and error are typed in one line. However breaking a line ...
2
votes
2answers
86 views

siunitx : forced parenthesis

Is there a way to force siunitx use parenthesis systematically ? I tried bracket-numbers but it's only if : There are certain combinations of numerical input which can be ambiguous. I'd like to ...
2
votes
1answer
38 views

\luaexec inside \num causes errors

To me, an attractive feature in LuaTeX is the ability to effectively perform calculations directly in the document. Now say I want a command \proc that performs calculations and then formats the ...
1
vote
2answers
123 views

How can I show a leading + sign in siunitx S column?

I'm using siunitx's S columntype to align numbers in a table. The numbers are percentage values which should all have a preceding sign (some - and some +). The numbers with a "-" are shown with a ...
4
votes
1answer
210 views

Is it possible to set per-mode for math and displaymath environment separately in siunitx?

I would like to globally define the per-mode of siunitx for math environment and displaymath environment separately. Is this somehow possible? Here is a MWE: \documentclass{article} ...
2
votes
1answer
71 views

Aligning number with siunitx in spreadtab including calculated numbers

I would like to have this kind of table \begin{spreadtab}{{tabularx}{\linewidth}{XS[table-format=4.2]l}} \toprule @{Was} & @{Betrag [\euro]} & @{Belegart} \\ \midrule @Nice People Charity ...
3
votes
0answers
151 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 ...
5
votes
0answers
77 views

Problem with empty cells in siunitx 2.6f [closed]

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
155 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 ...
5
votes
1answer
157 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
143 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
385 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
108 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
207 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
181 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
86 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 ...
5
votes
0answers
67 views

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

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 ...