{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

4
votes
4answers
183 views
+50

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 ...
1
vote
1answer
17 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 ...
12
votes
3answers
2k views

How to use siunitx and tabularx together?

I'm using the tabular features of siunitx (for what it is worth: v1.3 since I'm on TexLive 2009) to align numbers in tables, eg. \begin{tabular}{ p{1.5cm} S S S } bla & 1.23 & 4.5 & 67.89 ...
0
votes
0answers
19 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 ...
5
votes
2answers
642 views

Alignment of table header in column with decimal numbers using siunitx

I have a table with decimal numbers aligned at decimal point. In the column header, I have a % sign. In the code snippet given below, the percent sign is aligned at the left in the column, but I would ...
3
votes
1answer
65 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 ...
4
votes
1answer
83 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 ...
5
votes
2answers
109 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
17 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
41 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
53 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 ...
4
votes
1answer
90 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} ...
10
votes
2answers
328 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 ...
2
votes
2answers
31 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} ...
3
votes
1answer
106 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 ...
1
vote
1answer
228 views

Include siunitx package in subdirectory

I am creating a TeX project that uses the siunitx package. I would like to be able to place the siunitx package in a subdirectory, to simplify folder structure and to allow me to easily transfer this ...
5
votes
1answer
191 views

Problem with uline and table-format in siunitx table

I asked a previous question about underlining data in a table when using the siunitx S column definition (see Use of underline and siunitx in a table). The advice given was perfect until I added ...
2
votes
1answer
100 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 ...
5
votes
2answers
63 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} ...
3
votes
1answer
105 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
28 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
56 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 ...
2
votes
2answers
69 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 ...
1
vote
1answer
31 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 ...
2
votes
0answers
21 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
94 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 ...
2
votes
0answers
236 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
54 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} ...
7
votes
3answers
164 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 ...
3
votes
0answers
67 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
62 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
142 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 ...
20
votes
2answers
240 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 ...
2
votes
1answer
73 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
110 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
67 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
198 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
91 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
38 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
42 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
73 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
65 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
70 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} ...
2
votes
0answers
144 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. ...
0
votes
1answer
97 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 ...
0
votes
1answer
103 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
74 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} ...
5
votes
1answer
145 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 ...
3
votes
0answers
38 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
282 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} ...