{siunitx} is a package that provides consistent typesetting of physical quantities, allowing application of various typographic conventions with the same input syntax. This package should be used instead of the largely obsolete {siunits} package.
6
votes
2answers
198 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
227 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:
...
5
votes
2answers
648 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 ...
8
votes
1answer
470 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 ...
5
votes
2answers
254 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}
...
1
vote
1answer
149 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. ...
4
votes
1answer
468 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." ...
4
votes
1answer
203 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 ...
1
vote
1answer
200 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 ...
5
votes
1answer
247 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 ...
1
vote
1answer
238 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
...
3
votes
3answers
581 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}
...
8
votes
2answers
619 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}
...
5
votes
2answers
474 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 ...
7
votes
3answers
2k views
siunitx: µ doesn't work
I'm using TeXnicCenter for Windows (7) and I'm a bloody beginner in everything that concerns LaTeX. I'm using the siunitx package for mathematical formulas and it works just fine... with one ...
9
votes
3answers
327 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
172 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 ...
19
votes
1answer
515 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 ...
4
votes
1answer
564 views
xfrac + siunitx gives me a font warning
I'm using mathpazo and the AMS math packages, and I just started using xfrac for the \sfrac command. However, now when I use \sfrac (or when I set siunitx to use it), I get this output:
LaTeX Font ...
8
votes
5answers
539 views
How to use siunitx with non numerical values?
I understand that something like \SI{5}{\meter\per\second} defines a certain space between the number (5) and units (m/s). What should I use if instead of a numerical quantity I want a variable: R ...
8
votes
2answers
388 views
siunitx: How do I unset options previously set with \sisetup?
In the siunitx package (v1.3), I know that I can set various options with the \sisetup command. But what if I want a particular option to apply to only a small section of my document, with default ...
0
votes
1answer
675 views
Unknown options for package siunitx
I'm getting an error when I try to specify an option with the siunitx package. I have the following line in my preamble:
\usepackage[load-configurations=si-abbr]{siunitx}
And I get the following ...
1
vote
1answer
579 views
Just installed the latest siunitx and it says that expl3 is too old
Just installed the latest siunitx and it says that expl3 is too old. I looked on the miktex package update manager and I appear to have the latest version of everything.
The package that now contains ...
1
vote
1answer
383 views
Automatically-adjusted spacing for scientific notation in siunitx
With the input
[ n=CV = \SI{3.29e-3}{\micro\mol\per\L} \times \SI{8e-4}{L} = \SI{2.63}{\micro\mol} \]
I get output
As you see the spacing is not quite right - I really want the spacing of the ...
7
votes
1answer
217 views
Remove parentheses from number with uncertainty and the separate-uncertainty=true option with siunitx
This is a follow-up to my previous question.
Using the separate-uncertainty=true option with siunitx, a number like \SI{100 \pm 12}{\kelvin} would be output as (100 \pm 12) K
I want to get rid of the ...
3
votes
2answers
645 views
In the siunitx package, how do i get it to produce uncertainties with the \pm symbol instead of parenthesis
Using the siunitx package, if I specify an error with the \pm symbol then it automatically converts it to a form using parenthesis. I would like it to not do this and keep the \pm symbol, but still ...
7
votes
2answers
808 views
Expressing capital M for molar in siunitx package
The following code isn't valid but conveys my intention:
\SI{}{\micro\molar}
as in micro followed by a big M. I don't want to use the explicit form of micro moles per L raised to the negative one ...
3
votes
1answer
177 views
Detect-all does not affect output-decimal-marker (siunitx)
I would like siunitx to detect the document font family and use it for numbers in an S tabular cell, so I am using the detect-all option, which however does not seem to affect the output decimal ...
7
votes
1answer
459 views
Aligning the currency symbol in a tabular environment
Friends, I have to create some sort of a balance sheet, so my first sketch is using a tabular environment. I also have to follow some styling rules.
One of the styles rules I need to obey is the ...
7
votes
3answers
255 views
How to switch large document from units-package to siunitx?
For historical reasons, I've been using the units package in my thesis to typeset numbers with units or units with \usepackage[tight]{units}
For formatting numbers in table columns I'm already using ...
4
votes
3answers
735 views
How to create equally spaced columns in a table with centered number blocks, which themselves are aligned on the decimal marker?
I've searched around this site and also alot with Google, but did not find exactly a solution to my problem:
I want to create a table width equally (and automatically) spaced columns. These columns ...
3
votes
1answer
520 views
tabular, siunitx and input - `Extra }, or forgotten $.`
I'm trying to include data into a tabular environment
\usepackage{booktabs}
\usepackage{siunitx}
\begin{table}
\begin{center}
\begin{tabular}{SSSS}
\toprule
{$na^3$} & ...
5
votes
3answers
503 views
siunitx: how can I avoid adding decimal zeroes?
How can I format a table column with siunitxwithout adding additional zeroes after the decimal separator?
I'd like to see 5,2 in the output instead of 5,200 (however: 0,246 shall still be displayed ...
2
votes
1answer
296 views
siunitx S-column in table: can I combine scientific notation and decimal numbers in one column?
I have a table with values exported from a statistics software, where the values are formatted like this (see example below):
Some (very small ones) are in scientific notation, some are in "normal" ...
4
votes
1answer
145 views
siunitx: protecting lines with text from being formatted as number?
The siunitx package has already been extremely helpful to me for formatting tables containing numbers and I now use the S-column in nearly every table of my thesis.
However there is one problem:
In ...
4
votes
1answer
252 views
How to center numbers in a table column with the siunitx package?
I've been trying and searching for quite some time, but I don't see what I'm doing wrong:
I want to create several table columns with decimal numbers (some in the format "1,25" and some like "3,156" ...
18
votes
2answers
4k views
Differences between SIunits and siunitx packages
I was reviewing What packages do people load by default in LaTeX?, and noticed that the siunitx package was recommended. I have been using ...
16
votes
3answers
2k views
Should I put a space between a number and its unit?
No too much more to say.
\( 2.63\si\ohm \) looks odd. But it might be the correct way.
\( 2.64\,\si\ohm \) looks much better IMO. What about the \,? Sould it be bigger, smaller or there is no really ...
8
votes
1answer
1k views
Comma as decimal marker with siunitx (Spanish usage)
I'm using siunitx to input some big numbers and units in my document.
Is there a way to make the output of \num{3.14} be "3,13" instead of "3.13"? In Spanish, we use the first one.
2
votes
1answer
797 views
siunitx, threeparttables and table footnotes
I am trying to use the S option of siunitx for table alignment alongside with threeparttables for table footnotes, but it looks like that the footnote mark is flushed left everytime \tnote{} is used.
...
6
votes
2answers
288 views
siunitx S column to produce aligned numbers in italics and parentheses
My apologies first as it may be that if i spent a sufficient amount of time playing and reading the siunitx manual, that I might be able to figure this out. About an hour has failed to yield the ...
6
votes
3answers
998 views
units error with siunitx
! Undefined control
sequence.
\documentclass[12pt]{article}
\usepackage{siunitx}
\begin{document}
\si{300}{\nanogram\per\millilitre}
\end{document}
Why?
2
votes
1answer
144 views
I get an error when I put an imaginary number in a column of a table with column specifier S (from siunitx package)
Using the siunitx package. I have a table with column specifier S
if I then put an imaginary number in it comes up with a compile time error:
! siunitx error: "table-partial-number"
!
! No space ...
3
votes
2answers
337 views
I had a problem with spacing of tabular columns combined with \multicolumn. I found an inelegant solution. Perhaps someone knows of a better one?
Consider a table with several columns. Three consecutive columns are thin. These three thin columns have a long \multicolumn{c}{3}{??} heading over them. If nothing is done to specify how these should ...
7
votes
1answer
200 views
siunitx package, doesn't seem to format imaginary numbers correctly
If I use the siunitx package to generate an imaginary number e.g.
\SI{120i}{\per\centi\meter}
then it places a 0 before the 120 (probably some artifact of expecting complex notation with a real number ...
7
votes
1answer
498 views
Align siunitx numbers in a tabu table
The minimal example below gives me a strange offset in numbers with exponential numbers. I think tabu and siunitx are getting in each others way. Is anyone aware of a workaround?
...
3
votes
2answers
251 views
Problem with slanted numerals when combining siunitx and arev
There is a strange interaction between the siunitx and arev packages, whereby all the numerals appear slanted when using commands such as \num or \SI.
\documentclass{article}
\usepackage{siunitx}
...
6
votes
1answer
569 views
siunitx: localisation not working
I have just discovered the siunitx package and want to use it in a German language document. Unfortunately, I can't get the German word 'bis' instead of 'to' with the \SIrange command:
\listfiles
...
9
votes
3answers
950 views
How to use siunitx and tabularx together?
I'm using the tabular features of siunitx (for what it is worth: v1.3 since I'm on TexLive 2009) to align numbers in tables, eg.
\begin{tabular}{ p{1.5cm} S S S }
bla & 1.23 & 4.5 & 67.89 ...
10
votes
1answer
596 views
Make pgfplots typeset axis units as reciprocals using siunitx
pgfplots has a library units that allows to typeset units in axis labels provided through x unit=<unit>. Through the key \pgfplotsset{unit code/.code={\si{#1}}}, it can be made to typeset the ...