{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
45 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
49 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
68 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
73 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
40 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
45 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
34 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
53 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
92 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
81 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
41 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
57 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
65 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
53 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 ...
3
votes
1answer
93 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
23 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
74 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
70 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
43 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
82 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
99 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
147 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
95 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
42 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
134 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
197 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
93 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
167 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
101 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
177 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
111 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
136 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
71 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
231 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
38 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
54 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
66 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
261 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
56 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} \...
4
votes
1answer
71 views

In the siunitx package, how do I get it to separate the uncertainty's exponent?

I want to have \num{1.4 \pm .7 e5} look more like Instead of like I couldn't find a switch for this in the SIunitx documentation. Is it possible to make SIunitx typeset numbers like this? MWE: ...
0
votes
0answers
48 views

Table formatted with siunitx - zero per cent not showing

This is my MWE %!TEX option = --shell-escape \documentclass[ 10pt,journal,compsoc,twoside]{IEEEtran} \usepackage{siunitx} \usepackage{graphics} \usepackage{setspace} \usepackage{...
1
vote
1answer
43 views

What's the cleaner way to have translation of “inch” to Portuguese (“polegada”, symbol “pol”) when using siunitx?

Isn't it declaring a new unit? \DeclareSIUnit\polegada{pol} Loading a locale? (I couldn't find Brazilian or Portuguese.) Adding a translation? How can I do that? Edition: image included to show ...
3
votes
0answers
43 views

Color a subset of digits in SIUNITX

I am writing a presentation with Beamer, where I show the benchmarks of a program I wrote. This involve comparing a lot of number coming from different sources. These numbers can differ only in the ...
4
votes
2answers
87 views

Combination of newtx and fontspec breaks siunitx

I am trying to use newtx and fontspec on XeLaTeX, and it looked OK until I used siunitx. The problem is negative signs are not printed by \num etc. How can I fix this? Here is MWE: \documentclass{...
2
votes
1answer
113 views

Macro to emulate \SI macro of siunitx package

I am using pandoc to convert a .tex document into a .docx. The tex document uses the siunitx package. As pandoc can not interpret the macros in the package, I have to write dummies for the macros I ...
2
votes
1answer
147 views

I am trying to convert into scientific notation

I am trying to convert the following table with scientific notation (e.g. e^-01), but it's not working. Here is a minimal working example for my thesis. Thank you very much for your help! \...
2
votes
1answer
59 views

Formatting S columns with percent

Why in the following tables the results of formatting of S columns are different, i.e. dependent on, where the column is in table? Consequently those tables have different width. \documentclass{...
4
votes
1answer
318 views

Missing $ inserted, again [closed]

I've tried a number of things to get this thing to work, to no avail. \documentclass{article} \usepackage{lineno} \usepackage{graphicx} \usepackage{mhchem} \usepackage{textgreek} ...