{siunitx} is a package that provides consistent typesetting of physical quantities, allowing application of various typographic conventions with the same input syntax. This package should be used instead of the largely obsolete {siunits} package.
3
votes
0answers
17 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
...
8
votes
1answer
324 views
siunitx: Bold single numeric cells
I'm struggling to make a single numeric cell in an siunitx table bold. (A similar question for making a whole column bold is available here.)
I want to define a simple macro which I can set for the ...
4
votes
1answer
65 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
58 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
75 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
61 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 ...
10
votes
1answer
157 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
2answers
199 views
Adjust the exponent to switch between notations using siunitx
I have a big question about the siunitx package and I hope somebody out there can help me.
At first I want to use the automatic number conversion of the package. So I defined:
...
11
votes
1answer
103 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
...
6
votes
1answer
121 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 ...
8
votes
0answers
160 views
Best practice for typesetting physical quantities using siunitx
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
37 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}
...
2
votes
0answers
60 views
Wrong spacing with siunitx and gnuplottex [closed]
EDIT: This question turned out to be a gnuplot problem. If you are facing the same issue, update your gnuplot installation.
Versions known not to work: 4.4
Versions known to work: 4.6.2, 4.6.0
...
9
votes
1answer
79 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
6
votes
1answer
86 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 ...
3
votes
1answer
65 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
439 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
353 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 ...
3
votes
0answers
74 views
Asymmetric uncertainties with siunitx package
Is it possible to typeset asymmetric uncertainties, e.g. $0.84_{-0.01}^{+0.02}$ with the siunitx package?
3
votes
0answers
94 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
159 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 ...
38
votes
5answers
930 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
43 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
64 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 ...
0
votes
0answers
28 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 ...
6
votes
1answer
576 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
70 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
114 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 ...
38
votes
1answer
6k 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
664 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
115 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
71 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
681 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
144 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
37 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
98 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 ...
2
votes
1answer
119 views
number with subscript in siunitx
I would like to use output-decimal-marker = {--} in siunitx to align a column with molecular transitions where the states are separated by --. However I get a Missing $ inserted error when the state ...
0
votes
0answers
102 views
Support package expl3 too old when using siunitx [closed]
I am a new user of LaTeX and have benefited a lot from StackExchange website. I am trying to use siunitx package. It consistently gives me Support package expl3 too old error and pdf is not produced ...
6
votes
1answer
157 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
248 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
95 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
67 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
0answers
87 views
asymmetric errors with exponential
I'm using siunitx, but I don't see how to put an asymmetric error, like this one, in text nor in a tabular environment:
$\left( 1.09^{+0.28}_{-0.23} \right) \times 10^{-3}$
Is there a way with ...
4
votes
2answers
65 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 ...
9
votes
2answers
108 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
103 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}\\
&= ...
3
votes
2answers
169 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
133 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
604 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
48 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.
...





