{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
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
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 ...
6
votes
1answer
688 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
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 ...
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{...
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} \...
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
148 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! \...
15
votes
5answers
4k 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 m/s?...
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} ...
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{...
2
votes
1answer
38 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
642 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
41 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
150 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
1answer
51 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 = \SIlist[list-final-separator={\,\mathrm{...
2
votes
2answers
97 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 place)...
8
votes
3answers
204 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: \documentclass{article}...
3
votes
2answers
106 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} \begin{...
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
106 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 ...
8
votes
2answers
136 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 ...
4
votes
1answer
87 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} %\...
3
votes
1answer
33 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
69 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} \...
3
votes
1answer
51 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, ...
2
votes
1answer
39 views

Setvariable and siunitx exponent-to-prefix producing error“prefix-only”

I am trying to store SI-units in variables so that I can manipulate the number mathematically and show it afterwards with the correct prefix and exponent according to our schools scientific notation ...
1
vote
0answers
86 views

Calculations with siunitx and fp [closed]

I would like to use some variables for math-calculations, stored as SI-units, so that I don't have to retype their units every time I supply them into a equation. I am wondering if it is possible to ...
3
votes
1answer
42 views

Clash between siunitx and mdwtab

I just had the following error after including mdwtab while using siunitx inside a tabular block: ! Extra \fi. \@maybe@unskip ...skip \m@ne \lastskip \relax \fi l.18 1.0 & 0.0 \\ ...
3
votes
1answer
90 views

siunitx option retain-zero-exponent not working in tabular

I'm trying to format a table using siunitx. There's a column I want to have with scientific notation in which zero-exponents are retained, but the output doesn't put the zero-exponent there even with ...
5
votes
2answers
151 views

How do I automatically multiply columns by 100 to get percentage numbers in a pgfplotstable?

I have a csv file with percentages to load into a pgfplotstable. I already format them with siunitx but I did not find a possibility to shift the decimal point (multiply by 100) to get percentage ...
2
votes
1answer
460 views

Use emulateapj/aastex with siunitx

I am trying to use siunitx in an emulateapj document, however it reports a conflict of command: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! LaTeX error: "xparse/command-already-defined" ! ! ...
1
vote
1answer
27 views

Datatool and Siunitx - ERROR: Can't break out of anything

i'm constantly getting "! Package datatool Error: Can't break out of anything. " when using data tool and siunitx, if i change the S column definers to normal centered columns (thus not using siunitx) ...
3
votes
1answer
89 views

Symmetry between tables

I need to make these tables look the same. With the same column width I would like to make the top row independant and not have any vertical lines. Below the first row the columns should have a line ...
6
votes
2answers
525 views

Thermal conductivity unit

I am trying to type the unit for thermal conductivity w/mK in my document using the siunitx package but I get the wrong output. I'm writing \SI[per-mode = symbol]{113}{\watt\per\metre\kelvin} which ...
3
votes
2answers
80 views

siunitx inconsistent when using parse-numbers=false

In the MWE below I was expecting that even with the option parse-numbers=false. I would have the f written in math mode, not as regular text. \documentclass{article} \usepackage{siunitx} \sisetup{...
1
vote
1answer
57 views

Unit spacing in bibliography with siunitx

I am using the siunitx package to manage unit spacing in my text, but I just realized that it is not working properly when used in the references (using BibTex). TeXmaker does not through any errors ...
0
votes
1answer
153 views

package “charter” and “siunitx” problem with \textohm

Consider the following MNWE: \documentclass{article} %%% start code I can't touch \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{charter} % Serif: Bitstream ...
4
votes
2answers
142 views

How to use letter with SI unit in table using siunitx

I want this I (μA) and this ΔC (nF) but cannot seem to be able to use letter (instead off numbers) and how do I put the parenthese too. Thks in advance. \begin{document} \begin{table}[h!] ...
1
vote
1answer
70 views

siunitx produces number too big error with large numbers

minimal (non)-working example: \documentclass{article} \usepackage{siunitx} \usepackage{pgfplotstable} \usepackage{filecontents} \pgfplotstableset{ header=true, trim cells=true, col sep=comma, ...
4
votes
2answers
3k views

Just installed the latest siunitx and it says that expl3 is too old

Just installed the latest siunitx and it says that expl3 is too old. I looked on the miktex package update manager and I appear to have the latest version of everything. The package that now contains ...
1
vote
1answer
46 views

pgfplots units breaks when using classicthesis

I have some math-expression I want to have as a unit in a PGF plot. However, the greek letter is replaced by a horizontal line, if I activate the classicthesis package. Here a MWE (it works if I ...
5
votes
0answers
43 views

Typesetting numbers in binary format [duplicate]

I am writing a document that occasionally contains large numbers in binary format. I originally typeset them with spaces between groups of four digits, e.g. 1010 0110 0111 1100. However, when copying ...
12
votes
2answers
413 views

Defining a new unit in siunitx that has a subscript

I would like to define a new unit, analogous to \electronmass, in the siunitx package but this time for the proton mass. So I just copy/pasted the definition of \electronmass from the style file and ...
4
votes
2answers
396 views

Does `ruledtabular` environment from revtex4-1 break the S column in `siunitx`?

I am trying to used the revtex4-1 document class for a paper, and I want to align the decimal point in columns of numbers. I am trying to use the S column type from the siunitx package. If I use the ...
2
votes
1answer
90 views

Packages siunitx and cancel not working together [closed]

So I tried to use the MWE in the answer to this question. However my output looks identical to the original post's problem. I checked using \listfiles and my version of siunitx has cancel support. ...
60
votes
2answers
27k views

Aligning numbers by decimal points in table columns

Let me begin by stating that I did google the answers (and I'll reference to them soon). Yet each of the resources I found discussed one particular method, I'm interested in a comparison of the ...