{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.
4
votes
1answer
39 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
57 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 ...
8
votes
1answer
97 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
39 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 ...
5
votes
1answer
144 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
42 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
87 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
60 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
48 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}$.
5
votes
1answer
58 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} ...
3
votes
0answers
27 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
362 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
75 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
66 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
87 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
73 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
182 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
204 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
112 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
129 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
179 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
40 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
70 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
91 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
100 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
79 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
469 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
372 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
84 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
116 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
170 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 ...
39
votes
5answers
972 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
65 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
65 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
30 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
615 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
74 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
128 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 ...
39
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
705 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
128 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
83 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
689 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
154 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
109 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
128 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
132 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
162 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
300 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 ...






