{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

1
vote
0answers
53 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
20 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
21 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
34 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
788 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
43 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
42 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
122 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
50 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
81 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
72 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
55 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
47 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
42 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
25 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
94 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
515 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
34 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
47 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
68 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
100 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
253 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
556 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} ...
5
votes
2answers
96 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?
3
votes
1answer
45 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 = ...
2
votes
2answers
73 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
166 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
63 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
85 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 ...