{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

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 ...
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} ...
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 ...
6
votes
1answer
104 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
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 ...
2
votes
1answer
41 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
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 ...
5
votes
1answer
125 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
70 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
66 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
198 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
208 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
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
367 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
76 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
204 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
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 ...
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
80 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 ...
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 ...
7
votes
2answers
258 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 ...
1
vote
2answers
121 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
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} ...
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 ...
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
214 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
414 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
52 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
93 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
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 ...
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) ...
9
votes
1answer
214 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
82 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
266 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
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 ...