Tagged Questions

{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

2
votes
2answers
453 views

Align position of decimal point within tabularx

I have made a table with 5 columns, of which I'd like the last 4 to be of the same width. Therefore I was told I should use tabluarx. Using this package my output looks fine, but I have also numbers ...
8
votes
1answer
439 views

Selectively use scientific notation in siunitx “S column”

My question is similar to Scientific Notation Only For Large Numbers and Adjust the exponent to switch between notations using siunitx I have a table which, for the most part, has numbers between ...
0
votes
0answers
377 views

tlmgr install siunitx problem

Method 1 (failed): tlmgr install siunitx sudo texhash Method 2 (failed): Download zip folder containing .dtx .ins files Unzip into MacSSD/Users/Username/Library/texmf directory Run sudo ...
5
votes
1answer
592 views

Statistical and systematics uncertainties with siunitx

I am writing a paper and need to include statistical and systematic errors with units. Using siunitx I would like to be able to do the following (for example) \SI{1 \pm 0.3 (sys) \pm 0.1 ...
6
votes
2answers
489 views

Problems using \addlegendentry in a loop with pgfplots

I have some spectra to plot, which I exported from the Siemens Xray toolbox, which works nicely with pgfplots. Since these are multiple files that look the same I think I can do it with a for loop, ...
7
votes
1answer
88 views

siunitx's \ang errors with variable

When I put a number into a variable and put that variable into \ang, I get an siunitx error: \documentclass{article} \usepackage{siunitx,pgfplots} \begin{document} \def\degreed{129.2234} ...
3
votes
1answer
337 views

Using siunitx to display confidence intervals?

Is there a native way of using siunitx to display the confidence interval of a value without using a separate calls of siuntix separate definition. I am doing something like this at the moment, which ...
0
votes
0answers
26 views

Highlighting SI: “invalid-token-in-number” [duplicate]

I need to highlight some parts of code containing both text and numbers using the siunitxpackage but I get an invalid-token-in-number, the token being a number! Here's my mwe: ...
2
votes
0answers
97 views

Change fonts for units in siunitx

In the rules of typography for my language there is a rule, that units (only units, not numbers) should be displayed in different font than the rest of the text. E.g. if all of the text has serif ...
2
votes
1answer
247 views

siunitx error: “invalid-number” from R

I have a document in .Rnw which I use to produce a .texdocument with kntir. I have a problem with the formula \num{\Sexpr{max(degree)}} which in R console produce 12598 but after the running knitr in ...
4
votes
1answer
243 views

Using text inside \num from siunitx

Consider this TikZ drawing of the table of elements (taken from here and edited a bit): \documentclass{article} \usepackage{verbatim} \usepackage{ifpdf} \usepackage{tikz} ...
2
votes
1answer
249 views

siunitx in scrreprt - problems with beamer class

I want to use the usepackage siunitx for my thesis (scrreprt). MikTeX asks for installing the documentclass beamer each time when I compile my document (and then freezes while installing). When I ...
6
votes
1answer
225 views

charter and siunitx: either the kerning is bad, or the micro doesn't follow the surrounding text shape. What can I do?

I'm using Charter (with the mathdesign package) for my main text font. As mathdesign isn't doing a good job at kerning (see "NOP." and "DEF." in MWE), I'm additionally loading the charter package as ...
3
votes
1answer
51 views

Both centering and left alignment in same column in S colummn from siunitx

Here we go again with an S column problem: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage[locale=DE]{siunitx} \DeclareSIUnit{\kroner}{kr.} \begin{document} ...
6
votes
1answer
426 views

Alignment at specific character with S column from siunitx

To avoid starting a new question yet again, I'll use this tread as the problem is the same as the first one. \documentclass{article} \usepackage{booktabs,dcolumn} \usepackage{calc} ...
2
votes
1answer
189 views

Conflict between glossaries and siunitx (possibly via hyperref) when defining color

I'm in the process of writing my thesis which has a large glossary. The hyperref and glossaries package allow for linking and colouring the references, which is great. Unfortunately the large number ...
7
votes
1answer
115 views

How to set font-family for \num to always coincide with surrounding environemnt

I am trying to set my global options for the \num{} output so that it correspond to the same font style of the surrounding text. I am using the siunitx package. After reading the package ...
8
votes
1answer
487 views

Preserving thousands separator with siunitx

I'm writing a paper and my advisor is requiring that all large numbers have a comma as a thousands separator. I've read this question which asks about how to make siunitx not throw errors when there ...
9
votes
2answers
470 views

SIrange typeset different in text and math mode

I observe a difference in the dashes typesetting when using SIrange in text or math modes. Any idea of why this happens? Here's the MWE: \documentclass{article} \usepackage{siunitx} \sisetup{ ...
1
vote
1answer
1k views

Add a percentage error using siunitx package

I have a problem with the siunitx package. What I would like to do is the following. I have a number which for instance equals 145 and has the units mm. However, there is also an error expressed in ...
6
votes
1answer
124 views

'e+0' notation in columns with S-specifier

I know it sounds silly but I want to have the scientific notation e+0 in a table with S specified columns. Currently it gives me only e0. It just looks better in my table to have the zero with sign, ...
4
votes
1answer
466 views

bold \angstrom (perhaps in conjunction with siunitx)?

How can I get a bold \angstrom (perhaps in conjunction with siunitx)? \mathbf{(\si{\angstrom})} or \bm{(\si{\angstrom})} or \boldmath{(\si{\angstrom})} does not work. An example- I want the ...
9
votes
2answers
729 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
167 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
155 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
320 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
145 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? ...
15
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
263 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
576 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
416 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
161 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
140 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
291 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
308 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
246 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
920 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 ...
9
votes
1answer
278 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
262 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
161 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
1k 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
490 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
246 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
395 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
371 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
78 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
323 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
216 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
415 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
714 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} ...