Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [siunitx]

{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.

0
votes
0answers
17 views

Setting \SIrange and units in parentheses

I need to set a range with units in parentheses, nevertheless once I use \SIrange I can't set the left and right parenthesis as used in a normal text. I tried with \SIrange[range-units = brackets]{2}{...
0
votes
1answer
26 views

siunitx—how do I get exponents with uncertainties?

I am typesetting a lab report with indirectly-measured values of a diffraction grating's grating spacing; these values are on the orders of micrometres, which are more easily expressed in scientific ...
4
votes
1answer
153 views

How to write values with uncertainty and units with brackets: (339+-14) m/s

This code \documentclass[a4paper]{article} \usepackage[separate-uncertainty=true,multi-part-units=single,list-units=repeat]{siunitx} \begin{document} \[\SI{339\pm14}{\meter\per\second}\] \end{...
2
votes
3answers
27 views

Aligning digits in table with percentage sign on first row

I'd like to align the digits taking into account the percent symbols on the first row. MWE: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table} \centering \...
0
votes
0answers
32 views

problem given by decimal alignment in latex tabu table with bold numbers

I'd like to have a table aligned by decimal point. I'm using tabu instead of table for exploit rowfont because I need row with smaller character. I've read different post on dcolumn and siunitx ...
6
votes
2answers
144 views

Maths symbols and unicode-math input inside siunitx commands

What I’m trying to do is to input Unicode characters directly inside siunitx commands, like \SIrange{≳9}{≈40}{\kilogram}. But it does not work and I get errors like ! Package siunitx Error: Invalid ...
1
vote
1answer
39 views

Defining new unit commands as derivatives of `\si` units

In my document, I need to use a large number of different SI units. To ease my typing, I usually define new commands as \newcommand{\unitmass}{\si{\kilogram}} or \newcommand{\unitmomentum}{\si{\...
3
votes
1answer
31 views

One large number in table with decimals

I am using siunitx to align numbers in a column. Problem is I got by intention one row at the beginning which is a large number, indicated by ',' per 1,000. See the following example. What I would ...
5
votes
2answers
54 views

Align column in table on Plus/minus symbol with values of varying length and align header of first column with data?

I would like the data in the "Confidence Limit" column to align on the plus/minus symbol. Here is a link to a similar but different question Aligning +- sign in table. However, the values in my data ...
0
votes
1answer
20 views

superscripts on customized unit in siunitx

I want to add subscripts to some units and so far the solution I found is to define my own unit, for instance: \DeclareSIUnit{\Lmedia}{\text{$\textup{L}_{\textup{media}}$}} However, when I use this ...
8
votes
1answer
74 views

siunitx uses weird font in math mode

When changing the text font to opensans, then siunitx decides to use a third sans serif font in math mode. Is this still the case with the current texlive release? If so, how can I fix this ...
2
votes
1answer
29 views

Format page numbers in biblatex

Consider the following biblatex/biber minimal example: \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{references.bib} @article{abc, author = {A Author}, title = {The ...
5
votes
1answer
51 views

Automated truncating and compilation of mean and uncertainty pairs for display in table from csv file

I have to display data from a number of CSV files containing pairs of mean and uncertainty values grouped in columns, the first column containing the mean values, the second the uncertainty values and ...
3
votes
1answer
65 views

variant significant digits on siunitx

I'm trying to several TeX packages about settings of significant digits to edit textbooks. In siunitx package, I would like to set the effective digits to 2 digits and not to use 10 ^ 1, 10 ^ 0, 10 ^ ...
1
vote
1answer
40 views

Hyperlinks in S-columns?

My MWE: \documentclass[parskip=full]{scrartcl} \usepackage{ lmodern, babel, textcomp } \usepackage[locale=DE]{siunitx} \usepackage[colorlinks]{hyperref} ...
3
votes
1answer
69 views

How to typeset space between number and degree celsius in siunitx?

I would like to change the way siuntix displays the \celsius so that there is a space between the numerical value and the degree celsius symbol. This is what is recommended by BIPM. I have tried the ...
1
vote
0answers
73 views

siuntx \micro symbol not shown

When I compile the next code the micro sign doesn't shown: \documentclass[12pt,twoside]{report} \usepackage{amsmath,amsthm,amssymb,amsfonts} \usepackage{color} \usepackage{siunitx} \pagestyle{empty} \...
3
votes
2answers
87 views

\usepackage{siunitx} gives errors when used with math code in tabularx

I want to use siunitx package for writing the units in my document. However, just adding the line: \usepackage{siunitx} to the document (and without even using the siunitx commands) gives 84 errors ...
5
votes
1answer
57 views

Siunitx: Wrong parse in S-column tabular

Multiple uses of a text file containing numbers include a representation in a table. I read the file line by line and save those in a macro for a later use in a table. I use the S-column specifier of ...
3
votes
1answer
144 views

How to use math mode and siunitx with arial

I have to use arial within the whole document. My code: \documentclass[ngerman]{scrartcl} \usepackage[T1]{fontenc} \usepackage{ lmodern, babel, uarial,%from https:/...
2
votes
1answer
66 views

Bold entries in table with S column type

Inspired by the following post \bfseries and alignment in table, I want to create a table where some of the entries are highlighted in bold, and further, the numbers should be aligned on the dot. I ...
0
votes
0answers
30 views

Siunitx and breqn causes repeated value and unit error in align

I am experiencing a weird bug when using \SI{}{} inside a align block. The following latex code results in the value and unit being repeated as seen on the picture. But only when written inside a ...
8
votes
1answer
143 views

Table Formatting using siunitx

I am trying to make a table with four columns: three of the columns are to be center aligned, and one is to be aligned by decimal places ( using S[table-format=3.2]). Here is my code: \documentclass{...
3
votes
1answer
37 views

Error using math in siunitx table

I am using the S-column type from the siunitx package to align numbers horizontally in a table, which works fine when typing numbers only. However, when I use math, I get the error Missing $ ...
1
vote
2answers
104 views

Overfull \hbox (3.8889pt too wide) detected

my code: what's wrong guys? \documentclass{article} \usepackage[letterpaper,margin=1in]{geometry} \setlength{\pdfpagewidth}{8.5in} \setlength{\pdfpageheight}{11in} \usepackage[english]{babel} \...
2
votes
2answers
82 views

Angle (degree) symbol with siunitx under XeLaTeX and mathspec

Consider the following example: \documentclass{article} \usepackage{mathspec} \usepackage{siunitx} \begin{document} \ang{30}, \SI{20}{\celsius} \end{document} Compiling with XeLaTex, I get: The ...
1
vote
1answer
42 views

Problem with Decimal Aligning on Outreg2 regression table

Guys anyone can figure out whatt's wrong here? I got this table from outreg2 stata and did some edit based on clemen's answer from this post. Thanks! \documentclass[]{article} \usepackage{amsfonts} \...
4
votes
1answer
98 views

siunitx and XeLaTeX with OldStyle in text, but Lining in math

The attached example (not really an MWE) explains the problem better than I probably can here: % !TeX program = xelatex \documentclass{scrreprt} \usepackage{siunitx} \sisetup{% % detect-...
3
votes
1answer
39 views

Use multirow in S column

I am using the S column from the siunitx package to align numbers, which works perfectly. However, now I would like some numbers to span several rows, using multirow, which gives me an error. \...
2
votes
1answer
50 views

How can continuos fractions be used in the units of siunitx?

How can I use siunitx to create (for example): or even a double fraction? As soon as I add / to the lower section the entire form changes to Wh/m³/h. Is a form Wh/(m³/h) possible?
2
votes
1answer
35 views

siunitx syntax issue “\,” versus “,” for thousands separator

This question includes a solution but I really want to know why it works and why what "should" work doesn't I think my MWE says is all: \documentclass[12pt]{article} \usepackage{siunitx} % TeX Live ...
3
votes
1answer
51 views

How to write an Equation with the Units aligned off right and adapted Bracket Heights around the Unit?

Assumed I have this MWE to align the units off right: \documentclass{article} \usepackage{amsmath} \usepackage{siunitx} \makeatletter \providecommand\add@text{} \newcommand\tagaddtext[1]{% \gdef\...
0
votes
1answer
32 views

Alignment of a table around decimal point

I have the following code in latex {\begin{array}{c|c} integer&real\\\hline 1&114.12382811\\ 2&64.284747272\\ 3&0.000267356293929\\ 4&273912624.91\\ \vdots&\vdots\\ \end{array}...
6
votes
1answer
39 views

Numbers disappears with \rowcolor in siunitx table with tableformat=x.0

Following the siunitx documentation in regards to '7.13 Creating a column with numbers and units' and '7.14 Tables with heading rows' I have tried to make a table a table with currency as unit. The ...
5
votes
1answer
48 views

Printing a number rounded off to a million with siunitx in tables

How do I use table-omit-exponent property (or something else) from siunitx to skip the exponent and print the unit as M for a million instead of getting the numbers printed in the format 4.32x10^6 in ...
0
votes
2answers
62 views

siunitx error: “invalid-number”

Very reduced example: \documentclass[a4paper]{article} \usepackage{amsmath, amsthm, amssymb, mathtools} \usepackage{siunitx} \begin{document} \begin{equation}\begin{aligned} n(O2)&=\SI{\frac{...
2
votes
1answer
69 views

siunitx in tabularx

I have a tabularx-table with a lot of SI values. For this, I wanted to define a new column type u which places the contents of the column into a \SI{XXX}{cm} expression. \newcolumntype{u}{>{\SI\...
3
votes
1answer
36 views

siunitx squashing columns

I have a table that I've formatted like this: \begin{table}[h!] \begin{center} \begin{tabular}[t]{cccc} \hline {Combo} & {$|r|>0.5$} & {$n>100$} &...
3
votes
1answer
48 views

Error when only using siunitx S columns for table

I'm getting an error when rendering the code below. If I change the column specification to lSSSSS, it works fine, which is really confusing. \begin{table} \small \sisetup{group-digits=false, ...
5
votes
1answer
103 views

Is there an incompatibility between the packages calc and siunitx? (\GenericError […])

The following code does not compile: \documentclass[11pt]{article} \usepackage{calc} \usepackage{siunitx} \begin{document} \begin{tabular}{p{.5cm}p{\widthof{\textbf{AAAAAAAAA}}}l} &\textbf{...
4
votes
1answer
114 views

How to force “power of 10” notation with siunitx?

I want to force siunitx to display numbers in standard form (e.g., 1.23 x 103) unless the number is between 0 and 10. How can I do this? Thanks for any help. Edit: I'm actually formatting numbers ...
6
votes
1answer
143 views

Align numbers in table with scientific notation and minus sign

I would like the numbers to be aligned by multiplication signs on this table. I have tried to use the option table-format in what it looks like the right way to me, but actually I haven't found any ...
2
votes
0answers
126 views

Currency rounding to 5 or 10 in invoice2 with siunitx and scrlttr2

I created a invoice with invoice2 (uses siunitx internally) and scrlttr2 Now I have a calculated currency value of 286.34 which should be 286.35. Since the number is calculated internally by invoice2,...
2
votes
1answer
42 views

angular brackets (textlangle) in table with siunitx

I want to use angular brackets as produced by \textlangle and \textrangle from the textcomp package in a table. I am using siunitx to handle digits, alignment, and so on, but I get an unnecessary ...
2
votes
0answers
58 views

How to add zeros to numbers with uncertainty with siunitx

Question Is it possible to typeset a number with uncertainty and add the zeros to both the number and the uncertainty? Description I came to the conclusion that the uncertainty is breaking the ...
2
votes
1answer
145 views

Align large numbers and small ones on comma and decimal point

I am trying to align values in multiple columns of a table. There is a column with very large numbers and decimals, there is one with commas and no comma at all by intention, there is another one ...
1
vote
1answer
50 views

Prevent overflow in list of figures

I have a list of figures where, when using siunitx, the value and units do not separate onto new lines and so overflow the margin of the list of figures (see below). I can (and have) crudely solved ...
4
votes
1answer
133 views

Align S-type column headers

I'm very unhappy with the alignment of the headers in the following table. I've even tried using \multicolumn, but it has no effect. (And if someone knows what the table is about... Yes, I'm unhappy ...
4
votes
1answer
92 views

siunitx: some options must be in preamble, not with S[?

This is my question for siunitx users: Is it necessary to specify the input-symbols parameter in the preamble, rather than within S[]? Why do I ask? Here's a table produced by my R function outreg ...
2
votes
2answers
64 views

Horizontal alignment in table with siunitx package

I'm doing some tables but I can't find the right alignment using siunitx. I believe that the first and last column numbers should be more to the left and the second column numbers more to the right. I ...