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
1answer
27 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 ...
0
votes
0answers
36 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."
2
votes
2answers
34 views

Alignment of numbers in table with wide columns

I have a table with numbers which get aligned using the S column type from siunitx. Some numbers are put into \multirow and with the \tablenum macro the alignment works perfectly as long as the ...
4
votes
1answer
32 views

radianpersecond error in SIUNITX

Simply, radianpersecond doesn't work; all other units does. \documentclass[twoside]{article} \usepackage{amsmath} \usepackage{commath} \usepackage{siunitx} \begin{document} \begin{align} ...
3
votes
1answer
139 views

Alignment of exponential numbers with non-exponential number

I would like to align non-exponential and exponential number at their decimal point in a table. I tried \documentclass{article} \usepackage{booktabs} \usepackage{siunitx} \begin{document} ...
1
vote
1answer
55 views

Problems for coloring tables using booktabs and xcolor

Well, recently I posted a question related here. Thanks to the solution suggested by Harish Kumar I could fix the two tables posted at first. Later I tried to apply the solution to a new third table. ...
2
votes
1answer
38 views

possible side effect of siunitx, tgheroes, familydefault combination

I use the following code to change the font to sans serif. I would like to use TeX Gyre Heroes and copied the code snipped from tug.dk. \documentclass{article} \usepackage{tgheros} ...
1
vote
1answer
59 views

Appearance of Greek µ with siunitx is regular font with Gentium but italic with XCharter – why?

I'm trying to select a serif font for my thesis, and have narrowed down my choices to two (probably!) – Gentium and XCharter. I like both, but the latter puts the Greek µ for 'micro' in italics when ...
1
vote
2answers
62 views

Aligning in table with siunitx

I need the numbers in the following table aligned by ":". Unfortunately the additional "," in the numbers causes some problems which I can't solve. \documentclass[10pt,a4paper]{article} ...
3
votes
1answer
45 views

Bad alignment in table cell using siunitx table type S

I have a problem with number alignment using the S table type from siunitx package. The numbers are not centered and especially on the right side the number falls out of the table. The ...
2
votes
1answer
69 views

siunitx and hvmath fonts: strange mixing with cm fonts

I'm using hvmath, a proprietary font by micropress. The hvmaths package is openly available: as far as I understand, its aim is to replace text and math fonts with the ones provided by hvmath font ...
0
votes
0answers
29 views

siunitx and summary statistics below table - separate alignment block possible?

I am using siunitx to format tables as it is very handy with aligning, rounding etc. However, I typically have summary statistics in a separate part below the table. Since these often only contain ...
3
votes
1answer
95 views

Notation and output in siunitx, II

This is a follow-up question to "Notation and output in siunitx". Consider the following code (courtesy of egreg): \documentclass{article} \usepackage{amsmath} \usepackage[locale = DE]{siunitx} ...
6
votes
1answer
67 views

Notation and output in siunitx

