{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

2
votes
1answer
53 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
79 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
218 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
80 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
86 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
55 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
190 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
95 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
252 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
57 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
265 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
350 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
98 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
59 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
640 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
93 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
129 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
75 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
220 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
61 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
65 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
89 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
111 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
41 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
147 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
435 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
225 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
174 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
142 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
137 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
167 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
147 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
172 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
376 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
286 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
526 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
59 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
109 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
173 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
61 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
223 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
98 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
340 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
125 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
129 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
136 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
249 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
155 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
429 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
436 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 ...