{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
0answers
174 views

numbers before decimal separator do not align in table column [closed]

I want a table column that is aligned at the decimal separator. For that I use the S column type defined by the siunitx package. However, when I do this, the numbers left of the decimal separator are ...
4
votes
1answer
414 views

number separator formatting with ragged right positioning using siunitx, R, Hmisc::latex

I found Boris's suggestion to use siunitx to achieve number formatting in Hmisc::latex tables to almost be exactly what I was looking for: R, Sweave, Hmisc: pretty-print numbers However, if you look ...
3
votes
1answer
1k views

Installation of siunitx and LaTeX 3

I am interested in using the package siunitx. However, it appears that I need to be running LaTeX 3 in order to do this. The installation information on CTAN seems somewhat cryptic, and I am ...
10
votes
1answer
202 views

Getting \bm to pass thru siunitx macros

It seems that macros form the \siunitx package have a \bm problem, but no problem with \textcolor: Note that the 180 passed thru the \ang macro is not bold. So, how do I change the \MyFormat macro ...
7
votes
1answer
379 views

Error in siunitx with TeXlive 2012? 'missing $' with inter-unit-product option

With the latest TeXlive update to the 2012 version, for some reason I am getting missing $ inserted messages, when using the inter-unit-product option for \si. For example, this is taken directly ...
2
votes
1answer
387 views

Spurious spaces in tabular environment with siunitx and percent symbol

I keep getting spurious spaces when I use the siunitx in a tabular environment in the presence of a percent (%) symbol. I am trying to align at the decimal point. My code is: \begin{tabular}{lS} ...
1
vote
1answer
393 views

siunitx package not working in tables

I can't get the special table columns from the siunitx package to work. The numbers render in a normal l column but not in the special S coulmn. Here's my minimal example: ...
8
votes
1answer
309 views

How to round to units of thousands or millions, etc., in a table column?

I have a table with lots of raw numbers in the billions and hundreds of millions. I'd like to abbreviate the figures in these columns to millions. So instead of 234,091,123 as per the input, I'd like ...
3
votes
1answer
249 views

Column format datatool

all. Suppose I have a csv file (let's call it data.csv): Solution,mol/L,Volume(mL),delta_v(mL),moles HNO3,16,5,0.2,3.125E-4 NaOH,6,20.2,0.2,3.367E-3 H2O,1;200,5,2.000E-1 H2SO4,6,5.2;0.2,8.667E-4 ...
1
vote
0answers
385 views

siunitx won't recognise options and new macros [closed]

I seem to be having some weird problems with the package siunitx. The package itself works but almost everything I try to add to it in the preamble doesn't work, e.g.: ...
5
votes
1answer
1k views

siunitx: How to get bold, aligned entries and how to align when units differ in length?

I tried my first steps with siunitx, but I have trouble achieving the following in the minimal example below: 1) aligning the entries in the first column with respect to the decimal dot 2) getting a ...
11
votes
1answer
315 views

alignment of table numbers

why the numbers indicated from the arrows are not aligned compared to the columns above ? \documentclass[border=10.0mm]{standalone} \usepackage{booktabs,caption} \usepackage{siunitx} \sisetup{% ...
7
votes
1answer
567 views

Expressing computer time units with siunitx

I need to express things like (longhand) 'this fullword contains the elapsed time in units of 1048576 microseconds'. I would imagine something like '... units of µs × 2²° ...' (horrid superscript, I ...
4
votes
1answer
242 views

How to use the 'qualifiers' in siunitx?

This question is extention of How to define unit in siunitx? I need 10 kg of water/m^3 of air How to get this...following code does not give this... \documentclass{article} ...
6
votes
1answer
179 views

Siunitx + Junicode font: Overfull hboxes

The following MWE, using Junicode, creates 4 overfull hboxes. But any other font I tried (e.g. Linux Libertine O) creates no warnings. Any ideas? \documentclass{article} \usepackage{fontspec} ...
4
votes
1answer
265 views

Including 'of' in unit qualifiers with siunitx

I need to use units like kg/kg of air or kg of water/kg of air How can I do it with siunitx?
8
votes
1answer
2k views

How to format SI units?

I get 1.0 Nm. But how to get 1.0 N.m \documentclass{article} \usepackage{siunitx} \begin{document} \SI{1.0}{\newton\meter}\\ 1.0~N$\cdot$m \end{document}
13
votes
1answer
1k views

How to set the precision in numbers

I include the number as \num{0.12368455}. I need to print '0.1237'. How to do this...
5
votes
1answer
454 views

Siunitx: Overfull hbox warnings when including significance stars.

I use siunitx to decimal align the contents of tables that I create with Stata's estout, as shown in the MWE below. I think the output is perfect, with the numbers being aligned on the decimal point ...
6
votes
1answer
904 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 ...
3
votes
1answer
839 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 ...
9
votes
2answers
1k 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} ...
10
votes
2answers
1k 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.
1
vote
1answer
277 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 ...
9
votes
2answers
6k views

How do I get expl3 from CTAN?

My real problem is that I am trying to use a package which depends on siunitx, and it complains on compiling with the following error: (/usr/share/texmf/tex/latex/siunitx/siunitx.sty ! Package ...
9
votes
2answers
794 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 ...
10
votes
1answer
895 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 ...
19
votes
2answers
3k 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 ...
5
votes
1answer
438 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 ...
5
votes
3answers
660 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
2answers
942 views

siunitx rounding in table with parentheses

I'm trying to create a standard regression table with standard errors in parentheses below the coefficients, while using siunitx to align the numbers on the decimal point, and to round the numbers. ...
4
votes
2answers
422 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 ...
2
votes
1answer
952 views

siunitx: specifying custom command as input-symbol

This is a follow up from siunitx uses math mode for symbols - workaround needed when using different fonts for math and text. The problem has been solved thanks to David, however there is a problem ...
3
votes
1answer
512 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: ...
4
votes
1answer
1k 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 ...
4
votes
3answers
1k 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 ...
12
votes
2answers
321 views

Adjust the exponent to switch between notations using siunitx

I have a big question about the siunitx package and I hope somebody out there can help me. At first I want to use the automatic number conversion of the package. So I defined: ...
5
votes
1answer
901 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 ...
4
votes
0answers
101 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 ...
10
votes
1answer
1k 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 ...
5
votes
1answer
1k 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
762 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 ...
5
votes
1answer
665 views

Asymmetrical tolerancing

I am new to LaTeX, tentatively using it to prepare a complicated industrial document (laboratory test report). Thanks to help recently obtained here, I have discovered the magnificent capabilities of ...
3
votes
1answer
151 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 ...
4
votes
1answer
870 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 ...
3
votes
1answer
521 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. ...
7
votes
1answer
556 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 ...
8
votes
1answer
256 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 ...
10
votes
1answer
2k 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} ...
8
votes
2answers
366 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 ...