{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

8
votes
2answers
642 views

siunitx and 'e' notation in Tables with S column

I have a problem using \sisetup{output-exponent-marker = \text{e}} in my table. I use the S-columns provided from the siunitx package. It does change to the 'e' notation but it does not delete the ...
2
votes
0answers
159 views

DeclareSIUnit failed [closed]

It seems that the dtx-file-contained \ul (for \micro\litre) doesn't work on my machine Undefined control sequence I have tried to install from the .dtx, the .ins and the tds.zip files, all from the ...
5
votes
1answer
145 views

unknown problem in siunitx

I'm trying to use the inch mark (the double prime) in a piece of text; in the past I've gotten away with 4 $''$ \times 6 $''$ but for some reason that doesn't work when that line is an item in an ...
2
votes
1answer
276 views

siunitx: bold single numeric cells + mathspec

I need to bold and align numeric values in a table while using both mathspec and siunitx packages. I've looked at siunitx: Bold single numeric cells for bold and alignment in a tabular environment ...
10
votes
1answer
135 views

SIrange with leading plus

When using siunitx, by default, \SIrange{-4}{+6}{\percent} will render -4% to 6%. Is there any general way to change rendering of the positive values with a leading "+" for the positive values? ...
14
votes
2answers
2k views

How much space between number and unit?

Javier Bezos (famous of titlsec, tensind, spanish ... packages; and now maintainer of babel) wrote a nice book on typography and scientific notation in spanish. He says (pag. 82) that the space ...
7
votes
1answer
246 views

siunitx alsoload option high energy physics

Until now (before release 2013/07/31) it was possible to use the option alsoload=hep. \usepackage[alsoload=hep]{siunitx} Actually I do not see how it should be possible to load the \gauss unit ...
5
votes
1answer
521 views

How do I set units in pgfplots without square brackets?

This MWE: \documentclass{article} % translate with >> pdflatex -shell-escape <file> % This file is an extract of the PGFPLOTS manual, copyright by Christian Feuersaenger. % % Feel free ...
2
votes
2answers
368 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
157 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
130 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
257 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
296 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
240 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
852 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
256 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
238 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
156 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
912 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
456 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
224 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
356 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
370 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
76 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
297 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
205 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
385 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
640 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
182 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
284 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
113 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
820 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
107 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
204 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
146 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
154 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
160 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
202 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
694 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
591 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
222 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
724 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
68 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
405 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
226 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
133 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?
6
votes
1answer
482 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 ...
4
votes
1answer
268 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
469 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
122 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 ...