{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

4
votes
2answers
167 views

Typesetting image scale in SI units using the siunitx package

I use the siunitx package to consistently typeset units in my thesis. One particular typesetting format I'm interested in is the format of scales. Let's say I'm describing a 5-by-5µm image. I ...
3
votes
1answer
559 views

siunitx align numrange

ave a table with a table in which I use \numrange of the siunitx package. I would like to center align that column at the range-phrase. If I align it left, it sort of works, but if I align it center, ...
24
votes
1answer
990 views

microtype + siunitx and \micro - mysterious warnings

This code \documentclass{scrreprt} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{microtype} \usepackage{siunitx} \begin{document} \SI{10}{\micro\metre} \end{document} produces these ...
6
votes
1answer
210 views

Problem using mmap, mathpazo and siunitx

I have these packages in my preamble: siunitx, mmap, mathpazo that somehow seem to mess things up. A minimum working example that shows the error: \documentclass[a4paper]{article} \usepackage{mmap} ...
7
votes
1answer
412 views

Trying to use symbols withing the number in the siunitx package

I'm trying to use the following with siunitx: \omega_x = \SI{100\pi}{rad.s^{-1}} But it comes out wrong. There is a space placed between 10 and 0π, as if π was actually a digit rather than a ...
13
votes
1answer
924 views

Why has m/s changed in siunitx package?

I would have expected \meter\per\second to generate an output m/s. But when using the package siunitx the output is similar to ms^-1. I referred the documentation for the package and there too the ...
3
votes
0answers
121 views

Migrating from SIunits to siunitx: are there any obvious pitfall? [closed]

I understood the differences that were mentioned at the following link. Differences between SIunits and siunitx packages I am using TexStudio and MikTeX (perhaps the most recent version, considering ...
2
votes
1answer
556 views

Error: “per-mode” is undefined [closed]

The simple expression: $v_f = \SI[per-mode=fraction]{32}{\meter\per\second}$ when parsed, yields the following error: ! Package xkeyval Error: `per-mode' undefined in families `key'. However, ...
2
votes
1answer
290 views

siunitx | Alignments in Table

Consider the following (refined) MWE: \documentclass{article} \usepackage[locale=DE]{siunitx} \usepackage{booktabs} \begin{document} \begin{table} \centering \caption{S{\o}vnm{\ae}ngde blandt ...
1
vote
1answer
526 views

How to write the unit milli tesla meter?

Right now I am using mTm (code: \unit{10}{\milli\tesla\meter}). I wanted the output to look like mT-m. The SIunits package documents talks about half-high dot but doesn't mention any hyphen. Any ...
11
votes
1answer
2k views

SI units for sheet resistance using siunitx

I'm trying to get the package siunitx to output the units for sheet resistance (Ohm per square), with the square as a square box. My current solution (in text mode) is: 30-60 $\Omega/\square$ ...
3
votes
1answer
275 views

How to line break a siunitx unit

I made a new command for this unit: \SI{#1(#3)e#2}{\KBE\per\gram\of{FM}} But it is so bulky and it seems that latex can t handle the "normal" linebreak. So, my new UNIT is sometimes over the normal ...
5
votes
1answer
1k views

newcolumntype, siunitx, tabu and illegal pream-tokens

I use tabu with siunitx for making my charts with MikTeX 2.9, tabu 2.8 and now siunitx v2.5g. Since last time using the updater \newcolumn commands like \newcolumntype D{X[1,c]{% ...
1
vote
1answer
550 views

Center align italic number in siunitx S-column

Here is a table with the siunitx S column type. I would like the italic value (the command with swapshift) to be still centered on the decimal point. The superscript can be variable, but will almost ...
4
votes
1answer
220 views

Using dashes with siunitx with pgfplotstable

I have a table setup that is mostly numerical columns. However, there are occasionally some cells that have a blank entry, currently the in the excel csv file output as "---". Everything worked ...
4
votes
1answer
252 views

AUCTeX style for siunitx

Is there any AUCTeX style for siunitx? If not are there any simple tricks which make it more easy to type siunitx commands in emacs. For example if I type C-c C-m SI it inserts just \SI{} with one ...
9
votes
2answers
141 views

ascii and siunitx packages collide

I want to load both the ascii package and the siunitx package. The problem is that both define a symbol \SI. Is there any way to make both packages work together?
2
votes
0answers
227 views

siunitx not working in table [closed]

I am trying to use siunitx package to format tables, but it just doesn't seem to be working. I am using texlive2012 installation under ubuntu 12.04. A minimal "working" example would be: ...
2
votes
1answer
355 views

Can siunitx use roman when familydefault is set to sans serif? [duplicate]

Possible Duplicate: Can I make siunitx commands use serif fonts like the rest of the math in beamer? I have a MWE showing setting the family default to sans serif with ...
4
votes
1answer
251 views

Color table element with siunitx S column

I have a table with numbers that I have aligned using the S column type provided by the siunitx package. I need to make one of the table elements red, but when I do that, the number that is red is no ...
8
votes
1answer
423 views

Can I make siunitx commands use serif fonts like the rest of the math in beamer?

In a beamer presentation I can use \usefonttheme[onlymath]{serif} to typeset the math in a serif font while the rest of the presentation is in a sans-serif font. But the \SI command from siunitx ...
8
votes
1answer
1k views

siunitx: Bold single numeric cells

I'm struggling to make a single numeric cell in an siunitx table bold. (A similar question for making a whole column bold is available here.) I want to define a simple macro which I can set for the ...
1
vote
0answers
178 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
425 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
205 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
389 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
399 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
413 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
325 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
255 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
404 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
335 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
605 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
257 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
181 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
274 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
480 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
950 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
883 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 ...
10
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
291 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
7k 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 ...
10
votes
2answers
851 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
941 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 ...