{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
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
87 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
67 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
67 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
76 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
89 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
144 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
87 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
109 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
163 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
92 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
100 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
152 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
97 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
132 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 ...
3
votes
3answers
65 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}} ...
13
votes
1answer
217 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
36 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
38 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
50 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
60 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
228 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
49 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
64 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
46 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} ...
1
vote
1answer
42 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
42 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
83 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
104 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
135 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
54 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. ...
4
votes
1answer
306 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
0answers
38 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} ...
2
votes
1answer
50 views

Use of \SIlist macro in math mode

Let us consider the following MWE \documentclass{article} \usepackage{siunitx} \begin{document} text $\phi = \SIlist{10;15;60}{\degree}$; text text $\phi = ...
5
votes
2answers
139 views

How to keV^{inverse} in SI?

I would like to have $keV^{-1}$ in SI package. My unsuccessful attempt: \SI{}{ke \per \volt} giving How can you write keV to inverse in SI package?
2
votes
2answers
92 views

Apply Siunitx to every other row

I have a table that has alternating rows of percentages and counts. How can I conditionally apply SIunitx to every second row? I want the row of percentages to be left as it is (to one decimal ...
8
votes
3answers
199 views

Unit conversion tables macro/command

Conversion tables are useful converting units from system to another. For example, to convert 1 m^2/s to m^2/hr, we write: I usually generate this using tabular environment: ...
3
votes
2answers
96 views

csvsimple and siunitx

I'm trying to import data from a csv file and using the S column type from siunitx to format the numbers with this code: \documentclass{article} \usepackage{siunitx} \usepackage{csvsimple} ...
0
votes
0answers
15 views

How to typeset the size of multidimensional objects using siunitx? [duplicate]

What I want to write is The square has a size of \SI{3 \times 4}{\cm\squared}. However, it does not compile. These may be alternatives, but it's not semantically correct since an area is not ...
5
votes
2answers
102 views

Formatting longitude with siunitx

My question follows this one about formatting coordinate using \ang{} command of the siunitx package. When listing coordinate on a map, it is required to use two digits for minutes and seconds. As ...
4
votes
1answer
80 views

Ångström sign not outputting correctly with libertine OT1 font

I have this document: \documentclass{article} \usepackage[OT1]{fontenc} \usepackage{libertine} %\UndeclareTextCommand{\l}{OT1} %\DeclareTextSymbolDefault{\l}{T1} %\UndeclareTextCommand{\AA}{OT1} ...
8
votes
2answers
131 views

bold exponent in siunitx

I have a large table of numbers generated from a script, and I use siunitx to format the output nicely. I would like to highlight the important part of the numbers, which is the exponent, in bold, so ...
3
votes
1answer
29 views

Marking single table values with dot alignment

I have a table with multiple columns that I have aligned with the S column type from siuntx. In each column I want to mark some special values in a clear and subtle way, I've used the * symbol for ...
2
votes
1answer
63 views

Font of siunitx in captions not transfered by options of the caption package

The package option defines the caption text as italic, but this is not reproduced by measures inserted using the \SI functions are not. What can I do ? The MWE: \documentclass[10pt,a4paper]{report} ...
11
votes
3answers
238 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 ...
3
votes
1answer
49 views

Siunitx, saving variables and calculation with FP

I am trying to store variables with some info about them, perform calculations on the variable number and display it correctly with siunitx. This works great when only saving numerals as the variable, ...