{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

24
votes
2answers
6k views

Automatic thousands separators?

I want to typeset big numbers with a separator (e.g a space or a ",") between hundreds and thousands, etc... For example 1 Million = 1 000 000. I know the package siunitx which does it very well, but ...
6
votes
1answer
1k views

Problem with siunitx and T1 fontenc

I'm having a slight problem with siunitx and fontencwith T1 encoding (I write a lot in Swedish and most people suggest that I should use T1). When I compile to PDF with \usepackage[T1]{fontenc} the ...
4
votes
1answer
2k views

Problem with options in \DeclareSiUnit

I also wanted to know How to use siunitx to write 100 MBps?, so \sisetup{per-mode=symbol,per-symbol = p} solved my question and I decided to use it as option in ...
13
votes
2answers
2k views

\per\kWh produces a wrong output

I want to say 10 cent dollar per kilowatt-hour of electricity. When I compile the following, \documentclass{article} \usepackage{siunitx} \begin{document} \SI[per-mode=symbol]{0.1}[\$]{\per\kWh} ...
11
votes
2answers
3k views

How to use siunitx to write 100 MBps?

I want to show 100 MBps (one hundred mega byte per second) in my article. How to make use of siunitx package to produce the rate correctly? The following outputs are not what I want to get.
3
votes
1answer
463 views

siunitx number too big when trying to round with scientific-notation = fixed

I'm trying to to round numbers in latex in a way, such that 1.23456e-10 rounded to two places becomes zero and not 1.23e-10. One solution with siunitx is \num[round-mode=places,scientific-notation ...
6
votes
1answer
2k views

Adjusting S column in siunitx

I am a beginner in LaTeX, trying to use it for an industrial test report. I have numerous tables in my document, and I have recently discovered the capabilities of siunitx. I would like to use S ...
10
votes
2answers
2k views

Properly align numbers with units in table

I need to typeset a table comparing, among other things, the temporal resolution of certain datasets. Ordinarily, I would put the common unit into the table header, and only list the values in the ...
6
votes
1answer
852 views

Is there an siunitx number formatting option equivalent to pgfplots's “fixed relative”?

I need to typeset a table with units, so I'd like to use siunitx for that. However, I don't want scientific notation, but a given number of figures. pgfplots has the fixed relative option for that ...
14
votes
1answer
2k views

The siunitx package messes with manually input thousand-separators

Recently I found the very useful siunitx package, and immediately looked to use it for some tables. Unfortunately, I already have all my numbers typeset with , thousand separator and . decimal ...
12
votes
1answer
665 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.
5
votes
3answers
1k views

siunitx: Alignment Problems with numbers in parenthesis

The example given below gives me a strange offset in 4th decimal place in the parenthesis. Interestingly, this problem arose only after I updated my Miktex 2.8 to Miktex 2.9. I don't know whats ...
4
votes
1answer
2k views

siunitx uses math mode for symbols - workaround needed when using different fonts for math and text

This is a follow up question from Using old style fonts of palatino (mathpazo) in math mode. The original problem has been solved using siunitx instead of dcolumn. However, the problem is that I am ...
2
votes
2answers
798 views

siunitx multicolumn problem

In addition to Right-centered columns in LyX, I have another problem, now with multicolumns. I want to center the number "98" (which spans two columns) above the two other columns. These shall be ...
1
vote
1answer
392 views

Right-centered columns in LyX

This is very near to my topic: How to align integers on the right, but still center them. However, I do not get it to work under LyX. This is the code I have: \begin{table}[H] \centering ...
8
votes
2answers
432 views

Chemical purity and siunitx clash when putting a “+” after percentage

I'm using siunitx to describe some chemical purities. The purity I would like to describe is sold by the chemical company as 99.9+ % (not the best way of describing it I'm sure). When I try to ...
4
votes
3answers
2k views

Using oldstyle figures of palatino (mathpazo) in math mode

I am using \usepackage[osf]{mathpazo} for oldstyle figures and the dcolumn package to align the contents of tables at their decimal point. The problem is that dcolumn automatically sets the aligned ...
5
votes
2answers
1k views