First: Please help me give this question a proper title! Consider the following: \documentclass{article} \usepackage{amsmath} \usepackage[locale = DE]{siunitx} \newcommand*\something[3]{ ...
4
votes
1answer
57 views

siunitx \celsius font

I am writing a lab manual and using \renewcommand{\familydefault}{\sfdefault} to set the font. However, when using siunitx the\celsius unit does not change font. All other units (that I have so far ...
3
votes
2answers
68 views

Beamer and siunitx - overlay problem

I try to make a table with siunitx column type in a beamer document with overlay. Here is a minimal non working example : \documentclass{beamer} \usepackage{array,tikz} \usepackage[% locale=FR,% ...
3
votes
1answer
76 views

Can I use nicefrac within siunitx?

I suspect the answer is a straight 'No', but nothing ventured... I have a table of time periods (minutes and hours), and a couple of the periods involve the fraction 1/2. I generally use the \SI macro ...
4
votes
1answer
65 views

Changing mu in siunitx

I'd like to change the font of the mu-Symbol in siunitx so that it matches the mu-Symbol in the text mode unfortunately my code doesn't realy work. I would be very grateful for any feedback you might ...
2
votes
1answer
29 views

Calligraphic font for Bitstream font and inter-package error

I try to load and use a calligraphic font but it seems that the combination of siunitx, upgreek and bm causes the error, but for some reasons the error-message ('Too many math alphabets used in ...
2
votes
0answers
51 views

Siunitx does not format numbers

This is my code for the table, I was expecting siunitx to add the comma to the numebers with more than 3 digits, i.e., 3456 -> 3,456 but it does not happen, the numebers without decimals are shown as ...
4
votes
1answer
45 views

Can siunitx parse uncertainty values (the bracketed values) in the same magnitude as the main value in a table?

I'd like to have 117.3(11.1) parse as 117.3 \pm 11.1. Is this possible to achieve in a table? Currently sunitx somehow regards the bracketed value as too small so it's all wrong. Note: this question ...
5
votes
2answers
55 views

How to combine cmidrule of the booktabs-package with siunitx correctly?

After rewriting this post multiple times, I'll just write it like this: How can I use \cmidrule in combination with siunitx? Is this even adviseable or not? Did I make an error somewhere else? The ...
3
votes
1answer
46 views

Combining numbers and units with a multiplication sign to show dimensions

Using the siunitx (or any other) package, is there a may of combining numbers and units with a multiplication sign? For example, I'd like to give a sheep pen size of 1.5 m × 2.5 m. I can do it with ...
4
votes
1answer
72 views

siunitx displaying wrong uncertainty values for integers

I am getting incorrect uncertainties displayed for integer-valued numbers using the siunitx package. It seems to insert one decimal place and divide the uncertainty I specify by 10. This is a new ...
7
votes
1answer
105 views

the macro \micro in siunitx does not work with fontspec

In recent versions of siunitx the macros \si{\micro} and \SI{0.550}{\micro\m} do not work with the package fontspec. Here is the MWE: \documentclass[12pt]{article} \usepackage{fontspec} ...
5
votes
1answer
77 views

Is the use of “siunitx” recommended for dimensionless numbers for any reason?

My question is about possible advantages of writing $\mbox{\textit{Re}}=\SI{0.137}{}$ instead of $\mbox{\textit{Re}}=0.137$ Is there any?
4
votes
1answer
40 views

How to allow line breaks in siunitx lists and ranges in math mode?

I have written my thesis using \numlist and \numrange (and the \SI variants thereof) from the siunitx package. In some cases, I have used these macros in math mode, for instance, $\phi = ...
6
votes
1answer
53 views

Sum of quantities using siunitx

I'm trying to display the sum of two numbers using the siunitx package. Specifically, I'm trying to write out the conversion from Celsius to Kelvin. Ideally, I'd like to display the following ...
1
vote
0answers
16 views

multiple tabular environments using siunitx

Does anyone know of a way to create several decimal-aligned tables within an enumerate environment? This is NOT a table, but it is a set of enumerated items with explanations and numerical data ...
4
votes
1answer
66 views

siunitx and frac in numrange

With siunitx (up to date on MacTeX 2014), I would like to use something simple like \numrange{1/100}{1/1000} But I just get an error. Is there a way to typeset this with siunitx?
1
vote
0answers
30 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
69 views

How can I improve showing several different measures for one sample?

I am displaying 4 bits of data (three of them are of the same type) for a sample shown on the left of it. Is there a way I could improve this? So far I came up with this layout: MWE ...
3
votes
1answer
38 views

How can I use regular dashes in S-columns?

I would like to have the cells with non-number entries centered but I can't even figure out how to get -- (or ---) working and printed out. The reason behind this is that I have several instances of ...
6
votes
2answers
98 views

Translation not working when using siunitx + glossaries + polyglossia + xindy + LuaLaTeX

I'm trying to move to a modern LaTeX setup, by using LuaLaTex, polyglossia, glossaries + xindy. When I create a German document with a glossary, the title of the glossary correctly changes to ...
1
vote
1answer
47 views

Error with parenthesized neg. numbers and siunitx in a table

Why do I get an error (Misplaced sign token) for the negative sign in the second parenthesized number? Executing without the negative sign works! \documentclass{article} \usepackage{booktabs,siunitx} ...
7
votes
1answer
151 views

Add zeros after decimal marker

Consider the following code: \documentclass{article} \usepackage{booktabs} \usepackage[locale = DE]{siunitx} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff ...
5
votes
1answer
97 views

Format table with aligned values +/- errors and units (and parentheses)

I want to have a table with numbers ± errors and units (or a percent sign). Ideally, the numbers are aligned at the decimal separators and the ± sign. Here is my best solution so far using siunitx ...
6
votes
2answers
74 views

siunitx's S column misaligns numbers if retain-unity-mantissa is false

Consider this MWE: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{tabular}{l @{\hskip+0.5em} S[retain-unity-mantissa = false]} ...
6
votes
1answer
155 views

How to ignore hard space (~) in siunitx number parsing

I used to format number grouping with a protected space (~). Now I'm switching to siunitx's \num. According to the package documentation ... The formatter removes ‘hard’ spaces (\, and ~) but ...
5
votes
1answer
60 views

How can I use \SI from siunitx inside \replaced from changes?

I'm trying to rceord some changes using the changes package - I've already done a lot of the text, and had to work around display maths but I've got a simply value typeset using siunitx, and changing ...
6
votes
0answers
44 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 ...
0
votes
1answer
62 views

print hour & minutes in french style

I'm using babel, datetime & siunitx but I don't see an automatic way to mark and to write time in the french style. It's possible with plain hour with datetime: SI{18}{\hour} -> 18 h. But for ...
17
votes
6answers
836 views

Rounding a number to its hundred

Does anybody know how I could have LaTeX round a number like 2,386 so that I finally get only written 2,300? I tried with siunitx and its option [round-mode=places,round-precision=-2] but it didn't ...
3
votes
3answers
81 views

Table alignment help

I have three fairly minor problems, but I can't seem to figure out how to fix them. First Problem: Even though I have 'gaps' in my Latex editor between the semi-colon and the number after it (e.g. ...
5
votes
2answers
82 views

Table alignment problem

So I wasn't happy with how esttab was formatting my regression tables from the statistical program Stata. So I instead I decided to attempt to build my own skeleton table, which had better formatting, ...
6
votes
2answers
230 views

Basic S Column Alignment with siunitx package

OK, what am I missing here? Why is the S column not aligning on the decimal: The desired result is the data aligned on the decimal and centered within the column: Code: \documentclass{article} ...
6
votes
1answer
101 views

Can I write a range in [0-1) style with siunitx?

I want to give a range of degree in my document. One end is explicitly inside the range, while the other is outside. Is there a "correct" SI way of writing a range with an inclusive and exclusive end ...
4
votes
1answer
63 views

One header for all subtables: Correct arranging of Columns

I am trying to create a table consisting of three other subtables. I have tried it with two versions (see e.g Alignment Problem in Table environment). There are three problems: 1) The Columns of the ...
5
votes
1answer
65 views

Dotted vertical line in math array + siunitx?

This works until I uncomment siunitx. I presume this is a bug? Should I file anywhere? \documentclass{article} \usepackage{amsmath} \usepackage{arydshln} \usepackage{mathtools} % Uncommenting this ...
1
vote
2answers
78 views

\num with parameters in siunitx table

I have a couple of different methods to solve a diven problem and I want to compare them in a table. My aim is it to automatically add the relative deviation. I got some problems using siunitx within ...