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
1answer
48 views

How to put a positive sign with thermodynamics module

I want to put a positive sign "+" in front of a positive number with units in thermodynamics module of chemmacros. So I made the following LaTeX cord related to this with tuning siunitx: \usepackage{...
0
votes
0answers
27 views

Align values in a table to decimal point when using “p” columns

I have a LaTeX table that looks like this: I want my decimal points to line up. I know I can use \usepackage{siunitx} for this, and a bit of Googling revealed that if I use "S" columns, I can align ...
0
votes
0answers
16 views

Line break siunitx product numbers [duplicate]

Pretty much the same question as enter link description here The answer is from 2014 and says an update then would fix this, but I can't find anything related to this. Does anyone know if an update ...
1
vote
1answer
34 views

Recurring decimal within an aligned array

I am having some issues with representing recurring decimals (using \overline{}) within an aligned array I am using to represent a matrix. \documentclass{article} \usepackage{gensymb} \usepackage{...
2
votes
1answer
38 views

Italicizing Variables in SI unit commands [duplicate]

As many other answers have elucidated, the correct way to typeset SI units is with the SI command from siunitx. However, if the value being described is a variable (for example, x metres), doing $\SI[...
2
votes
2answers
38 views

! Package array Error: Illegal pream-token (s): `c' used as well as No output of units using siunitx

I am trying to create a table using tabular environment. However I am getting two errors. The first error is the one where there is an illegal pream-token (s): `c' used. The second problem is that I ...
1
vote
1answer
27 views

siunitx \num giving thousands space for 5 digits but not for 4 digits

I have a table with numbers that are right aligned. I changed them to use \num{} to try and improve the output. But it seems that \num{} adds a thousands separator space for 5 digit numbers but not ...
0
votes
0answers
31 views

How to add a portuguese ordinal indicator using siunitx package?

I'm trying to write an ordinal number, with its portuguese ordinal indicator "º" using siunitx package, however, none of the options that I tried works. Any help? \documentclass[12pt,a4paper]{article}...
3
votes
2answers
74 views

Set command option with document wide newcommand

I work a lot with the siunitx package and I've got many numbers with a high decimal precision. Now I'd like to be able to just copy these numbers in full precision in the relevant positions in text, ...
3
votes
2answers
67 views

Problems with numbers (result of calculations) alignment using siunitx package inside tabular environment

I'm having some problems when try align numbers, results from calculations, using siunitx package. That is my code. \documentclass{article} \usepackage{siunitx} \usepackage{fp} \usepackage{booktabs} ...
3
votes
2answers
84 views

How to get `siunitx` to accept complex numbers in polar format?

siunitx accepts complex numbers given in rectangular format. In LaTeX, a polar complex number can be written as <number>\angle<angle value>^{<degree symbol>}, but siunitx does not ...
1
vote
0answers
45 views

Undefined control sequence when running siunitx

Good morning, when I try to load the siunitx package, TeX Studio reports undefined control sequence and missing \begin{document}. The error can be replicated by compiling this piece of code: \...
2
votes
1answer
29 views

How to typeset a number like 10.10.10 with the siunitx package?

I want to list the versions of some python modules I am using. The problem is that the format of the version has two dots, for example 10.10.10 or 1.04.5. When I try \num{10.10.10} I get the error: ...
6
votes
3answers
134 views

Align column where each cell has two decimals with siunitx

I also want to align the second column. The problem is, that there can't be two numbers in one cell Is there a way to align the second column via digits even if there are more decimals? I also used ...
2
votes
3answers
129 views

Help Recreating a Table

I am trying to recreate this table using LaTeX. I want to additionally align the decimals. I have tried using this code to do so. \begin{frame} \frametitle{Table} \begin{table} \begin{tabular}{l *{4}...
1
vote
1answer
37 views

Centre column head with siunitx

Consider this example \documentclass{report} \usepackage{siunitx} \begin{document} \begin{tabular}{l S} A & {sf}\\ 0 & 9887779.1\\ 0 & 9999.1 \\ \end{tabular} \end{document} In ...
0
votes
0answers
36 views

Adjust column with siunitx

In this example \documentclass{report} \usepackage{siunitx} \begin{document} \begin{tabular}{l S[table-format=12.1]} A & {sf}\\ 0 & 9887779.1\\ 0 & 9999.1 \\ ...
4
votes
2answers
99 views

How to write non-numerical content into an S-type column from siunitx package?

What is wrong with this table? I think there is something wrong with $\si{\degree}$. \documentclass[a4paper]{article} \usepackage{amsmath, amsthm, amssymb, mathtools} \usepackage{siunitx} \begin{...
1
vote
0answers
29 views

Evaluate/round a mathematical expression using \input

I want to evaluate a mathematical expression using a number from a different latex document. In this case, number.tex consists of a single number (e.g., 40) that has been exported from a statistical ...
1
vote
0answers
26 views

siunitx number too big when trying to round with round-half = even

I was trying to round numbers with siunitx and got the following error: Number too big \num{0.125555555555} The problem occured when I changed the round-half parameter to even. \documentclass{...
1
vote
1answer
30 views

How to put siunitx units in a parenthesis or an equation?

I want to put units in an equation. Someone published a paper with units written that way. I need to mimic that. A simple case would be: \begin{equation} a = \si{\ell}{(\cm)} \end{equation} or \...
3
votes
1answer
87 views

How to add zeros to reach same number of decimal places in tables?

\documentclass{article} \usepackage[locale=FR]{siunitx} \usepackage{booktabs} \usepackage{geometry} \begin{document} \begin{table} \centering \begin{tabular}{lS[table-format=4.6]S[table-format=...
0
votes
0answers
100 views

usepackage{siunitx} produces error - texstudio

Im using TexStudio in UTF8. the following codes \documentclass{article} \usepackage{siunitx} \begin{document} \num{0.12368455} \num[round-mode=places,round-precision=4]{0.12368455} \end{...
0
votes
0answers
22 views

Change the style of decimal point in siunitx [duplicate]

Consider this example: \documentclass{article} ...
2
votes
1answer
41 views

Enabling `exponent-to-prefix` functionality for unitless values

With siunitx package, exponent-to-prefix option seems to work only if there is a unit with the given number (\SI, \SIrange, and \SIlist). I want the option to work even with unitless values (given by \...
2
votes
1answer
42 views

Fixed column width and align on decimal with siunitx

I have the following Latex table I generated with the KableExtra package in R. What I want to do now is make all columns the same/fixed width and align on decimals. The second of these is not to be ...
2
votes
1answer
51 views

Placeholder number with siunitx

I would like to add a placeholder number in my text, to remind me that I still have to look it up, later. I usually just use something like "XYZ" or "???" for this. But when I'm using the \SI notation ...
0
votes
0answers
41 views

siunitx uncertainty values with different number of decimal places and scientific notation

I'm using the siunitx package to typeset number in a table. Because some of the number have an uncertainty value of 1 or 2 I want more decimal places in the uncertainty value than in the number itself,...
1
vote
1answer
44 views

Problem with siunitx package together with rmstyle.cls

could somebody point out what to change in rmstyle.cls file to get siunitx working? Here is the MWE: \documentclass{rmstyle}[12pt] % \documentclass{article}[12pt] \usepackage{siunitx} \setcounter{...
0
votes
0answers
27 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
57 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
186 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
32 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
46 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 posts on dcolumn and siunitx ...
6
votes
2answers
160 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
59 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
38 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
96 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
45 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
81 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 ...
3
votes
1answer
47 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
59 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
80 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
151 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
159 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
90 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
58 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
262 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
125 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 ...