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

Why is the tnote of my threeparttable's table cheekily protruding? How can the width be (automatically) adjusted here?

Why is the tnote of my threeparttable's table cheekily protruding? How can the width be (automatically) adjusted here? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tabulary} ...
4
votes
2answers
806 views

siunitx rounding in table with parentheses

I'm trying to create a standard regression table with standard errors in parentheses below the coefficients, while using siunitx to align the numbers on the decimal point, and to round the numbers. ...
5
votes
1answer
606 views

Asymmetrical tolerancing

I am new to LaTeX, tentatively using it to prepare a complicated industrial document (laboratory test report). Thanks to help recently obtained here, I have discovered the magnificent capabilities of ...
4
votes
0answers
360 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 ...
11
votes
3answers
265 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 ...
43
votes
5answers
3k views

Why use a package to typeset units?

I've seen a lot of posts about different packages for typesetting units and their relative strengths and weaknesses. Most posts seem to agree that the siunitx package is the most up to date package, ...
0
votes
1answer
401 views

How to get line-breaking / multirow to work in my beginner's table?

I can't seem to get the multirow or pbox to give me a line break (of "automatic" width). The following won't compile successfully: note the two variations in the "TOTALLY" line. How can I fix it? ...
1
vote
1answer
80 views

siunitx: Error while including value

