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

siunitx tables and commands between columns

I'd like to add parenthesis around some columns in a table, using the siunitx package. I'm using the > and < column specifiers, and they seem to work... except in the last column, where some ...
4
votes
1answer
110 views

Why do I have to choose between global and local settings for siunitx tabular behaviour?

This is a follow up to Numbers in tables: align by decimal point *and* flush right?. In a tabular set with siunitx, I can give formatting options or in the \sisetup{} command or in the ...
1
vote
2answers
166 views

Including range is multi-part numbers

How do I produce something like "4 x 5 x (10--15) mm^3" in siunitx? Thanks!
7
votes
1answer
249 views

multi-part numbers and units in siunitx

I'm trying to type set something like this "4 x 5 x 6 mm^2". the following command using siunitx package does not generate what I wanted. \SI{4 x 5 x 6}{mm^3} Instead, it produces “4 mm^3 x 5 mm^3 ...
8
votes
1answer
199 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 ...
5
votes
1answer
522 views

Exponent notation in siunitx

I would like to use numbers in siunitx where the main number and uncertainty have exponents like: \num{1.1e-2\pm0.1e-2} However this gives a Misplaced sign token error and I have to first find a ...
8
votes
1answer
200 views

LaTeX's datatool package together with siunitx

I want to use the datatool package to read csv files and parse them to LaTeX tables. Furthermore I want to use siunitx to format the numbers from the csv file. Have a look at the following example: ...
4
votes
1answer
162 views

Defining \ang in siunitx

My Problem: I see that siunitx needs Latex3 support. Unfortunately I don't have this support (with respect to using latex on a server for which I am not admin). An older version of siunitx.sty ...
3
votes
0answers
137 views

How to define a style for drawings using a special font and siunitx?

I would like to define a style (e. g. style=techDraw) that gives me the possibility to define the behavior of all technical drawings made by tikz or imported as pdf_tex a. s. o. when the style ...
2
votes
1answer
551 views

Degrees, as numbers or units in SI system

When typesetting degrees the correct way is to make the degrees symbol part of the number (without the space between the degree symbol and the number.) Technically in the SI system then degrees C or ...
7
votes
1answer
313 views

\usepackage[group-separator={,}]{siunitx} Not working with longtable?

I have a table with very long counts (in the millions), so I would like to add commas. I have tried to use siunitx in a variety of ways in the preamble: \usepackage[group-separator={,}]{siunitx} ...
2
votes
1answer
175 views

How can I align numerical and angle values in a table using siunitx?

As described in DIN 461, units such as "Degree", "Minute" or "Second" should stay with their numerical value when labeling the tics of a coordinate system. I have no proof, but I think that this rule ...
6
votes
2answers
254 views

siunitx - distinguish unit with prefix and without

I would like to distinguish two cases when using the unit \byte: if used without prefix it should be written as "Byte" in the text if used with prefix, e.g. \kilo\byte, I would like to get "kB" Do ...
21
votes
1answer
350 views

How can I make a standalone document loading siunitx work?

I've got a standalone document that uses siunitx: % subdocument.tex \documentclass{standalone} \usepackage{siunitx} \begin{document} \SI{10}{\kilo\newton} \end{document} I'd like to include this ...
4
votes
1answer
66 views

How to format expl3 floating point number using siunitx

Code \documentclass{article} \usepackage{expl3} \usepackage{siunitx} \setlength\parindent{0pt} \begin{document} \ExplSyntaxOn \fp_new:N \mynumber \fp_set:Nn \mynumber{5} \fp_div:Nn \mynumber{2} ...
5
votes
2answers
201 views

unicode-math interferes with siunitx

The Problem I'm using unicode-math and the font TeX Gyre Pagella Math. Also, I use siunitx to denote my quantities. Unfortunately, the option \micro of siunitx doesn't get expanded to µ, but is ...
9
votes
1answer
182 views

Kerning between V and / in Palatino and Euler

Edit 1 I made the test with real palatino font and Neo-Euler, with the same result (As far as I can see) \documentclass{standalone} \usepackage{fontspec} \setmainfont[] {PalatinoLTStd-Roman.otf} ...
2
votes
1answer
249 views

xkeyval gives error with siunitx on some LaTeX installations

\documentclass{article} \usepackage{siunitx} \begin{document} \SI[per-mode = fraction]{3.00e8}{\meter\per\second} \end{document} I've tested this on three different computers, all running ...
6
votes
1answer
471 views

SI Unit Volt Ampere (VA) printed wrongly with space

The symbol Voltampere VA should be printed without space between V and A, is there a way to correct that with siunitx? \documentclass{article} \usepackage{siunitx} \begin{document} ...
0
votes
0answers
147 views

typeset large uncertainties using siunitx

