{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
2answers
64 views

Using the macro generated by \pgfmathprintnumberto in a \pgfmathparse or \SI

To demonstrate, here's a MWE: \documentclass[a4paper,titlepage]{article} \usepackage{pgf} \usepackage{siunitx} \begin{document} \pgfmathparse{1 + 1} ...
0
votes
1answer
24 views

How do I increase spacing between unit components in pgfplots?

I'm using pgfplots (version 1.12) with the units library. When I create a unit label \si{molecules \cm^{-2}}, this turns up without any spacing between "molecules" and "cm". When I use the same ...
2
votes
1answer
59 views

Format table number alignment

I am having a few problems with the following code: \documentclass{standalone} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{tabular}{ l S[table-format = 4.2] ...
4
votes
1answer
269 views

Showing plus or minus error in siunitx

Using the notation we were taught, 0.0010 plus or minus 0.0001, for example, would be: (1.0 +/- 0.1)*10^-3s Is there a way to print this in latex using the siunitx package?
8
votes
1answer
154 views

Defining a list and range of \ang values in siunitx

The angle processing function \ang provided in siunitx to print angles are printed in arc format with degree, arcmin and arcsec separated by semi-colons: \ang{1;2;3} Is it possible to define a ...
6
votes
2answers
121 views

siunitx: why is there a value in \num{} with empty argument?

I accidentally stumbled upon the following Problem: If I use the \num command of the siunitx package and leave the argument empty like \num{}, I get a value in my pdf output and it seems to ...
3
votes
0answers
44 views

siunitx: mu is jerky + memory object warning [closed]

First of all, I am sorry if this was already mentioned before (I did look at threads with problems regarding mu in siunitx). The problem is that when I use code: \SI{1}{\micro\metre} I get a ...
4
votes
1answer
147 views

Comma, not full stop, as decimal separator in numbers in siunitx table

Consider the following code (taken from this answer by egreg): \documentclass{article} \usepackage{xparse,siunitx,booktabs} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n ...
4
votes
1answer
67 views

Using Rowstyle with S-column of siunitx

Is it possible to use a rowstyle with S-column provided by sinuitx? When I try the following the S-column does not allign the numbers (they are not even recognized as actual numbers): ...
2
votes
1answer
128 views

Prefix with no unit with siunitx

How can I typeset a number with a prefix but without a unit with siunitx? The following code \SI{1.0}{\mega} gives this error: "Prefix with no unit."
6
votes
2answers
157 views

How to localize package siunitx to spanish?

I'm writing a report where I use units inside a table. In few cases I need to use a range with units. But since I'm writing not in English (actually in Spanish) The result of a range using the ...
1
vote
0answers
56 views

Change font in column centred using siunitx [closed]

I have centred a column about the decimal point using siunitx v2.6 (column B). The font used in this column is different compared to that used in the other column (column A). How do I make the ...
2
votes
1answer
66 views

Percentage sign in column centered about decimal point

I know how to centre a column about the decimal point using the siunitx package. How do I include a percent sign in the column heading, ie "Heading (%)"? Neither \% or \SI{}{\percent} seem to work. ...
5
votes
1answer
326 views

How to write 7.5 ( ± 2.5) × 10 − 5 in siunitx?

I can seem to find a question like this one, but maybe I don't know how to properly describe it, so sorry if it has already been answered. I am using siunitx but I want to put my range in parentheses ...
2
votes
2answers
158 views

How to write hyphen between number and unit in an attribute (30-s acquisition) with siunitx?

I think the title says it all. I browsed through the whole manual of siunitx, but I could not find an option allowing to write 30-s acquisition with a single \SI... command (I could of course use a ...
12
votes
1answer
221 views

Print “< .001” in table with siunitx

I have a table where one column are p values. p values should be formatted without leading zero, and if they are smaller than .001, they should be reported as "< .001". Numbers should be aligned at ...
6
votes
1answer
90 views

Grouping of digits with siunitx different when using alignment character (&) or not

Consider the following example: \documentclass{article} \usepackage{mathtools} \usepackage{siunitx} \begin{document} \begin{align*} \sisetup{group-minimum-digits = 6} l &= ...
0
votes
1answer
54 views

siunitx automatically rounds the values?

\documentclass[12pt,landscape,a4paper]{report} \usepackage{amsmath} \usepackage{siunitx} % nice alignment for decimals \begin{document} \begin{tabular}{ >{$}c<{$} | ...
4
votes
0answers
117 views

unicode-math + siunitx + lualatex = long compile times. Why?

The following MWE, compiled under several situations (with appropriate lines removed) gives the following timings (with all output files removed between runs), as timed by Measure-Command on Windows 7 ...
10
votes
2answers
1k views

Preserving thousands separator with siunitx

I'm writing a paper and my advisor is requiring that all large numbers have a comma as a thousands separator. I've read this question which asks about how to make siunitx not throw errors when there ...
3
votes
1answer
83 views

siunitx does not detect semi-bold font

The option detect-all of the package siunitx should apply all font attributes of the surrounding text to the quantity and the unit. However, this does not seem to work for semi-bold text, see the ...
3
votes
2answers
156 views

Text with spaces in units using siunitx

I used to (a month or two ago) be able to make my units with some arbitrary text, with spaces, which helped a lot since I use a lot of different units and labels in my data, and I have no need to ...
15
votes
1answer
324 views

Non-slanted (siunitx style) unit prefixes with pgfplots

I've taken the example from the pgfplots manual on Preset SI prefixes and modified it slightly, changing a prefix from milli to micro. The result is that the units of the yaxis are stated as ...
9
votes
2answers
317 views

In siunitx, have \mile\per\hour be recognized as mph

Suppose I am using siunitx with per-mode=fraction, and that I have declared \mile to be a new unit (with abbreviation 'mi'). Is there any automated way to have \si{\mile\per\hour} be recognized as ...
4
votes
1answer
144 views

Using MinionPro Tabular Figures in Tables and Proportional Figures in text

I am trying to use MinionPro tabular figures in tables because they look much better than proportional figures. However, I would like to keep proportional figures in text. This is the configuration ...
6
votes
1answer
80 views

Typeset a degree sign in tex4ht

I am trying to produce a degree sign in tex4ht (ideally with the same code that produces the pdf) The PDF works fine in all of the different ways of displaying the degree sign, but the html document ...
5
votes
3answers
833 views

Automatically-adjusted spacing for scientific notation in siunitx

With the input [ n=CV = \SI{3.29e-3}{\micro\mol\per\L} \times \SI{8e-4}{L} = \SI{2.63}{\micro\mol} \] I get output As you see the spacing is not quite right - I really want the spacing of the ...
10
votes
1answer
393 views

siunitx tabular numbers with separated uncertainty

I would like to format the space reserved for a number shown in a table with separated uncertainty. It seems that when I use the table-format option the brackets around the mantissa disappear. This is ...
6
votes
1answer
147 views

fontsize fractions in the package siunitx

I'm using the siunitx package to problems in physics, but to express the speed units in the style \sfrac, they are too small, how could slightly increase the size? \documentclass[12pt]{article} ...
1
vote
0answers
73 views

Problem with packages siunitx, datatool and xkeyval

After having read several articles concerning the siunitx problem I am still struggling with my problem. Your comments and your help is highly appreciated. The following error occurs when I switch on ...
5
votes
3answers
576 views

Too many math alphabets used in version normal when using 4 packages only

This one is very strange. After much struggle, I narrowed it down to some combination of 4 packages. When I comment any one of these 4 packages, the error goes away. MWE ...
9
votes
1answer
331 views

Typesetting the “spectral voltage noise density” unit “volt/sqrt(hertz)” with siunix

How do I typeset the "spectral voltage noise density" unit "volt/sqrt(hertz)" with siunitx? My naive (and unsuccessful) approach was: \SI{100}[per-mode=symbol]{\nano\volt\per\sqrt{\hertz}}
3
votes
2answers
129 views

siunitx does not detect typeface and size

I am using a template from PNAS (http://www.pnas.org/site/authors/LaTex.xhtml) on sharelatex and when I am adding units like: \SI{15}{\mL} they are not scaled properly, as seen in the attached ...
11
votes
1answer
634 views

Using siunitx when submitting to APS

Just got to know the pretty amazing siunitx package. I started converting all the units in my last draft for a publication, but I'm wondering now if maybe it is useless if the publisher does not ...
3
votes
1answer
288 views

xelatex select local math font

The problem I am facing is that I am typesetting with MinionPro-Regular.otf as the main font and MinionPro-Cn.otf for the captions. However I have to declare only one math font for the whole document, ...
7
votes
1answer
2k views

Recommend way to get angular velocity in degree with siunitx

The siunitx package has a special macro for setting angles in degrees called like \ang{42}, which renders as , i.e. sets no space between the number and the unit as recommended and in contrast to the ...
2
votes
1answer
83 views

Problems with table layout

I have some issues when creating my OLS regression in LaTeX and I really hope, that some of you could help me. I have three questions: 1) How to make "Growth 91-92" and "Growth92-93" with a space, so ...
3
votes
1answer
172 views

Using siunitx package with Optics Express journal template

Drafting a manuscript for Optics Express, using a template provided by the Optical Society of America, I stumbled on following incompatibility with the package siunitx. Namely, ...
1
vote
1answer
68 views

Grouping numbers in a table without using S-column

This is bit different than my previous question. I have a huge tables with 7 to 8 digits. I need to make a small space between groups of three digits in the numbers. I have used the package ...
4
votes
1answer
91 views

exsheets vs. siunitx

I want to use \vary from exsheets and \SI from siunitx. The \SI macro parses the first argument (it wants a number), but can it disable with parse-numbers=false, but in this case the \SI doesn't ...
3
votes
3answers
69 views

Integer padding with something other than a zero

Consider the following example: \documentclass{article} \usepackage{siunitx,collcell} \sisetup{minimum-integer-digits=4} \begin{document} \begin{tabular}{S} {Header} \\ 1234 \\ 234 \\ 34 \\ 4 ...
0
votes
1answer
102 views

Automatic three digit grouping

I have huge numbers in tables (some of them are grouped in three digit groups but some are not). I need to make a small space (or comma) between groups of three digits. I have used two packages, ...
3
votes
1answer
42 views

Using siunitx and pgfplotstable removes header when used as a style

I'm following the solution presented here. However, for some reason when I used the code as a style defined in pgfplotstableset the header disappears. How can I fix it? \documentclass{article} ...
8
votes
2answers
563 views

Error in siunitx with TeXlive 2012? 'missing $' with inter-unit-product option

With the latest TeXlive update to the 2012 version, for some reason I am getting missing $ inserted messages, when using the inter-unit-product option for \si. For example, this is taken directly ...
6
votes
1answer
100 views

Notation and output in siunitx

Consider the following example: \documentclass{article} \usepackage{amsmath} \usepackage[locale = DE]{siunitx} \newcommand*\something[3]{ \SIlist[ list-separator = #1, ...
10
votes
2answers
8k views

How do I get expl3 from CTAN?

My real problem is that I am trying to use a package which depends on siunitx, and it complains on compiling with the following error: (/usr/share/texmf/tex/latex/siunitx/siunitx.sty ! Package ...
3
votes
0answers
31 views

Formatting numbers the Indian way [duplicate]

This is a follow-up question to Handling numbers and calculations. The numbers printed by \num[group-separator={,},group-minimum-digits=4]{\the\numexpr(5000)\relax} will produce comma separated ...
4
votes
1answer
65 views

Redefine a given unit in siunitx

I would like to redefine the electron mass unit in siunitx so that it is \mathrm{m}_0 instead of the default \mathrm{m}_\mathrm{e}. How do I do that?
2
votes
1answer
96 views

Libertine with sfmath and siunitx in Beamer

I am trying to use the Linux Libertine fonts with sfmath and siunitx package but it doesn't work with beamer class. \documentclass[11pt]{beamer} \usepackage[utf8]{inputenc} ...
5
votes
1answer
51 views

Using lengthconvert with siunitx S column

I need to align numbers in a table. The numbers are generated from the \Convert command from the lengthconvert package. I want to use an S column from the siunitx package to align the numbers, but ...