{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

9
votes
2answers
191 views

how to get square brackets with \SIrange{}{}{}?

I'd like to get something like this: [-40 ; 80] °C Instead I'm getting: Below is a MWE. I've tried to include all necessary packages for siunitx, as written in its documentation; there are more, ...
3
votes
2answers
182 views

Removing space around tabular columns set with siunitx

OK, first off, this table is horrendous looking and desperately needs help. But what I'd really like to know is how to eliminate some of the extra white space between the columns set with S in the ...
2
votes
0answers
73 views

Put brackets around value and uncertainty with exponent in tables with siunitx [duplicate]

I have a number with an exponent and an uncertainty that I want to display in an S-column in a table. When I just put it in, the spacing is terrible, and if I tell the column how much space to reserve ...
3
votes
1answer
130 views

Why does siunitx remove the space after \percent?

When using siunitx to write percentages, I run into a problem with missing spaces. Why does that happen? And what would be the best practice for writing percentages in text? \documentclass{article} ...
5
votes
2answers
235 views

How to put numbers in parenthesis in the S column using siunitx package

In the following minimal code, when I replace the l columns by S I get an error message saying invalid-number!! Invalid numerical input '(4.36)'.!! See the siunitx documentation for further ...
6
votes
3answers
271 views

How do I write $\sim$ approximately with the correct spacing using siunitx?

This question is similar to this one, only that I'm using the siunitx package: \documentclass{minimal} \usepackage{siunitx} \begin{document} The temperature is \SI{\sim 200}{\kelvin}. \\ The ...
3
votes
1answer
185 views

Fundamental Physical Constants in SI Units with siunitx

I would like to write e.g. the Bohr magneton in SI units without writing yJ/T and the nuclear magneton (the following code is inconsistent with siunitx-notation: $\mu_\text{N}\approx \SI{5\times ...
0
votes
1answer
48 views

Using is siunitx, how do I put symbols in the number, e.g. to format $\mu_0$

The permeability of free space I have $\mu_0$ = 4$\pi$ $\times$ \SI{E-7}{\volt\second\per\ampere\per\metre} because $\mu_0$ = \SI{4$\pi$ E-7}{\volt\second\per\ampere\per\metre} How do I ...
3
votes
1answer
92 views

How to make temperatures with decimal comma? [duplicate]

I was asked to write a document where I have to put temperatures like -51,4 degrees celcius. How can I do that in LaTeX? I tried \usepackage{siunitx} ... \SI{-51{,}4}{\celsius} but it turns the ...
3
votes
1answer
89 views

siunitx table leading zeros

How to preserve the leading zeros of the errors in a table using siunitx' S column type. \documentclass[ngerman,english]{scrreprt} \usepackage{babel} \usepackage[locale=DE]{siunitx} ...
3
votes
1answer
191 views

siunitx table alignment

I want to align both the numbers and the text to the left using siunitx' S column type. I tried: \documentclass[ngerman]{scrreprt} \usepackage{babel} \usepackage[locale=DE]{siunitx} ...
3
votes
1answer
93 views

Custom font family with siunitx

I'm trying to set some relatively large tables in my document. I used fontspec to create a new font family, which I use only to set tables. Specifically, I'm using the Bell Centennial font to set my ...
4
votes
1answer
99 views

Improve legibility in a siunitx table

I am a rather basic user of LaTeX, so please be kind. ;) I am using the siunitx package to align numbers on tables, and this is a rather similar question to this one: Centering table column titles ...
5
votes
2answers
149 views

Centering on the decimal separator, figure font selection

I'd like to format a column with numbers with a decimal point. In my body text I use old-style figures for numbers, and lining figures in equations. If I use dcolumn my tables use lining figures, ...
1
vote
0answers
44 views

MinionPro, siunitx and some character substitution: Bad mathchar (32768) [duplicate]

I've been using a solution that allows me to: Use proportional figures in text and tabular figures in tables; Force siunitx to set "symbols", e.g. ( ) - in the text-font instead of the math-font, ...
4
votes
0answers
107 views

siunitx with reciprocal option misses \cdot between numerator and denominator

I have a minimal example of an siunitx usage which has some unwanted behavior, maybe a little bug. \documentclass[a4paper,11pt,fleqn]{book} ...
0
votes
0answers
27 views

Access to the current siunitx parameter settings

Is there a way to access the parameter settings of the siunitx package? In particular, I would like to create a command that behaves differently depending on whether parse-numbers=false was set. The ...
13
votes
2answers
183 views

'e+08' (don't suppress 0) notation in columns with S-specifier

for symmetry reasons in a large table I want the scientific format with 2 digits (i.e. e+08). By default it suppresses the 0. Here is what I do: \documentclass[]{article} \usepackage{siunitx} ...
7
votes
1answer
163 views

Is it possible to make siunitx typeset exponents in “cramped” style?

I'm using siunitx to typeset physical quantities. The result is not always ideal with many exponents in my eyes, because the exponents increase the line to line distance. At least this is my ...
6
votes
1answer
223 views

Typesetting longitude or latitude followed by a comma

How do you typeset a latitude followed by a comma? Using siunitx it looks like there's too much space: \documentclass[12pt]{memoir} \usepackage{siunitx} \begin{document} At the latitude ...
3
votes
1answer
129 views

How to use siunitx with mathdesign and Adobe Garamond fonts?

I have seen this question, but in making an MWE I discovered that this happens without fontspec loaded at all. I would expect that siunitx's mode detection would cause output to match the numerals in ...
2
votes
1answer
68 views

Controlling the decimal position of the uncertainty while using multi-part-units in siunitx

How can I write the following without \pm? (66 ± 4.4) s I can achieve the same result with \SI[separate-uncertainty=true]{66 \pm 4.4}{\second}, but I thought the plus-minus symbol could be ...
7
votes
1answer
88 views

Line break in siunitx product numbers

I was wondering if there is a way to allow for line breaks within product lists of the siunitx package: \documentclass{article} \usepackage{showframe} \usepackage{siunitx} \begin{document} This is ...
5
votes
1answer
237 views

Scientific Notation Only For Large Numbers — with uncertainty

I've been using Betohaku and Bruno Le Floch's answer to Scientific Notation Only For Large Numbers to turn scientific notation of as follows: \documentclass{standalone} \RequirePackage[ ...
5
votes
1answer
86 views

How to properly format number in denominator with siunitx

I'm discussing fuel efficiency in liters per 100 kilometers (L/100 km). My first thought was to do the following: \si[per-mode=symbol]{\liter\per\num{100}\kilo\meter}} % renders: L/100km However, ...
2
votes
2answers
98 views

How do I use IfStrEqCase within a siunitx command?

I am having trouble using \IfStrEqCase from xstring inside \num from siunitx: \documentclass{article} \usepackage{xstring} \usepackage{siunitx} \newcommand{\bla}[1]{% \IfStrEqCase{#1}{{a}{1}% ...
3
votes
1answer
59 views

Combination of siunitx and light weight font fails to compile …?

Question I am trying to use the package siunitx in combination with the Opensans Light font. To make siunitx detect the font weight, I pass \sisetup{detect-weight}. However, the document fails to ...
6
votes
1answer
213 views

Problem aligning binary and hexadecimal numbers in siunitx table

Could you tell me what's wrong with next code? I want to get a three columns tabular where numbers are typeset with typewriter family and centred below its header. Numbers won't have any decimal part, ...
7
votes
1answer
106 views

siunitx: Detecting \mathversion{sans}

Is there a way to tell siunitx to use the \mathversion{sans} font in the following example? \documentclass{scrartcl} \usepackage[T1]{fontenc} \usepackage{helvet} ...
6
votes
1answer
288 views

How to change the 'verbatim' font in biblatex references?

Cross-post of http://latex-community.org/forum/viewtopic.php?f=48&t=24483 but since I get no answer there I'm hoping someone over here can help. The Goal: I want to use a custom font (Calluna and ...
5
votes
0answers
61 views

Hightlight specfic digits within siunix's \num

I would like to highlight specific digits in a number. Since the number is large I would like to use \num{} from the siunitx package. Of course I can do it manually as in the MWE below, but was ...
8
votes
2answers
286 views

Table with Tabu & siunitx not working

I am trying to make a table with tabu and using the sunitx package to align and round the entries of my table. However I keep getting the following error: ! siunitx error: "unknown-option" ! ! ...
8
votes
2answers
391 views

Automatically spacing the tilde (~) symbol as a prefix number using the `siunitx` package

I'm trying to work out if there is a way to get siunitx to natively handle the ~ symbol (\sim) in the same way that it can handle the < and > operators before a number, as I would like to be able ...
2
votes
0answers
107 views

siunitx package use with tex4ht and generation of invalid mathml for units

This file \documentclass{article} \usepackage{siunitx} \begin{document} \SI{10}{\square\meter} $\SI{10}{\square\meter}$ \end{document} Builds fine in padlatex, but fails in the HTML generated by ...
1
vote
0answers
71 views

Problem with uline and table-format in siunitx table

I asked a previous question about underlining data in a table when using the siunitx S column definition (see Use of underline and siunitx in a table). The advice given was perfect until I added ...
5
votes
2answers
916 views

Unit spacing with siunitx in an equation

I'm just starting to get to grips with the siunitx package, but I've noticed that there seems to be some issues with regards to unit notation spacing in an equation. With siunitx it is possible to ...
3
votes
1answer
110 views

Use of underline and siunitx in a table

I have a table of numbers that are aligned using the 'S' format of siunitx (so they are aligned by the decimal point). I need to mark the statistically significant numbers somehow, and using bold font ...
12
votes
0answers
141 views

siunitx disturbs spacing of \, in math with xelatex

In the following example - compiled with XeLaTeX - the spacing of \thinspacing/the value of mu (used by \,) is disturbed if \SI is used in the math before: \documentclass{article} ...
1
vote
0answers
78 views

Number-Alignment with siunitx in tables [closed]

Update... after a update to recent version of siunitx, everything is fine now. Thanks a lot @daleif and @crissov :-) \documentclass[ngerman,a4paper]{scrartcl} \usepackage[utf8]{inputenc} ...
7
votes
2answers
234 views

Number alignment in tables with some values in partial boldface (all but the decimal point)

I want to align decimal values in a table with some values printed in bold. Just by itself, this is no problem. We can use the siunitx package and \robustify\bfseries to do the trick as described, ...
1
vote
0answers
68 views

uncover cells in siunitx table beamer

I wish to show a calculation and update a table to help keep track of things. I use siunitx and booktabs in my beamer presentation. I want to have the numbers in the table aligned on the decimal ...
4
votes
1answer
67 views

Unwanted space between negative number and footnote marker

I have managed to produce a table that looks like I imagined it to, so all is well there. The only problem I am having is with my footnote markers. I am using threeparttable and siunitx, and I want to ...
6
votes
1answer
94 views

Using math-rm and parse-numbers option in math environment for siunitx

I would like to achieve the following for the number part using the math-rm and parse-number option in siunitx: $[(12+2)\times n]$ However, I observe that when I turn the math-rm option to ...
3
votes
1answer
130 views

Siunitx Won't Display Reciprocal Powers

I have several SI units in my document which I would like to typeset using the siunitx package. According to the documentation the default mode for the \per command is 'reciprocal' meaning \si{m\per ...
0
votes
0answers
45 views

no '=' among input-comparators in `\num{…}`

I want to use = in the argument to the siunitx \num{...} macro. I'd like to be able to write something like: This gives a total of \num{9x14=126} grid cells. Currently, this produces ! siunitx ...
2
votes
2answers
168 views

Remove trailing zeros when using siunitx

Consider the following example: \documentclass{article} \usepackage{multido} \usepackage[ round-mode = places, round-precision = 4 ]{siunitx} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n ...
8
votes
2answers
617 views

the \percent macro is not working in siunitx package

I get error when I use the \percent macro in the siunitx package. Here is the code : \documentclass[]{beamer} \usetheme{CambridgeUS} \usepackage{siunitx} ...
3
votes
1answer
253 views

siunitx with product-units, scientific-notation and exponent-to-prefix

When using the siunitx package I have noticed some strange and unwanted behaviour. I was hoping someone can help me determine if this is a bug or I'm just using it incorrectly. I've created two ...
1
vote
2answers
214 views

Header paragraph, alignment and column sizing in longtable

How can I add a heading paragraph below the title and before the toprule on the table below? When I use \multicolumn and add a paragraph, it doesn't seem to work. I used \table and \tabular before and ...
10
votes
1answer
159 views

siunitx: Decimal alignment with 'less than' sign

How can I align the p-values that contain the 'less than' sign in the last column in this table and also specify spacing between individual columns to improve the layout? \documentclass{article} ...