{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

5
votes
1answer
242 views

Upright Greek font fitting to Computer Modern

I'm looking for an upright Greek font for single Greek characters (like "β-decay" or "µ-metal") which fits to the default CM/latin style, i.e. the upright version of the default italic math mode Greek ...
2
votes
1answer
438 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 ...
3
votes
1answer
55 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
95 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 ...
2
votes
1answer
168 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 ...
3
votes
1answer
59 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) ...
9
votes
1answer
219 views

Grouping digits according to the Indian numbering system in siunitx

\num{100000} prints 100 000 I want to have 1 00 000. Question: How to set siunitx package to do the above? Some more \num{1000} => 1 000 \num{10000} => 10 000 \num{100000} => 1 00 000 ...
6
votes
1answer
89 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
289 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 ...
5
votes
1answer
119 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 ...
5
votes
1answer
115 views

fancyunits VS siunitx

I am wondering which of the two packages (fancyunits or siunitx) is the best one to use ? is one of them depreciated ? is one if them more complete or easier to use or even more pretty ? which one is ...
6
votes
1answer
117 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
202 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
128 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
272 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
361 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
311 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
473 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
391 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
83 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
295 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
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
0answers
89 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
205 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
209 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
245 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
199 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
49 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
352 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
175 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
109 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
360 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
395 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
832 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
109 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
348 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
599 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
153 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
139 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
261 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
133 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
240 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
499 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
346 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
153 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
127 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
242 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
291 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
234 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 ...