Skip to main content

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
1 vote
0 answers
46 views

nesting of units within siunitx

Isn't it allowed to nest units in siunitx v3.2.2 anymore? The following snippet worked fine with 2.7g. \SI{-160}{\dBmWperHertz} with the macro \DeclareSIUnit{\dBmWperHertz}{\dB(\SI{1}{\mW\per\hertz})...
Jürgen's user avatar
  • 2,192
1 vote
2 answers
100 views

Siunitx: spread table content accross page

I create a table where numbers are included, and since the numbers were not aligned properly with each other vertically, I decided to the sunitx package to tidy up the numbers. This is the code I used:...
Saïd Maanan's user avatar
2 votes
2 answers
45 views

How can I fix the rendering of these glyphs in stix2?

I have the MWE below, where I'm trying to get stix2 fonts to work with the other packages, but there seems to be a conflict. How can I resolve this and why is it happening? Using lualatex compiler in ...
aleks's user avatar
  • 33
0 votes
1 answer
23 views

Numeric alignment in table with multicolumn and multirow

I have trouble in aligning the numeric value at the dot, or at the "x" symbol. I tried to format the columns as S columns from siunitx, but it did not work. Some columns appear to be already ...
arielpriarone's user avatar
0 votes
0 answers
41 views

Equivalent to siunitx for cgs units?

I have always used the siunitx package to write quantities with units, for example: \begin{gather*} x = \SI{2.5}{\meter} \\ q = \SI{1.6e-19}{\coulomb} \\ m = \SI{5.29}{\kilo\gram} \\ \end{gather*} ...
Shai Avr's user avatar
  • 909
2 votes
0 answers
23 views

Remove parenthesis around number with uncertainty in \qtylist () [closed]

This follows from the last comment of this thread. I would like the output of \qtylist{370(25); 360(19); 386(14)}{\m} to be 370 \pm 25, 360 \pm 19 and 386 \pm 14 m, whereas now I'm getting (370 \pm ...
mayonnaise's user avatar
2 votes
2 answers
89 views

Get the Error with siunitx