I have some entries in a table where the uncertainties are very large compared to the value due to outliers in the data: \documentclass{article} \usepackage{siunitx} \usepackage{booktabs} ...
6
votes
1answer
208 views

\bfseries and alignment in table

I'm trying to highlight some decimal-point aligned entries in two large tables which are arranged in two columns. I'm using \bfseries to do this and unfortunately this seems to be affecting the ...
2
votes
1answer
90 views

How to typeset hh:mm:ss time format in math mode?

What's the correct way to typeset a daytime in the format hh:mm:ss in math mode? For example in $2:13,12\,\mathrm{min} = \SI{133,12}{s}$.
6
votes
1answer
531 views

Recommend way to get angular velocity in degree with siunitx

The siunitx package has a special macro for setting angles in degrees called like \ang{42}, which renders as , i.e. sets no space between the number and the unit as recommended and in contrast to the ...
5
votes
1answer
93 views

siunitx carry error when rounding? \num{89.80} renders as 810 [closed]

I've found what I'm afraid is either a bug or a supremely foolish error on my part: whenever I ask siunitx to render \num{89.80}, rounding by figures, it renders it as "810.". Likewise, \num{898.0} ...
11
votes
1answer
178 views

Leading zero for azimuths using siunitx

Azimuths are often written with a leading zero, e.g. NE as 045°. I am using the siunitx package to format all the other quantities in my document with the \SI macro, e.g. \SI{100}{\metre} but ...
4
votes
1answer
116 views

Specific unit output using siunitx

Consider the following example. I would like to use the \SI command from siunitx to type the following: \documentclass{article} \usepackage[separate-uncertainty=true]{siunitx} \begin{document} ...
4
votes
1answer
133 views

How to display numbers in the format 12.3 (4.56) in a table column?

I would like to print numbers in a table in the form 12.3 (4.56) using siunitx. How can this be achieved? I'm a bit worried that siunitx changes the numbers in various ways and I would like to ...
3
votes
2answers
134 views

How to vertically align 'numbers' in a table? [pairs of numbers given as strings]

I display two sorts of values (say, A and B) in one table. The values are generated in R and I automatically create strings like "A (B)", so all values of type B are put in parentheses and are ...
7
votes
1answer
152 views

How to perform arithmetic within siunitx?

I often put comments in my documents to remind me where a number comes from: \SI{39.68}{\milli\metre} deep % 0.31 * 128 I'd like LaTeX to calculate the product by itself. I wrote a function to do ...
12
votes
1answer
589 views

Scientific Notation Only For Large Numbers

I have a table full of numbers. Most of them are floating point numbers that are less than one, some are integers from 1-100, and a few are large (×10^75). I know how to set the precision of the ...
11
votes
1answer
391 views

Unwanted behaviour of siunitx

Consider the following example. Code \documentclass{article} \usepackage[per-mode=symbol-or-fraction]{siunitx} \begin{document} \[ \frac{x}{\SI{4}{\m\per\degree}} \] \end{document} Output ...
7
votes
1answer
188 views

Is there a more convenient way to represent (1,2+3,4) m with siunitx?

Background: I want all decimal numbers in my TeX input file use . as the decimal separator. If my document is translated to German (for example), the . can be globally converted to , by locale ...
14
votes
0answers
648 views

Best practice for typesetting physical quantities using siunitx [closed]

Consider the following example. Code \documentclass{article} \usepackage{amsmath} \usepackage[ locale=DE, output-product=\cdot, product-units=single % I use this option a lot in the document, ...
2
votes
1answer
62 views

Odd behaviour when dashes are add in a table?

Using the following MWE : \documentclass[12pt,a4paper]{report} \usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry} \usepackage{booktabs} \usepackage{siunitx} ...
11
votes
1answer
319 views

siunitx and engineering 'E' notation

Is it possible to use the siunitx package to typeset numbers with the "E" notation so that the output might look like 1E3 instead of 1 x 10^3
7
votes
1answer
176 views

Postprocessing pgfplotstable results using siunitx

I am trying to use the \num command from siunitx inside a table made with pgfplotstable, because I need the format given by siunitx with \sisetup{scientific-notation = true} and all the advantages of ...
4
votes
0answers
129 views

Asymmetric uncertainties with siunitx package [duplicate]

Is it possible to typeset asymmetric uncertainties, e.g. $0.84_{-0.01}^{+0.02}$ with the siunitx package?
4
votes
0answers
359 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
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} ...
0
votes
1answer
397 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
102 views

Include a value and its uncertainty both rounded properly

The output of a program is a value and its uncertainty. I want to include them in a tex document correctly rounded. value_uncertainty.txt: 12345.67890 0.987654321 scientific_document.tex is ...
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 ...
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 ...
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 ...
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, ...
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 ...
1
vote
1answer
292 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
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 ...