{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
2answers
93 views

Formatting numbers with percentage points (p.p.)

I am using the siunitx package for formatting numbers along with certain units. The package is included with the following code: \usepackage[ detect-weight, exponent-product=\cdot, locale ...
1
vote
1answer
27 views

siunitx: how to get bold, aligned and separated in a table? [duplicate]

I have the following siunitxtable: \sisetup{separate-uncertainty=true} \begin{tabular}{ l S[table-format=6.0, table-figures-uncertainty=5] S[table-format=6.0, table-figures-uncertainty=5, detect-...
5
votes
1answer
81 views

Problem with aligning numbers with brackets surrounding them

english is not my native language, but I will try to explain my question the best way I can. My problem is the extra spacing between the L and T column which apparently comes when I write the numbers ...
0
votes
0answers
40 views

Decimal points interpreted as colons in Adobe Reader but not Chrome, et al

I have a maddening issue wherein the decimal points resulting from the rendering of siunitx's \SI and \num commands display properly in a PDF but are interpreted as colons by Adobe Acrobat Reader DC (...
0
votes
0answers
60 views

\ohm does not work with siunitx

I'm working with the siunitx-package and have some trouble with the \ohm command. Here is some code I wrote \documentclass[11pt,ngerman]{scrreprt} \usepackage[utf8]{inputenc} \usepackage{babel} \...
1
vote
1answer
47 views

Latex compatible code for both siunitx version 1 and 2

On one system, I have siunitx version 1 and on another, I have version 2 (I think). I already converted my code to be compatible with version 1, so that my table looks like: \begin{tabular}{@{} |c|S[...
2
votes
1answer
61 views

siunitx per-mode and math in s-column

I am trying to use an siunitx s-column with per-mode = reciprocal for an units column but want to have my unit multiplied with a power. If there is a native way to do this with siunitx I missed it, so ...
0
votes
1answer
74 views

Resolve rowcolor and column separator clash?

I want to create a table with Text aligned around the separator "V-" and color it using \rowcolor. The normal column separator @{V-} doesn't work with \rowcolors, thus I'm searching for a way to do it ...
3
votes
2answers
177 views

Simplify table without package siunitx

I would like to simplify to generate the following table in a more simplified way, without using the siunitx package. The following table gives me a \hbox overfull and don’t know why: \documentclass[...
3
votes
2answers
47 views

Display hexcode in table

I want to display some hexcode aligned in a table. This is what I got: \begin{table}[h] \caption{Dirty table} \centering \begin{tabular}{p{6cm}|p{6cm}} \textcolor{red}{0000 0000 0001 0000 0000 0000 ...
7
votes
0answers
61 views

siunitx: bold unit in S-column header [closed]

I'm trying to insert a bold unit with \si in a tabular header in an S-column. But siunitx simply refuses to set it in bold. It only works if I use another column type (or e.g. \multicolumn{1}{c}). ...
3
votes
1answer
71 views

Siunitx's Scientific Notation doesn't like huge numbers?

In the following MWE we have a \num command in the first line. It is printed as it should. But when I add [scientific-notation=true] like I saw in the manual, but it gave me an error and replaced the ...
2
votes
0answers
52 views

siunitx does not detect math font correctly

The following MWE resembles the structure of my thesis: \documentclass[fleqn]{scrreprt} \usepackage[minionint,lf]{MinionPro} \usepackage[sansmath,lf]{MyriadPro} \usepackage[detect-all]{siunitx} \...
1
vote
2answers
75 views

Dash when using radians in physics

So I have a number that is in units of millimeters-milliradians. Typically, it might be expressed as mm-mrad. How do I get that dash using siunitx?
1
vote
1answer
47 views

Having issues with siunitx matching the times font in a new SAE class

I worked hard to find a MWE for this issue, stripping out just about everything from my preamble and my SAE class file until I discovered that it seems the siunitx package does not play well with the ...
4
votes
1answer
51 views

Typeset siunitx-like percentage value in math mode

I'd like to typeset "10 %" with exactly the same spacing between 10 and % as in \SI{10}{\percent}. For some reason I'd rather not use siunitx in this particular instance. How do I replicate the ...
2
votes
1answer
37 views

Tight box around siunitx degree

I want the box around the degree symbol to be like the one around the exponent on the x. I thought \mbox{} would do it, but it does not seem to in this case. Code: \documentclass{article} \...
4
votes
1answer
59 views

Inconsistent spacing of suffix in siunitx formatted table

I want to produce a table with two prices in a row, using siunitx to achieve a pleasant and consistent display of the numbers. Trying not to repeat the currency symbol in the data rows, I insert it as ...
4
votes
2answers
95 views

Euler-Digits + siunitx hiding certain units (like Ohm)

It's been a couple of months since I last used my TeX, so I did some updates that became availabe (using MikTeX's software - Windows 7/64bit) and as of that moment, I noticed that my siunitx package ...
7
votes
1answer
93 views

Cannot define new unit with siunitx

I've been reading almost two hours through various posts that seem to have the same problem but none of the solutions worked for me. I want to define new units (in my case it's \thermal and \...
0
votes
0answers
48 views

Zero exponent with explicit plus in siunitx

Is it possible to have an explicit + in front of a zero exponent in scientific notation using siunitx package? Here is my MWE: \documentclass{article} \usepackage{siunitx} \sisetup{exponent-product=\...
2
votes
0answers
61 views

Table title and notes not appearing in PNAS

I'm trying to prepare a manuscript for PNAS and am running into issues with a table. As in this question/answer, the table is placed after the \end{article}. However, when compiling the document, the ...
5
votes
2answers
68 views

How to print tabular confidence intervals as [x, y] with siunitx?

What would be the recommended way to print a confidence interval as [x, y] in an siunitx S column? At the moment I have a two S column solution: \documentclass{article} \usepackage{siunitx} \begin{...
4
votes
1answer
56 views

Indexing with Binary Units using siunitx package

As per How to overwrite siunitx's binary prefixes, any changes to the binary prefixes need to be deferred to be after \begin{document}. However, it seems that if I am using those same binary ...
4
votes
1answer
98 views

Use libertine numbers in math mode and with siunitx

I am here again to seek your help. I would like all numbers in my document to be the same (in text or math mode). Now I have Please note also the size difference. What is the way to have all ...
1
vote
1answer
24 views

siunitx: Hortizonal alignment for S columns

I am trying to present tabular groups of means and standard deviations in the format M (SD). In the MWE how can I "tighten up" the horizontal alignment of each "M (SD)" group? I would like them to be ...
2
votes
1answer
96 views

siunitx: What is the correct way to output mean and standard deviation as “M (SD)” in an S-column?

I am trying to use siunitx in a psychology results table to line up decimals, and the table looks like this: \documentclass[]{article} \begin{document} \begin{table}[h] \begin{tabular}{@{}cc@{}} ...
1
vote
0answers
72 views

What is the way to write f=1 Hz with the siunitx package? [closed]

By using the siunitx package I know how to write: 1 Hz \SI{1}{\hertz} But, how to write ?: f = 1 Hz
1
vote
1answer
45 views

Partial number parsing in siunitx

I would like the second and third examples to be printed like the first ($\times$ instead of x, spacing, repeated unit). However, in order to make siunitx accept \sqrt{2} or 2^n, I need to turn off ...
2
votes
1answer
98 views

siunitx: Appended currency symbol mispositioned with aligned negative values

I'm trying to do some LaTeX-table-magic for a friend, and I've run into a strange issue I haven't been able to find a solution for. I'm using siunitx (along with booktabs) to align some values in a ...
8
votes
1answer
113 views

siunitx 'detect-all' does not honor fontspec's math font in Beamer

Problem statement The \sisetup{detect-all} option of the siunitx package does not work for me as expected in a Beamer presentation, which I would like to typeset as follows: Text in Latin Modern ...
9
votes
1answer
151 views

siunitx - How can I typeset (-1/2)?

I'm trying to typeset the unit Å^(-1) eV^(-½) with siunitx, using \sisetup{locale=DE} (I don't think this makes any difference here). Thanks to this question, I have been able to figure out how to ...
3
votes
1answer
103 views

pfgplotstable and siunitx, unit column from .csv file

I have some data in a .csv file that I would like to typeset with a combination of pgfplotstable and siunitx. Consider the following (not so extremely minimal) MWE who throws the error Undefined ...
2
votes
1answer
44 views

Overfull hbox with S column from siunitx

Based on a previous question I created the MWE given below. What I don't understand is that I get three Overfull \hbox (9.9778pt to wide) warnings. Where do they come from as they don't appear in the ...
2
votes
1answer
157 views

Customizing first column for each row in pgfplotstable

I have a confusion matrix where the first column (or in this case the second column) has the same labels as the first row (or in this case the second row). The problem I have is that these labels are ...
1
vote
1answer
220 views

Table formating problem with siunitx, parenthesis, and scientific notation

I am having an interesting issue with spacing with siunitx, parenthesis, and exponents in a table I am using. Currently I am trying to make a regression table with standard errors reported below the ...
5
votes
1answer
94 views

How to overwrite siunitx's binary prefixes

Is there something special that needs to be done to overwrite a binary prefix using the siunitx package? Overriding the SI prefixes is no problem. The MWE with \sisetup{binary-units=true} yields: ...
10
votes
1answer
169 views

Extract multiplier from siunitx prefix

Is there a way to extract the multiplication factor that each siunitx prefix represents. Basically, can I automate ExplainPrefix to correctly produce the correct output. Current output uses x as the ...
7
votes
0answers
102 views

siunitx: the detect-all option puts \celsius in math mode? [closed]

Something is wrong with the Celsius unit and the detect-all option (see below). I finally removed the detect-all option to fix the problem, but still, there may be some bug here. MWE: \...
0
votes
0answers
213 views

Package siunitx

I'm trying to use the package siunitx. Today (9th January 2016), I've made all the updates and the installations required to used it (l3Kernel and l3packages). And I'm still getting the following ...
3
votes
1answer
120 views

OldStyle numbers, the Fira Sans font and the siunitx package: incorrect % symbol

I am working on a document where I regularly use percentages. For that I'd like to use the siunitx package so that I can write \SI{56}{\%}. I also prefer to use OldStyle (or Lining) numbers. Currently ...
4
votes
1answer
144 views

siunitx: spacing between \num and a variable name

I am using siunitx to typeset numbers and units. But when typesetting numbers in front of a variable, I feel a thin space is missing. For example, with \num{0.1234}a I get (1), and with \num{0.1234}\,...
3
votes
3answers
75 views

using the package siunitx

I am trying to align the decimal number in my table. I would like to use the siunitx package. The code I wrote is: \documentclass{article} \newcommand*{\MyIndent} {\hspace*{1.5cm}} \usepackage{...
13
votes
1answer
245 views

How to omit group separators in the decimal part when using siunitx?

That's my MWE: \documentclass[a4paper,10pt]{book} \usepackage[load=addn,separate-uncertainty=true]{siunitx} \sisetup{% output-decimal-marker={,}, load-configurations=abbreviations, ...
1
vote
0answers
41 views

Drawing a force parallelogram on scale with \tkzCalclength and \tkzGetlength and siunitx

For making exercises on different scale and different force vectors I want to make drawings like this: The code is: \documentclass{article} \usepackage{tkz-euclide} \usetkzobj{all} \usepackage{...
4
votes
1answer
39 views

Errors with lualatex, siunitx and pgfplotstable replacing emdash

I'm referring to this answer from @Jake to replace the string --- of an input csv to \textemdash in a pgfplotstable table with the S column of siunitx. The provided solution works fine when pdflatex ...
2
votes
1answer
59 views

Sinunitx, fourier, euro, utf8 problem

In this MWE, I can't have € in math mode since I've updated siunitx package. Before it worked fine. I found that take the fourier package off make it work again \documentclass[border=3pt]{standalone}...
6
votes
1answer
70 views

Siunitx numbers within units preventing cdot use?

I'm using siunitx to handle my units for some notes I'm writing but am having a bit of trouble with defining units for glomerular filtration rate (a measure of kidney function). This is measured in ...
6
votes
1answer
285 views

mu (\micro) symbol in siunitx package is badly aliased

I'm using the siunitx package to display units, but I'm having a problem with the appearance of the Greek letter mu that results from the \micro command. The version in the package documentation looks ...
3
votes
1answer
57 views

User-defined unit macros with qualifiers break when used in fractional units

Consider the following MWE with siunitx: \documentclass{article} \usepackage{siunitx} \sisetup{detect-all} \DeclareSIQualifier\peak{p} \DeclareSIUnit\wattp{\watt\peak} \DeclareSIUnit\usd{USD} \...