A value is saved in a file (value.txt, let's say). The command \SI{\input{value.txt}}{\someunit} gives the error: Argument of \input has an extra } How can I read numbers from an external file ...
8
votes
1answer
1k views

How to format SI units?

I get 1.0 Nm. But how to get 1.0 N.m \documentclass{article} \usepackage{siunitx} \begin{document} \SI{1.0}{\newton\meter}\\ 1.0~N$\cdot$m \end{document}
3
votes
1answer
128 views

How to automatically switch unit systems?

The question Why use a package to typeset units? made me think about something else: In non-scientific context one may have to provide data for persons using ... imperial units (shiver). But there may ...
7
votes
1answer
302 views

Wrapper for siunitx' \SI macro to automatically split number and unit

Problem I use the siunitx-package to typeset numbers and units with correct spacing etc. There is a command \SI{<number>}{<unit>} for that. However, it would be much easier to write ...
44
votes
1answer
10k views

Aligning numbers by decimal points in table columns

Let me begin by stating that I did google the answers (and I'll reference to them soon). Yet each of the resources I found discussed one particular method, I'm interested in a comparison of the ...
3
votes
2answers
1k views

In the siunitx package, how do i get it to produce uncertainties with the \pm symbol instead of parenthesis

Using the siunitx package, if I specify an error with the \pm symbol then it automatically converts it to a form using parenthesis. I would like it to not do this and keep the \pm symbol, but still ...
1
vote
1answer
294 views

Too narrow S-column in siunitx

I'm making a small table with numbers and units given with the \SI{num}{unit} call. However, the units stretches outside the table width, such that the booktabslines (or any other line) looks too ...
2
votes
1answer
154 views

Can the siunitx table alignment feature, S, align ratios?

I'd like to align a list of ratios in a column of a table by the colon. Is this possible using siunitx? For instance ratios like the following. 1:0.9 1:1.0125 1:0.99
2
votes
1answer
877 views

siunitx update breaks things

I upgraded to v2.1 of siunitx since the version in ubuntu's package manager (1.3?) is pretty old. Things seem to have broken. I might have got something wrong with the installation, or I might be ...
5
votes
1answer
289 views

Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath

I'm trying to automatically format numbers in a way that doesn't convert say .8 to 0.8 while at the same time scientific notation is converted to exponent-free notation. siunitx seems to be able to do ...
1
vote
0answers
39 views

How to I fix my axis to suit the correct order of magnitude? [duplicate]

Problem: It's the times ten to the 3 bit part which bothers me. Not just that is exists but also because it's positioned itself in a strange place. My files is formatted so it is in MHz so I don't ...
6
votes
1answer
196 views

ctable and siunitx: Last column does not center correctly (possible incompatibility?)

I would like to use ctable in my thesis for tables and graphics and I also would like to use siunitx for formatting numbers and aligning numbers on the decimal marker in tables. Everything seemed to ...
6
votes
1answer
196 views

Problem using mmap, mathpazo and siunitx

I have these packages in my preamble: siunitx, mmap, mathpazo that somehow seem to mess things up. A minimum working example that shows the error: \documentclass[a4paper]{article} \usepackage{mmap} ...
0
votes
1answer
966 views

Siunitx installation: I can't find file l3docstrip.tex

I have some problem trying to compile siunitx. When I do latex siunitx.dtx, I get the following message: ! I can't find file `l3docstrip.tex'. l.77 \input l3docstrip.tex Where am I supposed to find ...
3
votes
2answers
250 views

Siunitx's \micro symbol has serif

I am trying to reproduce the look of the micro symbol in the siunitx documentation; see for instance the following picture: However, when compiling the following code: \documentclass{article} ...
4
votes
1answer
132 views

Wrapping or adding line breaks in header cell of siunitx's S-type column

When using the siunitx package, is it possible to either "wrap" or insert line breaks in the header cell of an S-type column (see Section 4.6 of the documentation)? I have a relatively long table ...
4
votes
2answers
167 views

Problem with \SIlist with two values and list-final-separator = {, }

First and foremost, thanks to Joseph Wright for developing and maintaining siunitx package. I have a problem with \SIlist macro. The desired result: 3.23 (dd, J = 3.9, 0.9 Hz, 1H). and I'm ...
11
votes
2answers
419 views

Why do the standard siunitx settings not detect font weight?

Using KOMA-script I got a bold font for chapter/section titles. I had a unit, \SI{1}{\something}, in one of them which was not set in bold font. Giving siunitx the following options ...
6
votes
2answers
168 views

siunitx does not work with overline

When I am typing a laboratory for physics, I tried using \overline inside SI from the siunitx package, like so: \begin{align} \begin{split} s &= \frac{d}{t}\\ &= ...
4
votes
2answers
367 views

Font mismatch with Linux Libertine and siunitx package

Following example: \documentclass{scrbook} \usepackage{amsmath} \usepackage{amssymb} \usepackage{microtype} \usepackage{siunitx} \usepackage{fontspec} \setmainfont{Linux Libertine O} ...
8
votes
1answer
314 views

pgfplots - x unit with siunitx

I want to use x unit=something to draw the units to an axis. In the manual I find this to use siunitx to do so: \pgfplotsset{ unit code/.code 2 args={\si{#1#2}} } Now I make a plot: ...
10
votes
1answer
899 views

Make pgfplots typeset axis units as reciprocals using siunitx

pgfplots has a library units that allows to typeset units in axis labels provided through x unit=<unit>. Through the key \pgfplotsset{unit code/.code={\si{#1}}}, it can be made to typeset the ...
6
votes
1answer
125 views

coordinate number format \ang{}

In a table, I am listing several coordinates. I want to use a number format such as this W 95°13'14'' W 95°03'00'' ... I am using the \ang{} environment of the siunitx package. ...
6
votes
1answer
168 views

Align math contents in a table

While trying to display some data in a table, I use tabu and siunitx. I want the content to be centered by the dot. However, the cell at last column, first row is not centered. ...
4
votes
1answer
175 views

Aligning Tuples of Decimals with PgfplotsTable

In this question, Jake gave an awesome answer that shows how PgfplotsTable can be used to read tab-delimited data from a file, and typeset the parsed decimals in scientific notation such that all of ...
1
vote
1answer
242 views

siunitx with svg graphics

I am using pdfLaTeX (TeX Live 2011) to compile a document. Unfortunately it does not compile. Again, my example compiles flawlessly with TeX Live 2009. I include an SVG/PDF graphics following this ...
7
votes
1answer
168 views

Using siunitx in captions?

I am using pdflatex(texlive 2011) to compile a document. Unfortunately it does not compile. ! Undefined control sequence. \metre ->\ERROR l.69 ...feld \num{6}{\metre} mal \num{6}{\metre}} ...
6
votes
2answers
440 views

Vector notation in siunitx

I'm trying to use the siunitx package to format a number which is a vector (using \hat{x} to represent a vector in the x direction). Using \hat{x} leads to complaints about invalid tokens. After ...
2
votes
2answers
450 views

Table out of margin

I created this table using siunitx package since values must to be represented in scientific notation. Unfortunately the table goes out of margin. How can I fix the issue? ...
4
votes
1answer
145 views

ctable decimal alignment

I'm trying to replicate siunitx's decimal alignmnent in tables, using ctables. \documentclass{article} \usepackage{ctable} \begin{document} \ctable[] {rc} {}{ \FL \textbf{Data} & ...
2
votes
0answers
123 views

Are packages siunitx and xfrac incompatible? - “redefsymbols” [closed]

Is this a bug? Where can this be reported? Can someone of you report this? Code: \documentclass{article} \usepackage{siunitx} \usepackage{xfrac} \begin{document} bla \end{document} Output: ...
20
votes
1answer
721 views

Consistant formatting with siunitx and pgf: Thousands Separator

I like the default behavior of the siunitx package in that the thousands separator is not applied to four digit numbers, but is applied when the number of digits exceeds four. In documents that ...
6
votes
1answer
641 views

Align siunitx columns in numbers table

Here is a table but it has a problem: the column of 1, 20, 50, and 100 aren't perfectly aligned to others. How can I do that? MWE \documentclass{article} \usepackage{siunitx,booktabs,multirow} ...
12
votes
1answer
374 views

Align numbers and separated uncertainties in tables with S columns

If I have a table like this \documentclass{article} \usepackage{booktabs} \usepackage[separate-uncertainty=true]{siunitx} \begin{document} \begin{table} \centering \begin{tabular}{ ...
4
votes
1answer
140 views

Incompatibilty between siuintx and linguex?

\documentclass{article} \usepackage{linguex} \usepackage{siunitx} \begin{document} Foo \end{document} This MWE produces a plethora of error messages, regardless of the order in which those two ...
5
votes
1answer
192 views

siunitx: combine “\num” and “\SI” and change order of arguments

I'm trying to combine the \num and \SI command of siunitx and change the order of the arguments. In particular, what I want to achieve is a new command ...
3
votes
1answer
644 views

siunitx S column does not align numbers without dot

I have a table that uses the S column type provided by siunitx. Unfortunately, if a number does not have a . it is not aligned properly. Yes, i could write number. but then the table will list the ...
9
votes
1answer
217 views

Store results of a calculation automatically under a new macro name

As I am now accessing values from tables via a macro to make dynamic references in the text (see here) and make calculations with it, I need a way to make the resulting variables under which the ...
6
votes
1answer
179 views

Siunitx + Junicode font: Overfull hboxes

The following MWE, using Junicode, creates 4 overfull hboxes. But any other font I tried (e.g. Linux Libertine O) creates no warnings. Any ideas? \documentclass{article} \usepackage{fontspec} ...
10
votes
2answers
2k views

Expressing capital M for molar in siunitx package

The following code isn't valid but conveys my intention: \SI{}{\micro\molar} as in micro followed by a big M. I don't want to use the explicit form of micro moles per L raised to the negative one ...
7
votes
3answers
253 views

amsmath - bidi - siunitx possible bug?

MWE: \documentclass{article} \usepackage[english]{babel} \usepackage{fontspec} \usepackage[detect-all]{siunitx} \usepackage{amsmath} \usepackage[math-style=ISO,bold-style=ISO]{unicode-math} ...
2
votes
0answers
173 views

xelatex select local math font

The problem I am facing is that I am typesetting with MinionPro-Regular.otf as the main font and MinionPro-Cn.otf for the captions. However I have to declare only one math font for the whole document, ...
11
votes
3answers
283 views

Aligning complex numbers in centre of table with siunitx

I'm trying to align complex numbers in the middle of a table column using the siunitx package for nicer alignment, but the numbers are centring based on where the decimal point would be on the real ...