Tagged Questions

{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

5
votes
2answers
348 views

unicode-math interferes with siunitx

The Problem I'm using unicode-math and the font TeX Gyre Pagella Math. Also, I use siunitx to denote my quantities. Unfortunately, the option \micro of siunitx doesn't get expanded to µ, but is ...
9
votes
1answer
216 views

Kerning between V and / in Palatino and Euler

Edit 1 I made the test with real palatino font and Neo-Euler, with the same result (As far as I can see) \documentclass{standalone} \usepackage{fontspec} \setmainfont[] {PalatinoLTStd-Roman.otf} ...
2
votes
1answer
437 views

xkeyval gives error with siunitx on some LaTeX installations

\documentclass{article} \usepackage{siunitx} \begin{document} \SI[per-mode = fraction]{3.00e8}{\meter\per\second} \end{document} I've tested this on three different computers, all running ...
6
votes
1answer
773 views

SI Unit Volt Ampere (VA) printed wrongly with space

The symbol Voltampere VA should be printed without space between V and A, is there a way to correct that with siunitx? \documentclass{article} \usepackage{siunitx} \begin{document} ...
0
votes
0answers
199 views

typeset large uncertainties using siunitx

I have some entries in a table where the uncertainties are very large compared to the value due to outliers in the data: \documentclass{article} \usepackage{siunitx} \usepackage{booktabs} ...
6
votes
1answer
317 views

\bfseries and alignment in table

I'm trying to highlight some decimal-point aligned entries in two large tables which are arranged in two columns. I'm using \bfseries to do this and unfortunately this seems to be affecting the ...
2
votes
1answer
126 views

How to typeset hh:mm:ss time format in math mode?

What's the correct way to typeset a daytime in the format hh:mm:ss in math mode? For example in $2:13,12\,\mathrm{min} = \SI{133,12}{s}$.
6
votes
1answer
966 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 ...
5
votes
1answer
111 views

siunitx carry error when rounding? \num{89.80} renders as 810 [closed]

I've found what I'm afraid is either a bug or a supremely foolish error on my part: whenever I ask siunitx to render \num{89.80}, rounding by figures, it renders it as "810.". Likewise, \num{898.0} ...
11
votes
1answer
214 views

Leading zero for azimuths using siunitx

Azimuths are often written with a leading zero, e.g. NE as 045°. I am using the siunitx package to format all the other quantities in my document with the \SI macro, e.g. \SI{100}{\metre} but ...
4
votes
1answer
160 views

Specific unit output using siunitx

Consider the following example. I would like to use the \SI command from siunitx to type the following: \documentclass{article} \usepackage[separate-uncertainty=true]{siunitx} \begin{document} ...
4
votes
1answer
164 views

How to display numbers in the format 12.3 (4.56) in a table column?

I would like to print numbers in a table in the form 12.3 (4.56) using siunitx. How can this be achieved? I'm a bit worried that siunitx changes the numbers in various ways and I would like to ...
3
votes
2answers
171 views

How to vertically align 'numbers' in a table? [pairs of numbers given as strings]

I display two sorts of values (say, A and B) in one table. The values are generated in R and I automatically create strings like "A (B)", so all values of type B are put in parentheses and are ...
7
votes
1answer
221 views

How to perform arithmetic within siunitx?

I often put comments in my documents to remind me where a number comes from: \SI{39.68}{\milli\metre} deep % 0.31 * 128 I'd like LaTeX to calculate the product by itself. I wrote a function to do ...
12
votes
1answer
775 views

Scientific Notation Only For Large Numbers

I have a table full of numbers. Most of them are floating point numbers that are less than one, some are integers from 1-100, and a few are large (×10^75). I know how to set the precision of the ...
11
votes
1answer
694 views

Unwanted behaviour of siunitx

Consider the following example. Code \documentclass{article} \usepackage[per-mode=symbol-or-fraction]{siunitx} \begin{document} \[ \frac{x}{\SI{4}{\m\per\degree}} \] \end{document} Output ...
7
votes
1answer
228 views

Is there a more convenient way to represent (1,2+3,4) m with siunitx?

Background: I want all decimal numbers in my TeX input file use . as the decimal separator. If my document is translated to German (for example), the . can be globally converted to , by locale ...
14
votes
0answers
771 views

Best practice for typesetting physical quantities using siunitx [closed]

Consider the following example. Code \documentclass{article} \usepackage{amsmath} \usepackage[ locale=DE, output-product=\cdot, product-units=single % I use this option a lot in the document, ...
2
votes
1answer
72 views

Odd behaviour when dashes are add in a table?

Using the following MWE : \documentclass[12pt,a4paper]{report} \usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry} \usepackage{booktabs} \usepackage{siunitx} ...
11
votes
1answer
466 views

siunitx and engineering 'E' notation

Is it possible to use the siunitx package to typeset numbers with the "E" notation so that the output might look like 1E3 instead of 1 x 10^3
7
votes
1answer
244 views

Postprocessing pgfplotstable results using siunitx

I am trying to use the \num command from siunitx inside a table made with pgfplotstable, because I need the format given by siunitx with \sisetup{scientific-notation = true} and all the advantages of ...
4
votes
0answers
136 views

Asymmetric uncertainties with siunitx package [duplicate]

Is it possible to typeset asymmetric uncertainties, e.g. $0.84_{-0.01}^{+0.02}$ with the siunitx package?
6
votes
1answer
549 views

Align decimal marker with thousands separator using siunitx

My table consists of two groups of rows. The first group contains large values (X,XXX). The second groups contains smaller values (0.XXX). Siunitx aligns all numbers based on the position of the ...
4
votes
1answer
277 views

Why is the tnote of my threeparttable's table cheekily protruding? How can the width be (automatically) adjusted here?

Why is the tnote of my threeparttable's table cheekily protruding? How can the width be (automatically) adjusted here? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tabulary} ...
0
votes
1answer
498 views

How to get line-breaking / multirow to work in my beginner's table?

I can't seem to get the multirow or pbox to give me a line break (of "automatic" width). The following won't compile successfully: note the two variations in the "TOTALLY" line. How can I fix it? ...
1
vote
1answer
139 views

Include a value and its uncertainty both rounded properly

The output of a program is a value and its uncertainty. I want to include them in a tex document correctly rounded. value_uncertainty.txt: 12345.67890 0.987654321 scientific_document.tex is ...
1
vote
1answer
84 views

siunitx: Error while including value

A value is saved in a file (value.txt, let's say). The command \SI{\input{value.txt}}{\someunit} gives the error: Argument of \input has an extra } How can I read numbers from an external file ...
11
votes
3answers
355 views

Angular frequency in siunitx

When using siunitx, is there an intuitive way to type angular frequencies with the prefix 2\pi \times? The provided example \documentclass{article} \usepackage{siunitx} \begin{document} \SI{2\pi x ...
3
votes
1answer
178 views

How to automatically switch unit systems?

The question Why use a package to typeset units? made me think about something else: In non-scientific context one may have to provide data for persons using ... imperial units (shiver). But there may ...
46
votes
5answers
6k views

Why use a package to typeset units?

I've seen a lot of posts about different packages for typesetting units and their relative strengths and weaknesses. Most posts seem to agree that the siunitx package is the most up to date package, ...
7
votes
1answer
361 views

Wrapper for siunitx' \SI macro to automatically split number and unit

Problem I use the siunitx-package to typeset numbers and units with correct spacing etc. There is a command \SI{<number>}{<unit>} for that. However, it would be much easier to write ...
1
vote
1answer
422 views

Too narrow S-column in siunitx

I'm making a small table with numbers and units given with the \SI{num}{unit} call. However, the units stretches outside the table width, such that the booktabslines (or any other line) looks too ...
2
votes
1answer
187 views

Can the siunitx table alignment feature, S, align ratios?

I'd like to align a list of ratios in a column of a table by the colon. Is this possible using siunitx? For instance ratios like the following. 1:0.9 1:1.0125 1:0.99
6
votes
1answer
411 views

Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath

I'm trying to automatically format numbers in a way that doesn't convert say .8 to 0.8 while at the same time scientific notation is converted to exponent-free notation. siunitx seems to be able to do ...
2
votes
0answers
45 views

How to I fix my axis to suit the correct order of magnitude? [duplicate]

Problem: It's the times ten to the 3 bit part which bothers me. Not just that is exists but also because it's positioned itself in a strange place. My files is formatted so it is in MHz so I don't ...
2
votes
1answer
249 views

number with subscript in siunitx

I would like to use output-decimal-marker = {--} in siunitx to align a column with molecular transitions where the states are separated by --. However I get a Missing $ inserted error when the state ...
6
votes
1answer
251 views

ctable and siunitx: Last column does not center correctly (possible incompatibility?)

I would like to use ctable in my thesis for tables and graphics and I also would like to use siunitx for formatting numbers and aligning numbers on the decimal marker in tables. Everything seemed to ...
0
votes
1answer
1k views

Siunitx installation: I can't find file l3docstrip.tex

I have some problem trying to compile siunitx. When I do latex siunitx.dtx, I get the following message: ! I can't find file `l3docstrip.tex'. l.77 \input l3docstrip.tex Where am I supposed to find ...
3
votes
2answers
404 views

Siunitx's \micro symbol has serif

I am trying to reproduce the look of the micro symbol in the siunitx documentation; see for instance the following picture: However, when compiling the following code: \documentclass{article} ...
4
votes
1answer
180 views

Wrapping or adding line breaks in header cell of siunitx's S-type column

When using the siunitx package, is it possible to either "wrap" or insert line breaks in the header cell of an S-type column (see Section 4.6 of the documentation)? I have a relatively long table ...
6
votes
1answer
545 views

asymmetric errors with exponential

I'm using siunitx, but I don't see how to put an asymmetric error, like this one, in text nor in a tabular environment: $\left( 1.09^{+0.28}_{-0.23} \right) \times 10^{-3}$ Is there a way with ...
14
votes
2answers
725 views

Why do the standard siunitx settings not detect font weight?

Using KOMA-script I got a bold font for chapter/section titles. I had a unit, \SI{1}{\something}, in one of them which was not set in bold font. Giving siunitx the following options ...
4
votes
2answers
274 views

Problem with \SIlist with two values and list-final-separator = {, }

First and foremost, thanks to Joseph Wright for developing and maintaining siunitx package. I have a problem with \SIlist macro. The desired result: 3.23 (dd, J = 3.9, 0.9 Hz, 1H). and I'm ...
4
votes
2answers
455 views

Font mismatch with Linux Libertine and siunitx package

Following example: \documentclass{scrbook} \usepackage{amsmath} \usepackage{amssymb} \usepackage{microtype} \usepackage{siunitx} \usepackage{fontspec} \setmainfont{Linux Libertine O} ...
7
votes
2answers
217 views

siunitx does not work with overline

When I am typing a laboratory for physics, I tried using \overline inside SI from the siunitx package, like so: \begin{align} \begin{split} s &= \frac{d}{t}\\ &= ...
8
votes
1answer
458 views

pgfplots - x unit with siunitx

I want to use x unit=something to draw the units to an axis. In the manual I find this to use siunitx to do so: \pgfplotsset{ unit code/.code 2 args={\si{#1#2}} } Now I make a plot: ...
6
votes
1answer
218 views

coordinate number format \ang{}

In a table, I am listing several coordinates. I want to use a number format such as this W 95°13'14'' W 95°03'00'' ... I am using the \ang{} environment of the siunitx package. ...
6
votes
1answer
193 views

Align math contents in a table

While trying to display some data in a table, I use tabu and siunitx. I want the content to be centered by the dot. However, the cell at last column, first row is not centered. ...
4
votes
1answer
194 views

Aligning Tuples of Decimals with PgfplotsTable

In this question, Jake gave an awesome answer that shows how PgfplotsTable can be used to read tab-delimited data from a file, and typeset the parsed decimals in scientific notation such that all of ...
15
votes
2answers
221 views

siunitx not using kerning units correctly ahead of a sentence-ending dot (period, full stop)

If the unit is the final character in a sentence, the sentence-ending dot is not kerned correctly. MWE: \documentclass{article} \usepackage{siunitx} \usepackage{mathpazo} \begin{document} ...