Stack Exchange Network

Stack Exchange network consists of 174 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
39 views

\usepackage{siunitx} gives strange compilation errors

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
53 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 ...
0
votes
0answers
48 views

File siunitx.sty not found - how to install?

I tried to use the package siunitx in my latex document using: \usepackage{siunitx} \sisetup{load-configurations = abbreviations} However I got the error: File siunitx.sty not found. I downloaded ...
3
votes
1answer
87 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
42 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
28 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
76 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
25 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
84 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
46 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
24 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} \...
3
votes
1answer
80 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-...
2
votes
1answer
29 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
46 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
31 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
42 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
27 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
32 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
45 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
31 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
57 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
30 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
40 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
98 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
71 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
101 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 ...
0
votes
0answers
34 views

Formatting tables without destroying siunitx alignment

I have a table that shows mean values. I would like to add ± standard deviations to the cells and highlight the relevant cells with a grey-scale background. However, right now the values are all ...
2
votes
0answers
101 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
33 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
51 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
77 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
41 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
103 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
82 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
62 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 ...
4
votes
1answer
29 views

siunitx overwrites the definition of ← and →

This code % !TEX encoding = UTF-8 Unicode % !TEX TS-program = pdflatex \documentclass{article} \usepackage{siunitx} \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{2190}\...
2
votes
0answers
25 views

limit math alphabets created by siunitx

As pointed out in response to this question the package siunitx allocates multiple math alphabets. Is it possible to request that some not be allocated? I, for one, don't plan to use \mathtt, so it ...
2
votes
1answer
58 views

\ohm does'n show while using user font

I want to use Source Serif Pro as mainfont and XITS Math as mathfont. But \setmainfont{Source Serif Pro} makes \SI{100}{\ohm} not working. if remove \setmainfont{Source Serif Pro}, it looks ...
9
votes
1answer
209 views

The “correct” or recommended way of using siunitx in math mode

I want to have equations with units. For example, the Hooke's law in physics. There are 4 non-trivial ways as follows. First Option % first option \documentclass[border=1cm,varwidth]{standalone} \...
2
votes
1answer
67 views

Degree symbol on Japanese system

I am trying to write a degree symbol for an angle on a Japanese computer running an English version of Windows 7. Consider the following MWE compiled with LuaLaTeX 1.0.4 on TeXLive 2017: \...
6
votes
2answers
119 views

Formatting numbers with smaller glyphs for decimals

I am currently writing up a coursebook in which I handle sets of decimal numbers. As the language of the coursebook is French, the decimal separator has to be a comma and the thousands separator a ...
4
votes
1answer
157 views

Big O symbol (order of) and siunitx

I want to write that a quantity is of the order of say, 10 m/s. I have currently used the syntax below, but is there a way to write it completely into siunitx, or is the one considered below a ...
0
votes
1answer
52 views

Producing XXX(+/- YYY) format in siunitx

I have a class that requires we format uncertainties as X.XX(+/-0.YY). So far, I can get siunitx to produce uncertainties X.XX(0.YY); however, I do not see a setting in the manual to add the plus-...
2
votes
2answers
107 views

Need help with font and siunitx issue?

I don't really understand anything about fonts, as much as I have tried to read about them. I ultimately just wanted a font that kinda looked like it was written in a typewriter style, which also had ...
1
vote
0answers
246 views

How to write ohm in paragraph in latex? [closed]

How to write ohm in LaTeX? I was trying to write ohm like \si{\ohm}, but it did not work for me. I am getting error. Kindly explain how to write ohm.
0
votes
0answers
146 views

Undefined control sequence in the Siunitx sty file

I get this error each time i use siunitx. I am using siunitx version 2.7s, with miktex and texworks on PC. % !TEX TS-program = pdflatexmk %% \documentclass[a4paper,11pt,twoside]{report} \usepackage[...
3
votes
1answer
55 views

Siunitx and dcolumn not working in revtex4

The title pretty much says it all. I am writing up a paper that needs to be in revtex4, but for some reason both the siunitx and dcolumn packages are not working correctly. If I comment out my ...
1
vote
0answers
36 views

How to control siunitx prefixes' (e.g. milli) style?

It is not hard to generate units in siunitx in which the milli prefix will be ambiguously rendered as m and confused with meter. \documentclass{article} \usepackage{siunitx} \begin{document} \SI{10}{\...
8
votes
0answers
77 views

siunitx, brackets around negative numbers

writing tables with statistic s result often contain negative numbers in brackets, for example (-1.23), which should be aligned on the decimal point with other numbers in columns. this can be (simply) ...
2
votes
2answers
73 views

Align columns at decimal point using siunitx wherein each cell contains superscripted table-notes

I am using the threeparttable package to typeset a table with some footnotes. I would like to align the entries in each numerical column using the facilities provided by siunitx. However, when table ...