{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
55 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
70 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
124 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, ...
12
votes
2answers
156 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} ...
1
vote
0answers
42 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
59 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
25 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 ...
6
votes
1answer
144 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 ...
2
votes
1answer
84 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 ...
7
votes
1answer
64 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 ...
6
votes
1answer
103 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 ...
2
votes
1answer
39 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 ...
5
votes
1answer
123 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
68 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
65 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}% ...
2
votes
1answer
48 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 ...
5
votes
1answer
159 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
81 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
194 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
52 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
273 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
85 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
45 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
363 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 ...
7
votes
1answer
983 views

siunitx: localisation not working

I have just discovered the siunitx package and want to use it in a German language document. Unfortunately, I can't get the German word 'bis' instead of 'to' with the \SIrange command: \listfiles ...
2
votes
2answers
124 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 ...
3
votes
1answer
75 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 ...
11
votes
0answers
97 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
59 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
203 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, ...
21
votes
1answer
364 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 ...
1
vote
0answers
53 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 ...
2
votes
1answer
234 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 ...
4
votes
1answer
54 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
79 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
85 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
37 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 ...
7
votes
2answers
251 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
168 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 ...
7
votes
1answer
105 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 ...
10
votes
1answer
117 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} ...
1
vote
2answers
120 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 ...
7
votes
2answers
132 views

Freshman need to locally adapt SIunits

I just started to do my homework in \LaTeX to get ahead. (BTW, great motivation, learning two things at the same time.) Practicing the package SIunits at the moment. I live in scandinavia where we use ...
4
votes
1answer
153 views

Serious problems with table layout

I have some issues when creating my OLS regression in LaTeX and really hope, that some of you could help me. (I do not know how to make more columns and to add text like: ...
3
votes
1answer
123 views

Optimizing size (font AND width) of tables produced with dcolumn/siunitx

I have a couple of tables in my document, and it's time to finalize them. This means I want to optimize: 1) the size of the font (if possible obtain \normalsize as in the rest of the document, or at ...
4
votes
0answers
129 views

siunitx tabular numbers with separated uncertainty

I would like to format the space reserved for a number shown in a table with separated uncertainty. It seems that when I use the table-format option the brackets around the mantissa disappear. This is ...
9
votes
1answer
213 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 ...
5
votes
1answer
113 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 ...
17
votes
4answers
337 views

How can I convert units in LaTeX environment?

Example: \usepackage{siunitx} \newcommand{\temperature}[1]{\SI{#1}{\celsius}} \temperature{100} output: 100°C I would like something like: \newcommand{\temperature}[1]{\SI{#1+273}{\kelvin} ...
5
votes
1answer
212 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 ...