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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
70 views

Package siunitx Error: Invalid number '1.654 x 2.34 x 3.430'

when I tried to render the document in texlive 2023 with xelatex compiler: \documentclass{article} \usepackage{siunitx} \begin{document} \begin{center} \num{.3e45}\\ \num{1.654 x 2.34 x 3....
Dolphin's user avatar
  • 581
0 votes
0 answers
31 views

Why is \tablenum{} needed for correct table alignment using siunitx and multirow?

I am trying to typeset a very big and complicated table and was struggling to correctly align the last column (the 10 in the MWE should not be centered but under the last two 0s of the 7000000 above ...
ask_ask's user avatar
  • 35
2 votes
1 answer
55 views

The `siunitx` package uses the wrong font for the micro symbol with babel

I use babel to write documents in my native language Hebrew. I also use the siunitx package to format numbers and units. I use custom fonts for Hebrew and English (for Hebrew since I need a font that ...
Shai Avr's user avatar
  • 387
1 vote
1 answer
41 views

Units when the axis is the log

Not sure if this is the right forum but I saw some similar questions so here goes: I want to plot the log of a positive quantity. What's the best approach to communicate units. For instance if I take ...
R Walser's user avatar
  • 121
0 votes
0 answers
21 views

Specify only uncertainty with exponent notation using siunitx

I use the siunitx package to format numbers and units. Let's say I have a lab measurement where the value is of a "regular" order of magnitude, but the uncertainty is really small. For ...
Shai Avr's user avatar
  • 387
2 votes
1 answer
66 views

siunitx in tabular and missing space around pm

The example show the issue: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{siunitx} \usepackage{booktabs,tabularx,multirow} \sisetup{ ...
atapaka's user avatar
  • 228
0 votes
0 answers
18 views

Help standardise decimals and change orders of magnitude in siunitx table

I have a badly written table that has a variable figures after the decimal. I also want to shift the order of magnitude by a factor of 3. The original table is quite big, but this MWE captures some of ...
Miloop's user avatar
  • 569
3 votes
1 answer
53 views

How to insert a character between the number and the unit in the siunitx package

I want the create a compound adjective, e.g., \documentclass{article} \usepackage{siunitx} \begin{document} The $50-\si{\hertz}$ signal is obtained via... \end{document} The output is horrible, ...
Rubem Pacelli's user avatar
2 votes
1 answer
81 views

How to define a \degreeKelvin using siunitx?

I know there is a command like \degreeCelsius in siunitx. But I do not know how to define something like \degreeKelvin (in a title like this). using \qty{300}{\degree\Kelvin} will add too many spaces.
Jadim's user avatar
  • 135
2 votes
2 answers
56 views

tabularray column X with siunitx column S combined gives weird behavior

I use the tabularray package for tables and combined the X column with the si option. The X column` is defined as: My MWE yields this obfuscated table And I tried to tweak some options, but I really ...
jajajafeti's user avatar
2 votes
1 answer
79 views

Bug in siunitx?

I am using power to 1/2 in siunitx: \documentclass{standalone} \usepackage[per-mode = symbol-or-fraction]{siunitx} \usepackage{xfrac} \begin{document} \unit{\second\tothe{\text{\sfrac12}}} \unit{\...
Pygmalion's user avatar
  • 6,155
4 votes
1 answer
53 views

Fraction as a power in siunitx

For a long time I have used the following code to put the fraction 1/2 as an exponent on the unit: \documentclass{standalone} \usepackage{siunitx} \usepackage{xfrac} \DeclareSIPostPower\rooted{\sfrac{...
Pygmalion's user avatar
  • 6,155
0 votes
0 answers
37 views

Declare a SIUnit in math mode?

I want to declare the Bohr magneton \mu_\text{B} as a SI unit in the siunitx package within mathmode. I used the following definition in the preamble: \DeclareSIUnit \muB {$\mu_\text{B}$} Overleaf is ...
mathematica_guy's user avatar
0 votes
0 answers
38 views

Missing space between +--sign in siunitx version [2023-07-31] [duplicate]

I really dont know what happened, but for a couple of weeks I am approaching the following problem. Using siunitx (e. g. \qty{20+-10}{\mg}), the spacing between the +- sign and the numbers is missing. ...
Yannik K's user avatar
3 votes
1 answer
95 views

Problem with powerdot and siunitx

I have a problem using powerdot with siunitx. A minimal example is as follows: \documentclass[style=simple,mode=print]{powerdot} \usepackage{siunitx} \begin{document} \end{document} This generates ...
Blair's user avatar
  • 95
2 votes
2 answers
80 views

How to adjust the horizontal spacing of a table to get a good horizontal distribution?

How can I adjust the horizontal spacing of my table so the columns for Object, Values A, and Values B are evenly or better distributed? So far, I always used the X column type from tabularx to get ...
mab0189's user avatar
  • 165
3 votes
1 answer
50 views

Can't align angle values with siunitx in table

I'm having trouble aligning angle values in my document with siunitx. The numbers are only aligned properly if I don't use the \ang{} command from siunitx. I made a small, minimum working example that ...
mab0189's user avatar
  • 165
2 votes
1 answer
70 views

Shortcut for a counts-per-time unit with siunitx

I am writing first-aid related texts, where I have a lot of expressions like "/min" (like "she has an heart rate of 60/min") and so on. I would like to write this kind of numbers ...
Michael Marx's user avatar
0 votes
0 answers
29 views

Referencing roundtab cell value that is produced by a siunitx macro (here a rounding macro)

In the following script, I'm trying to reference the value tagged by round. But I don't know how to do that. If I place the tag inside as shown, the corresponding cell produces the number without ...
Faheem Mitha's user avatar
  • 7,728
3 votes
1 answer
100 views

Spacing between units in siunitx

I am using the siunitx package and the documentation is a bit mind-blowing. I'm using it with no options and no sisetup. There is zero spacing my units. I have tried to add sisetup with inter-unit-...
LostInHilbertSpace's user avatar
3 votes
1 answer
98 views

Pass options to package loaded as tabularray library

Tabularray emulates commands in some other packages and therefore requests that you enable them with \UseTblrLibrary instead. One such package is siunitx. When loading siunitx normally, one could pass ...
Canyon's user avatar
  • 269
1 vote
1 answer
66 views

How to resolve Debian incompatibility between siunitx and units packages

I have some legacy LaTeX files that use the siunitx and units package. A minum working example is below: \documentclass{article} \usepackage{siunitx} \usepackage{units} % Line 3 \begin{document} $...
Eric Stdlib's user avatar
1 vote
1 answer
125 views

auto expansion only possible with scalable fonts caused by siunitx

english (german version below): I have this LaTex code from a template, I have strongly minimized the preamble, because in the original preamble about 100 different packages and functions are included ...
Albertus's user avatar
2 votes
1 answer
30 views

Vertically align numbers in siunitx column at the bottom

I have a table with different row sizes and some S[] columns from package siunitx. By default, the numbers in the S columns are vertically centered in each row: \documentclass{article} \usepackage[...
Christoph Thiede's user avatar
2 votes
1 answer
87 views

Align numbers at decimal point using tabulararray package

I used the option si={table-format=3.4} because I will have integers in the range of hundreds and as many as four decimals, yet neither the decimals nor the ranges are arranged. What could I be ...
Paul Lara's user avatar
  • 717
0 votes
1 answer
77 views

How to create a thinspace?

I have made a table (please see the attached code, obtained largely from this answer) in latex but I am not being able to create a thinspace after the "<" symbol. If I put the dollar ($$) ...
Souvik Maity's user avatar
1 vote
0 answers
53 views

Simplify zeros in table

I'm making some tables of cartesian coordinates as supplementary information and I just came across some cases where some simplifications might be useful. To generate these tables I copy the cartesian ...
isolated matrix's user avatar
2 votes
1 answer
37 views

Table not appearing, but document compiles without errors

I'm writing up some tables for supplementary information and I've come across an issue. For context, I am using TexShop on a M1max MacBook Pro (i.e. running latest ARM version of TexShop). In order to ...
isolated matrix's user avatar
2 votes
1 answer
43 views

Kurier font, greek letters not displaying properly with siunitx

Trying to use the kurier font along with the siunitx package via pdflatex. In math-mode, the font looks good, but when using siunitx with detect-all the Greek letters are not using the correct font. ...
Pyon's user avatar
  • 45
3 votes
1 answer
101 views

Align table exclusively to plus-minus signs without taking the decimal point into account

I would like to align my table the following way: Arsen______0,63+-0,12__________18 +-12 Blei________11,7+-0,6__________109 +-9 As you can see, I don't want to have any space between the \pm sign and ...
Yannik K's user avatar
1 vote
0 answers
59 views

Line break between the number and the exponent

In the Latex source I have the following text $q_\text{v} = \SI{2.26e6}{\J\per\kg}$ and the line break happens right between the number and the exponent as ... qv = 2.26 × 106 J/kg... Is there any ...
Pygmalion's user avatar
  • 6,155
7 votes
1 answer
146 views

Incorrect spacing of pm sign using S column type

The following code example \documentclass[12pt, twoside]{report} \usepackage[utf8]{inputenc} \usepackage{booktabs,siunitx,amsmath,caption} \sisetup{separate-uncertainty} \begin{document} \begin{...
Simon B's user avatar
  • 173
4 votes
1 answer
78 views

How to typeset micrometer (µm) using Arev font and SIUnitx

I have tried both of the following but the micro symbol is still incorrect since its serif whilst arev is a sans serif font: \sisetup{detect-all} \sisetup{math-micro={\usefont{T1}{phv}{m}{n}\text{\...
Geoffry's user avatar
  • 55
0 votes
0 answers
46 views

Product list in siunitx

How can I print a list of products in siunitx? Is something like \numproductlist{10x5;20x10} possible with some modifications?
Zxcvasdf's user avatar
  • 1,715
4 votes
2 answers
79 views

siunitx with i-fonts-otf do not mix

If you use sisetup{mode=text} of siunitx with kpfonts-otf then \num{2.23e-23} fails. MWE: \documentclass[]{scrbook} \usepackage[spanish,es-tabla]{babel} \usepackage{siunitx} \usepackage[]{kpfonts-otf} ...
juanfal's user avatar
  • 141
1 vote
2 answers
47 views

How to get wrapping in tables while using Siunitx?

Like the title suggests, I'd like to use the S[table-format = xyz] form in my tables, while having the longer headers be wrapped. \documentclass{article} \usepackage{siunitx} \usepackage{booktabs} \...
m0n74g3's user avatar
  • 67
0 votes
1 answer
42 views

siunitx automatic line breaks for text in S column

I'm trying to typeset numbers into a table with a header row using the tabularray package and its siunitx library, but I can't figure out how to get siunitx' S columns to introduce automatic line ...
Thomas Fritz's user avatar
1 vote
2 answers
54 views

Siuntix \num in combination with \input fails with "Argument of \@iinput has an extra }."

I'm trying to make siunitx interpret a number stored in a separate file on disk, but \num{\input{number.txt}} fails with the following error message: Argument of \@iinput has an extra }. Is there ...
Thomas Fritz's user avatar
3 votes
1 answer
141 views

Why is my number not showing up in scientific notation inside a 'S'-type column?

I am using the following code to create a table that contains some regression results: \documentclass[12pt]{report} \usepackage{amsmath} \usepackage{booktabs} \usepackage{siunitx} ...
andrés's user avatar
  • 43
5 votes
3 answers
262 views

font color does not work in front of S column of `siunitx`

Given is a table with factors from x1 to x1000000000 then x0.1 and x0.01 in the fourth column. The S column of siunitx takes care of the alignment. Unexpectedly, however, the font color no longer ...
Michael.H's user avatar
  • 107
2 votes
1 answer
169 views

How to place the unit in front of the number in siunitx?

For Euro, and I assume also for other currencies, it is recommended to put the symbol "€" in front of the number, opposed to most other scientific units where the symbol goes after the ...
MaxD's user avatar
  • 1,117
1 vote
0 answers
37 views

siunitx align numbers in table with some bold numbers

I have change the bold of numbers to b from bx. I found only 10pt is right align, other fontsize is wrong align, when number format is not asymmetrical, such as 1234567890.12. Or if number format is ...
Clara's user avatar
  • 5,714
1 vote
0 answers
62 views

Is this true when I type `\kilo\gram\cdot\metre\per\second`?

I see another way to type \kilo\gram\metre\per\second, see the problem 1.178: I tried \SI{10}{\kilo\gram\cdot\metre\per\second}: \documentclass[border=2mm]{standalone} \usepackage{siunitx} \...
Thuy Nguyen's user avatar
0 votes
0 answers
39 views

Importing siunitx gives warning "file [...] does not appear to be a dictionary"

Why does the following minimal document result in the warning? \documentclass[a4paper, 11pt]{article} \usepackage[utf8]{inputenc} \usepackage[catalan]{babel} \usepackage{siunitx} \begin{document} ...
Adrià Vilanova's user avatar
3 votes
2 answers
205 views

\qty alignment value in IEEEtran tables

So with the new version of siunitx there is this woderful command called \qty{}{}, yet in my table, I would like to have the numerical value aligned on the decimal point (the g_m coloumn). The quick ...
Fr3d's user avatar
  • 121
1 vote
1 answer
52 views

Tabular and SI \unit comand \uA giving a weird t

I just stumbled upon this weird problem using siunitx. I'm doing my report (mandatory in IEEE style), and it seem the micro prefix is giving me this strange t, inside a tabular environment. I ...
Fr3d's user avatar
  • 121
0 votes
0 answers
17 views

siunitx valid number now invalid [duplicate]

The following works fine with TeXLive up through 2020: \documentclass{article} \usepackage{siunitx} \begin{document} \num{\pi} \end{document} Starting with TeXLive 2021, this causes the error ! ...
Teepeemm's user avatar
  • 6,248
5 votes
1 answer
614 views

Why can't I use the Euro symbol (€) with siunitx?

I was just trying to define my own Euro (€) unit with \DeclareSIUnit{\myeuro}{€}, but couldn't get it to work. In the process I made the following MWE with a few different attempts that all don't seem ...
MaxD's user avatar
  • 1,117
3 votes
1 answer
78 views

Inconsistent kerning in units when using detect-all

When using the siunitx v3 option detect-all, the space between prefix and unit changes when in text mode. See the yellow markings in the image below, where the space between k and V is very small in ...
Fritz's user avatar
  • 6,203
1 vote
1 answer
68 views

Make siunitx use roman font in math mode and sans font in text, in a sans-serif document

In a sans serif document (with \renewcommand{\familydefault}{\sfdefault}) I'd like to have units and numbers in text mode set in sans serif, and numbers and units in math mode (inline or display) in ...
Fritz's user avatar
  • 6,203

1
2 3 4 5
32