Siunitx: how to deal with invalid numerical input '-'?

Thanks to you all, I found siunitx for decimal alignment. However, some of the columns in my correlation matrix don't have any numbers and have "-" instead. siunitx gives me an error about invalid ...
4
votes
1answer
1k views

\SIrange[tophrase=dash] fails to render an en-dash

When using \SIrange[tophrase=dash] to specify a range of numbers with units, the range phrase is literally specified as dash. The following MWE yields 10 mdash20 m as an output. MWE: ...
8
votes
1answer
908 views

siunitx number too big when trying to round

Using the siunitx package \usepackage{siunitx} I am trying to put numbers with plenty of decimal digits in a table while rounding them to 3 digits after the decimal point. There is a compilation ...
4
votes
0answers
103 views

siunitx rounding, don't add decimals [duplicate]

Possible Duplicate: siunitx: how can I avoid adding decimal zeroes? I have been using siunitx for physics reports and for some time it have annoyed me that given the settings. round-mode ...
11
votes
1answer
2k views

Having problems aligning in a table with siunitx when using uncertainties in some power of 10

I'm trying to have a table, with an S column (from the siunitx-package) where the numbers are aligned to the \pm signifying uncertainty. Some values have uncertainties like 1.00 x 10⁴ and that seems ...
12
votes
1answer
4k views

Can I change the “range” punctuation in siunitx?

