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

learn more… | top users | synonyms

1
vote
2answers
390 views

\elementarycharge command not recognized in siunitx package

I'm trying to use \SI{0.006}{\elementarycharge} in the siunitx package \usepackage{siunitx}. The \elementarycharge command does not work. I'm using ...
9
votes
1answer
873 views

How to use lining figures in siunitx and fontspec?

I'm using XeTeX and fontspec, and I have selected old-style figures for my body text. Now I use the siunitx package, and have set it up to use text fonts instead of math fonts. For the siunitx values ...
5
votes
2answers
423 views

What is the correct way based on the consensus to write a volume measurement followed by its unit in liter?

Which one is the correct one? 100l There is no space between number and unit. Unit is written in small letter. 100L There is no space between number and unit. Unit is written in big letter. 100 l ...
2
votes
1answer
1k views

siunitx update breaks things

I upgraded to v2.1 of siunitx since the version in ubuntu's package manager (1.3?) is pretty old. Things seem to have broken. I might have got something wrong with the installation, or I might be ...
12
votes
1answer
4k views

Defining new unit (year, century) in siunitx

I'm having a hard time figuring out the LaTeX commands to define new units of year and century in siunitx. I'd like to write \SI{3}{\cm\per\year} and have it show: 3 cm yr-1, or ...
6
votes
3answers
4k views

What LaTeX Lab packages use expl3?

I am trying to migrate documents to http://latexlab.org, but they won't compile because they require expl3.sty. Yesterday I started by uploading all of the expl3 sty files but then latex demanded even ...
12
votes
1answer
610 views

Why do some fonts used by siunitx and textcomp look rasterized?

For example, the mu in \SI{1.55}{\micro\metre} looks really bad for some reason. For textcomp, \textmu looks the same.
4
votes
1answer
1k views

Puzzling error while using sunitx (in a tabular environment)

I've been working on writing a contingency table in LaTeX (I've prepared myself for a long battle to get multi-line and multi-column cells to appear as I need). \usepackage{booktabs} ...
2
votes
1answer
933 views

siunitx: centering table headings (or other text contents)

I'm trying to center-align the two-line heading of the rightmost column of the following table. Given that I use decimal point alignment, I guess the centre of the headings should be aligned with the ...
9
votes
2answers
8k views

Numbers in tables: align by decimal point *and* flush right?

This is a followup question to siunitx: aligning numbers by decimal points in tables doesn't work for bolded or italicized numbers and Aligning numbers by decimal points in table columns. While ...
8
votes
2answers
4k views

siunitx: aligning numbers by decimal points in tables doesn't work for bolded or italicized numbers

This is a follow-up question for Aligning numbers by decimal points in table columns. User lockstep provided this solution: \usepackage{siunitx} \begin{document} \begin{tabular}{S[table-format=3.2]} ...
53
votes
2answers
16k views

Aligning numbers by decimal points in table columns

Let me begin by stating that I did google the answers (and I'll reference to them soon). Yet each of the resources I found discussed one particular method, I'm interested in a comparison of the ...
11
votes
1answer
6k views

siunitx: scientific notation

I want to use scientific notation with the siunitx package. However, when I try to do it I am getting an error: The width of a human hair is \SI{1 \times 10^{-4}}{m}. This has always given me a ...