Now I recompile the answer at here \documentclass{article} \usepackage{tabularray} \UseTblrLibrary{diagbox} \usepackage{siunitx} \sisetup{output-decimal-marker={,}} \UseTblrLibrary{siunitx} \begin{...
John Paul Peter's user avatar
2 votes
1 answer
22 views

How to round to ones place with siunitx table-format, e.g. "-1e-12"

I want to format numbers like -9.9309e-13 to show as -1e-12. I've tried to do this, below, but it's not working. What am I missing? \documentclass{article} \usepackage{siunitx} \newcolumntype{U}{S[ ...
troy's user avatar
  • 89
2 votes
2 answers
62 views

Siunitx package - NiceTabular environment - Preserve header from formatting

Simple issue that I cannot figure out. I use a lot of table in my report and like the NiceTabular environment. I also use Siunitx package in that environment to format numbers from my raw data. Very ...
Atiroocky's user avatar
1 vote
1 answer
21 views

Showing first not-sigificant number using package siunitx

How can I get LaTeX to show a zero (0) in brackets after the decimal point, when using the siunitx package? I want the output to look like this: 4,399(0) kg But right now it looks like this 4,399 kg - ...
Fabian Erhart's user avatar
0 votes
2 answers
46 views

Multirow cell obfuscated by \hline

Here is an unfinished (yet properly compiling) table that I made in LaTeX. I'd like to be able to say that I tried different things to fix it, but I'm not even sure where to start, as I'm coming back ...
GPWR's user avatar
  • 267
3 votes
1 answer
35 views

Issues with siunitx, and longtable percentage column

On the line of some other tables I made, I have attempted to use the same approach for this one. However, in this case I have three columns with different type of numeric entries. The first one is a ...
Matteo's user avatar
  • 323
1 vote
1 answer
50 views

How to extend upon siunitx to list units?

I have made this trivial additional macro using siunitx called \qtyalt{} and \numalt{} that helps me add the separator "or" at the end of the list like so: \documentclass{article} \...
Miloop's user avatar
  • 978
2 votes
2 answers
107 views

How to apply Sans Serif to all text and math

I spent a lot of effort recently to apply sans-serif font to my text and math as well. I always have at least one of the problems: Units are not displayed in the same font family as text. Greek ...
Brasil's user avatar
  • 1,380
3 votes
2 answers
59 views

How to get the "normal" text Euro sign in siunix using \qty

I want to have the same Euro sign in the \qty{...}{...} options as in the text. MWE: \documentclass{scrbook} \usepackage{amsmath,amssymb} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \...
Fantastic MsFox's user avatar
0 votes
0 answers
36 views

How do I align a column on a decimal point in an xltabular environment? [duplicate]

I have a landscape, long table with different column types specified, as in tabularx. I am using the xltabular package, as it seems the perfect combination of longtable and tabularx that I require. ...
bmcb's user avatar
  • 1
1 vote
1 answer
37 views

Typesetting µ fails with siunitx and ETbb font

I encountered the problem that using the ETbb font does not look nice when used with the siunitx package. The Greek unit prefix µ gets messed up, here is a MWE: \documentclass[border=2pt,varwidth]{...
user avatar
1 vote
1 answer
38 views

SIunitx fails with a LyX module (fancytheorems)

I use texlive with LyX, and use fancy theorems module to get customized theorem layouts. However, when I use the SIunitx package with the module, LyX throws "undefined control sequence" ...
Koin toss's user avatar
1 vote
0 answers
40 views

Get siunitx output in bold when using Cambria Math font

When trying to get units in bold using the siunitx package \textbf{\unit{\kg,\um, \mJ}}, I get the warning LaTeX Font Warning: Font shape `TU/CambriaMath(5)/b/n' undefined LaTeX Font Warning: Some ...
SockPile's user avatar
4 votes
1 answer
122 views

write a power of ten non-integers

I would like to be able to write non-integer powers of 10. With the siuntix package, I'm tinkering to get something done but it's not very pleasant to read. How in my example can I write 10^-6.5 ...
Nicolas's user avatar
  • 1,277
4 votes
1 answer
85 views

How to define a custom axis attribute to reuse multiple axis settings?

edit: This post originally was named "Why is siunitx throwing an \endcsname inside newcommand?", but the rename does reflect the intention of the question better I think. Why is this code (...
VanC's user avatar
  • 57
4 votes
3 answers
122 views

Change the font size of siunitx output

When writing numbers with units using the siunitx package, \SI{1064}{\um}, the numbers and units are noticeably smaller than the text, however the mu seems to be the correct size. I am using Verdana ...
SockPile's user avatar
0 votes
0 answers
34 views

Siunitx error with digitsep range-phrase

I'm getting the following error with my up-to-date install of siunitx: ! LaTeX Error: The key 'siunitx/digitsep' is unknown and is being ignored. For immediate help type H . ... l.165 ...e, digitsep={...
DLyons's user avatar
  • 529
1 vote
1 answer
35 views

Chronology Package conflicting with siunitx

Trying to add a basic timeline to a document. The chronology package appeared to be a good choice, but I'm getting a conflict with siunitx. The MWE will run as-is, but un-commenting the \usepackage{...
TheBeeTee's user avatar
4 votes
1 answer
65 views

How to reduce the spacing before \degreeCelsius in siunitx?

How to reduce the spacing between the number and degree symbol in siunitx? I'm aware of the BIPM recommmendation to use a space, but couldn't find any typographic recommendations. I don't want to ...
Anna's user avatar
  • 837
2 votes
1 answer
30 views

using package siunitx breaks tabular (missing vertical line)

Consider the following MWE: \documentclass[a4paper,10pt,ngerman]{article} \usepackage{babel} \usepackage[a4paper, left=2.0cm, right=1.5cm,top=1.5cm,bottom=10mm]{geometry} \usepackage{array, ltablex , ...
Junius's user avatar
  • 175
3 votes
1 answer
31 views

siunitx: limit the width of a table header

The decimal-aligned column of numbers I need to typeset has a very long header. \documentclass{article} \usepackage{booktabs} \usepackage{siunitx} \usepackage{array} \newcolumntype{E}{S[table-format=...
Nil Admirari's user avatar
0 votes
0 answers
37 views

How to use non-italic units in Nomenclature?

I tried using the siunitx package and converting the units to non-italic for the units that appear in the Nomenclature section as below: \nomenclature[a-av]{$a^v$}{Active specific surface area\nomunit{...
BuV8's user avatar
  • 1
3 votes
1 answer
160 views

Problems with degrees Celsius in new siunitx

There have been some changes to siunitx recently and one of them is the typesetting of units. The change is most noticeable in degrees Celsius. In the new version, the degree symbol no longer scales ...
Pygmalion's user avatar
  • 6,329
2 votes
1 answer
29 views

Problem with \DeclareSIPostPower in siunitx

Consider the following document: \documentclass{standalone} \usepackage[inline-per-mode = symbol]{siunitx} \DeclareSIPostPower\rooted{\textrm{\textonehalf}} \begin{document} \unit{\W\s\rooted\per\m\...
Pygmalion's user avatar
  • 6,329
0 votes
2 answers
62 views

typesetting a viscous damping coefficient

I want to typeset a damping coefficient (Force/Velocity) like this c = 100 N/(m/s) or -1 c = 100 N (m/s) using LaTeX and the siunitx package, but I don't know if is it possible to do ...
gboffi's user avatar
  • 923
1 vote
1 answer
26 views

pdf page not big enough for all columns

Running the following code I get a table as shown in the following figure with the last element of headline 3 not fitting into the pdf sheet space and its elements are lost. How can I make sure that ...
V013's user avatar
  • 13
2 votes
1 answer
122 views

Can I use different siunitx "S" table formats for different rows?

In this table, I'd like to use 1.2+-1.2 alignment for all rows, except for one. How can I make the fourth row align with the others at the plus-minus symbol, but ignore the decimal points? Trying to ...
Anna's user avatar
  • 837
1 vote
1 answer
43 views

datatool and siunitx have different understanding of decimals and its conversion

This is a follow up question on Convert decimal to locale fails using datatool in combination with tabularray. Or let’s say it this way: I could boil done the problem a lot. The core problem is the ...
lukascbossert's user avatar
1 vote
0 answers
60 views

Convert decimal to locale fails using datatool in combination with tabularray

I have this rather complex code which produces several tables at the end. The problem currently is the locale setting of the last table. This uses commands from datatool to calculate the sum of ...
lukascbossert's user avatar
1 vote
0 answers
30 views

Comma in the decimal numbers (Italian notation) [duplicate]

I wanted to ask this question a few months ago, and I don't know if there is a duplicate. I have searched but couldn't find anything. Here there is a minimal working example: \documentclass[a4paper,...
Sebastiano's user avatar
  • 56.7k
2 votes
1 answer
100 views

siunitx in a table: how to align on the plus-minus?

I'm using siunitx for a column of numbers with uncertainty in my table. Is it possible to align the column so that both the part before and the part after the plus-minus sign are aligned? \...
Anna's user avatar
  • 837
4 votes
1 answer
132 views

How to put \SI in a yticklabel?

How can I get my pgfplot to let siunitx write labels on the form \SI{10}{\milli\metre}? The following does not work: \documentclass{standalone} \usepackage{pgfplots} \usepackage{siunitx} \pgfplotsset{...
Anna's user avatar
  • 837
0 votes
0 answers
43 views

Small caps for siunitx units

The Economist style guide suggests typesetting capital units and prefixes, except for temperatures, in small caps. How can I achieve this with siunitx? Should I redefine them all with \DeclareSIUnit ...
Anna's user avatar
  • 837
1 vote
1 answer
60 views

How to get engineering multiples notation out of numerica results

The numerica package is a very handy tool to solve circuit equations, but I couldn't find a way to get numerical results using engineering multiples like mA, kV, etc. The siunitx package has a very ...
Anisio Braga's user avatar
1 vote
1 answer
113 views

How to use make4ht for threeparttable with siunitx to make an odt

I am trying to work off my previous request here: htlatex breaks down when using siunitx For context, I am trying to convert a manuscript written in .tex into a .odt file using make4ht. I am using ...
Miloop's user avatar
  • 978
2 votes
1 answer
102 views

htlatex breaks down when using siunitx

I have a manuscript that is written in LaTeX. After a couple of rejections and modifications, the new journal seems to only accept .docx files. I plan to convert my manuscript to a .odt as the editor ...
Miloop's user avatar
  • 978
1 vote
1 answer
59 views

Renew qtyrange with default precision value

i would like to have a default round-precision value for \qtyrange that is different from the rest of the package, im having some problem changing it MWE: \documentclass{article} \usepackage{siunitx,...
Felipe9's user avatar
  • 339
0 votes
0 answers
78 views

Physical symbols (italic)

Symbols for quantities are written in italics. I know that I can use \qty{}{} for numbers and units. Is there a similar command for symbols? Or would this be okay? \documentclass{article} \usepackage{...
Sylvia's user avatar
  • 485
3 votes
1 answer
84 views

Minus sign in siunitx inverse unit does not adapt to font size

It appears to me that the minus sign in ms^{-1} from siunitx does not adapt to the font size. Here are two examples, one at 10pt and one at 12pt: I believe the first minus sign is too long. Is it too ...
Anna's user avatar
  • 837
0 votes
0 answers
55 views

siunitx: Does \qty allow for fractions? [duplicate]

Can I use \qty for fractions? I get an invalid number error.
Sylvia's user avatar
  • 485
1 vote
1 answer
81 views

Using siunitx to format hex digits

Is it possible to tell the \siunitx package to treat some letters as digits? For instance, it would be nice to be able to format hexadecimal numbers using $\num[digit-group-size=4]{6789ABCDEF}_{16}$ ...
Peter Grill's user avatar
3 votes
1 answer
87 views

How to use exponent "E" with superscript numbers?

Using siunitx i would like to change the exponent marker to be E but maintain the exponent number in superscript \documentclass{standalone} \usepackage{siunitx} \sisetup{ output-exponent-marker={\,...
Felipe9's user avatar
  • 339
3 votes
2 answers
172 views

column alignment with tabularray

I'm trying center specific cells with tabularray, but I don't see how to override the alignment from siunitx. I want the cells on the second row from the top to be centered, but they are currently ...
troy's user avatar
  • 89
3 votes
2 answers
107 views

Siunitx - keep leading zeroes while parse-numbers=true

The default suggestion for keeping leading zeros is to set parse-numbers=false. However, I have a lot of examples where the decimal markers varies between , and . Thus, I need the parser to change the ...
DrJay's user avatar
  • 1,162

1
2 3 4 5
33