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

Controlling pgftable numeric output

Please consider the following \documentclass{article} \usepackage{filecontents} % For tables \usepackage{pgfplotstable} \usepackage{booktabs} \usepackage{array} \usepackage{etoolbox} ...
2
votes
1answer
165 views

Simplify LaTeX document to satisfy editing office

I have a LaTeX manuscript prepared using a publisher class file (agutex) where I've used four packages (booktabs, glossaries, siunitx, graphicx). I use glossaries in particular for acronyms. After ...
2
votes
1answer
411 views

Problems with siunitx package?

Once I use the siunitx package, this error message prompts: ! File ended while scanning use of \__siunitx_table_rewrite_create_aux:w. <inserted text> \par <*> paper.tex I suspect ...
2
votes
1answer
90 views

How to correctly use siunitx to align number in the center of a table for number with preamble

I would like to have my numbers aligned left but centered in a table as in this solution, which I also tried to apply. Now my numbers are of the form ~24%. For a correct alignment I tried to protect ...
3
votes
1answer
57 views

strange warning when using newtxmath and siunitx packages together

I've just noticed that I'm compiling my documents I get something similar to the following warning: LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <5.5> not available (Font) ...
14
votes
0answers
700 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, ...
5
votes
1answer
117 views

Typeset a number with many digits in the align environment

Questions like this have been asked before, Here and here, but neither of these are within a math enviroment. In context, I would like to type set the approximate solution to an integral to 100 ...
6
votes
1answer
81 views

Use of siunitx, beamer and \maketitle simultaneously?

I'm using beamer and I'm not able to use the package siunitx features within the \maketitle environment. Minimal NOT working example \documentclass{beamer} \usepackage{siunitx} \title{\SI{5}{\micro ...
2
votes
1answer
263 views

Aligning the decimal point using siunitx and longtable?

I have just discovered that I couldn't do alignment of the decimal points using the siunitx and longtable packages. It throws errors, just to mention some for e.g.: Invalid numerical input 'e' Col1 ...
6
votes
1answer
108 views

siunitx overfull hbox dependent on table-format

There are a few similar questions (see here and here) regarding overfull \hboxes in siunitx tables but neither solves/explains the following. Consider this MWE: \documentclass{article} ...
2
votes
1answer
183 views

Alignment of siunitx S-column looks bad with big numbers

I have to put a bunch of numbers into a lab report, and I currently use siunitx with tabular and the S column type. It looks great for small numbers and large column heads. However, for small heads ...
5
votes
1answer
116 views

\SIlist with uncertainty AND units

Using the siunitx package, I want to create lists of values that have both uncertainties and units. They should appear in the document like this example: 4 ± 2 %, 3 ± 2 %, 2 ± 1 % and 3 ± 2% Here is ...
2
votes
2answers
234 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
225 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 ...
0
votes
0answers
278 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
406 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 ...
3
votes
1answer
504 views

Siunitx: alignment, parentheses and font size

I'm trying to align numbers (that are bolded, between parentheses, etc.) by decimal points in table columns while using the auto-round option of the siunitx package. The following code doesn't work: ...
3
votes
1answer
281 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 ...
2
votes
0answers
88 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 ...
7
votes
1answer
81 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} ...
0
votes
0answers
25 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
1answer
188 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 ...
1
vote
1answer
761 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 ...
2
votes
1answer
242 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 ...
5
votes
1answer
191 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 ...
4
votes
1answer
194 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} ...
11
votes
1answer
199 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 ...
6
votes
1answer
324 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} ...
3
votes
1answer
47 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} ...
2
votes
1answer
160 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 ...
8
votes
1answer
312 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
361 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{ ...
6
votes
1answer
105 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, ...
2
votes
1answer
327 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 ...
4
votes
1answer
300 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 ...
8
votes
2answers
549 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 ...
8
votes
3answers
8k views

siunitx: µ doesn't work

I'm using TeXnicCenter for Windows (7) and I'm a bloody beginner in everything that concerns LaTeX. I'm using the siunitx package for mathematical formulas and it works just fine... with one ...
4
votes
1answer
122 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 ...
2
votes
0answers
145 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
130 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
242 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 ...
9
votes
1answer
126 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? ...
1
vote
2answers
222 views

Including range is multi-part numbers

How do I produce something like "4 x 5 x (10--15) mm^3" in siunitx? Thanks!
13
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 ...
1
vote
1answer
117 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 ...
5
votes
1answer
744 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 ...
6
votes
1answer
434 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 ...
15
votes
2answers
208 views

siunitx not using kerning units correctly ahead of a sentence-ending dot (period, full stop)

If the unit is the final character in a sentence, the sentence-ending dot is not kerned correctly. MWE: \documentclass{article} \usepackage{siunitx} \usepackage{mathpazo} \begin{document} ...
7
votes
1answer
220 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
460 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 ...