When using siunitx, by default, \SIrange{0}{10}{\celsius} will render 0 °C to 10 °C. Is there any general way to change the default rendering of ranges to 0--10 °C (i.e., using an en dash instead of ...
6
votes
2answers
1k views

Conflict between tabu and tabularx, when using siunitx

I have many tables set with {tabularx} but for some of the it seems easier to use {tabu} which works. But if I use both packages and gave the last X column in {longtabu} an S and optional argument it ...
3
votes
1answer
218 views

Problem with using soul in paragraph mode and siunitx immediately after

This problem seems somewhat obscure, it is potentially a bug in siunitx or soul (I am aware of issues with the latter). Which one is uncertain and I'm not certain that it is a bug. What I want to do ...
3
votes
1answer
734 views

How to use the combine document class with the siunitx package

I am trying to squish several journal papers together (using the combine document class) to provide the filling for my thesis sandwich. The papers make use of the siunitx package but causes an error. ...
8
votes
1answer
3k views

Typesetting unit-less numbers and number-less units

I am using the siunitx package to typeset my numbers, but sometimes I find situations in which I have numbers without units (when the units are not nearby) and units without numbers. E.g.: The bird ...
11
votes
1answer
3k views

Table typesetting with pgfplotstable

I have two questions concerning pgfplotstable and number formatting with pgf. Consider the following piece of code: \documentclass{article} \usepackage{pgfplotstable} \usepackage{amsmath} ...
9
votes
1answer
471 views

siunitx rounding works only if centering

Using the siunitx package \usepackage{siunitx} Consider the following two tables: 1. \begin{tabular}{ S[table-number-alignment=center, table-figures-decimal=3, table-auto-round] } 3.23958398 ...
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 ...
6
votes
2answers
526 views

kpfonts, siunitx and math alphabets

This is a follow up question to this rather vague one. The problem is trying to work out where my 16 math alphabets are going. In using egreg's answer to the previous question I have diagnosed ...
4
votes
3answers
3k views

Problem displaying degrees celsius with siunitx and xelatex

I'm trying to discuss a temperature in a document where I'm using xelatex and siunitx. The temperature was further increased to \SI{200}{\degreeCelsius}. When using xelatex this causes a ...
5
votes
2answers
1k views

Displaying acronyms, abbreviations, and units

I use the acronym package for displaying acronyms, such as "KFC". As most of the acronyms are common knowledge, I use \acs{kfc}, which only presents the short form. Also, the siuntix package can be ...
6
votes
2answers
597 views

Why is siunitx unable to typeset this mixed symbolic and numeric argument to \SI?

I'm using the MacTeX 2011 Distribution on OSX Lion (both with all updates installed) and I get a strange error from the siunitx package, that did not occur with MacTex 2010 on Snow Leopard. As a ...
2
votes
0answers
293 views

strange error with siunitx and sans serif font [closed]

After reinstalling my system, I'm getting a weird "Parameters must be numbered consecutively." error message when trying to use siunitx with a sans serif font. Here is a minimal example code: ...
9
votes
1answer
1k views

How to denote the standard deviation with siunitx?

I'm certain that I saw a command generating the following kind of output the last time I read through the siunitx manual: \left( 12.3 \pm 0.4 \right) V for a measured voltage of 12.3 V and a ...
6
votes
2answers
578 views

User defined command produces error in conflict with siunitx and TeXLive2011

I recently installed TeXLive 2011 on my MacBook (running MacOS X 10.6.8) and got the following problem: Example: \documentclass[11pt, a4paper]{scrbook} \usepackage[ngerman]{babel} ...
6
votes
1answer
654 views

Could icomma conflict with siunitx?

I'm also having the problem with the space after a comma in decimal numbers (like discussed here: German language: use of comma in numbers) and I wonder if I can use both the icomma-package (which ...
14
votes
1answer
9k 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 ...
1
vote
1answer
187 views

no document is created when siunitx is loaded

I wrote a large part of my thesis with MiKTeX 2.9 using siunitx for all units in the text. Now I did an update of MiKTeX 2.9 and suddenly no document is created any more although no error appears. ...
6
votes
1answer
2k views

Enable binary SI units with siunitx in MacTeX

I'm using TeXShop on OS X Lion (the MacTeX distro, which is kind of amazing) and I cannot do the following with siunitx: \SI{4}{\giga\byte} TeXShop says it's an "Undefined control sequence." ...
1
vote
1answer
417 views

Errors with figure caption since using siunitx

I am a bit of a newbie with LaTeX. Everything was working well (mostly) but I am running into all sorts of weird errors since I added the siunitx package. The error log first showed errors with ...
8
votes
1answer
451 views

Why does \num{} not work in situnitx's S columns?

Consider the following MWE: \documentclass{article} \usepackage{siunitx} \begin{document} \begin{tabular}{SS} 0.01 & \num{0.01} \\ 0.1 & \num{0.1} \\ 1 ...
2
votes
1answer
611 views

siunitx - Decimal points not present

Trying to use siunitx to make my columns look all nice and so such. However, The decimal points are absent... Example: Code: \documentclass[letterpaper,twoside,12pt]{article} %%% PACKAGES ...
9
votes
3answers
3k views

sans serif font with siunitx

My students found this problem, which I could not solve. The percent is always printed in the serif font. Here is a test code: \documentclass[]{scrartcl} \usepackage[utf8]{inputenc} ...
11
votes
2answers
5k views

How to use SIrange in math mode

I cannot figure out which of the siunitx font options is the correct to typset the rangephrase when using SIrange in math mode the same way as in text mode. See the MWE \documentclass{book} ...
21
votes
1answer
887 views

“Pretty-printing” numbers redux: engineering notation

Awhile ago I discovered the siunitx package as an answer to this question and it kind of blew my mind. For instance, if I'm using fp to compute a numerical result (in, say, a homework solution), then ...
5
votes
2answers
1k views

sans serif math in tables and siunitx

I want to know the easiest way to ensure that the content inside a tabular, including siunitx columns is set using a/the sans serif math font. The normal document is set in serif font. This approach ...
10
votes
3answers
545 views

mathpazo + siunitx: π turns into ß

When I use mathpazo and siunitx (version 2.3h) together, if I use \pi inside the numerical argument to \SI, it will show up in the output as "ß". \documentclass{article} \usepackage{mathpazo, ...
9
votes
1answer
525 views

How to typeset dimensions of a box?

I want to typeset something like this: 3.0 × 3.0 × 0.9 mm How can I do that in LaTeX (using siunitx package)? So far, I have this: \num{3.0} × \num{3.0} × \SI{0.9}{\milli\metre} But probably ...