{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
0answers
30 views

Table title and notes not appearing in PNAS [duplicate]

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 ...
1
vote
0answers
20 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
49 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 ...
5
votes
2answers
42 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} ...
0
votes
0answers
19 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} ...
4
votes
1answer
39 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
44 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
0answers
57 views

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

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
21 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
28 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
1answer
36 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
2answers
807 views

Include siunitx package in subdirectory

I am creating a TeX project that uses the siunitx package. I would like to be able to place the siunitx package in a subdirectory, to simplify folder structure and to allow me to easily transfer this ...
3
votes
1answer
57 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 ...
3
votes
1answer
180 views

siunitx table leading zeros

How to preserve the leading zeros of the errors in a table using siunitx' S-column type? \documentclass[ngerman,english]{scrreprt} \usepackage{babel} \usepackage[locale=DE]{siunitx} ...
2
votes
1answer
44 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 ...
7
votes
1answer
43 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
124 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 ...
2
votes
1answer
36 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 ...
2
votes
1answer
33 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 ...
1
vote
1answer
54 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
83 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
156 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
73 views

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

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: ...
11
votes
3answers
203 views

Siunitx, exponent-to-prefix, square

Update: siunitxis now updated with the feature requested/bug fix, and is available in Tex Live, and it works great. Reason for dragging this question up again With the answers I got the ...
0
votes
0answers
58 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
52 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
111 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 ...
1
vote
1answer
38 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
3answers
43 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}} ...
7
votes
0answers
96 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 ...
13
votes
1answer
187 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
24 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} ...
4
votes
1answer
26 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
37 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 ...
6
votes
1answer
100 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 ...
6
votes
1answer
516 views

Add custom key to display units in glossary with siunitx

I decided to enrich my list of symbols by adding a unit column with a newly defined key "unit". \glsaddkey {unit} {} {\glsentryunit} {\Glsentryunit} {\glsunit} {\Glsunit} {\GLSunit} A new ...
6
votes
1answer
49 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 ...
0
votes
0answers
35 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} ...
3
votes
1answer
37 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} ...
3
votes
0answers
36 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: ...
3
votes
0answers
35 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
49 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: ...
2
votes
1answer
69 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
101 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! ...
14
votes
5answers
3k views

How to use siunitx with non numerical values?

I understand that something like \SI{5}{\meter\per\second} defines a certain space between the number (5) and units (m/s). What should I use if instead of a numerical quantity I want a variable: R ...
4
votes
1answer
254 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} ...
2
votes
1answer
28 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. ...
2
votes
1answer
32 views

\luaexec inside \num causes errors

To me, an attractive feature in LuaTeX is the ability to effectively perform calculations directly in the document. Now say I want a command \proc that performs calculations and then formats the ...
10
votes
2answers
557 views

Time of the day or time period using the package siunitx

I would like to display the time of the day like 18h30 or 18h30m with siunitx. Is there a proper way to display time and time intervals? I have read some discussions on the Mailing-List, but it seems ...
2
votes
0answers
32 views

How to change rounding precision across rows in a table?

I use the package siunitx to print tables. In the following table, I would like to have a different rounding precision and number of printed decimal places for each row. \usepackage{siunitx} ...