{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

2
votes
0answers
173 views

xelatex select local math font

The problem I am facing is that I am typesetting with MinionPro-Regular.otf as the main font and MinionPro-Cn.otf for the captions. However I have to declare only one math font for the whole document, ...
11
votes
3answers
283 views

Aligning complex numbers in centre of table with siunitx

I'm trying to align complex numbers in the middle of a table column using the siunitx package for nicer alignment, but the numbers are centring based on where the decimal point would be on the real ...
6
votes
1answer
287 views

Representation of complex number with exponents with siunitx (workaround)?

It looks like siunitx (by @Joseph Wright) has a limitation regarding complex numbers with exponents: \documentclass[]{article} \usepackage[]{siunitx} \begin{document} \num{1 + 2 i}\\ %ok, complex ...
3
votes
1answer
294 views

Character substitution: combine \llap{(} and \llap{-} to \llap{(-}

This is a follow up to question siunitx: specifying custom command as input-symbol . The idea is that (,) and - are wrapped into \llap or \rlap so that they do not take any space when a table is set ...
9
votes
3answers
265 views

Why is there extra whitespace to the left of this standalone document when using siunitx?

I'm using the standalone document class. Here is a minimal working example: \documentclass{standalone} \usepackage[siunitx]{circuitikz} \begin{document} Hello world \end{document} The problem ...
7
votes
2answers
319 views

Oldstyle numerals or lining numerals with units of measurement?

What is considered proper typography regarding which set of numerals to use with units of measurement? A real-life example: In the experiment, shown schematically in figure 2.2, we illuminate an ...
7
votes
1answer
287 views

Can I define a new unit that behaves like \ang in siunitx?

The siunitx package provides support for "astronomy style" placement of the degree symbol using the angle-symbol-over-decimal switch, and for simple entry of degree-minutes-second values using the ...
2
votes
0answers
301 views

\SIlist does not work though there is no problem with \SIrange [closed]

When trying to compile the following I get the error undefined control sequence \SIlist. Other parts of the siunitx package like \SIrange work perfectly well, so I really have no idea what what I am ...
5
votes
1answer
423 views

altering per-mode for a single siunitx-equation

I am using siunitx in "per-mode=symbol", and that is working very well. However now I have run into an isolated case, where I need the "per"-symbol to be ^{-1}. Here is a MWE showing what I desire: ...
11
votes
1answer
306 views

Aligning text in S columns in a way that respects the decimal marker for numerical entries

As I understand it, using various options for the S column in siunitx, I may produce columns containing both numerical and nonnumerical entries. I may have the numerical entries aligned at their ...
11
votes
1answer
226 views

Siunitx and cancel package

I want to symbolically cancel out units using the siunitx package. To do so I tried the cancel package as in the following minimal example: \documentclass{article} \usepackage{amsmath} ...
9
votes
1answer
2k 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.
5
votes
3answers
744 views

undefined control sequence when cross-referencing with xr-hyper

I'm trying to create references between two documents. Normally it works great, but I can't figure out why using siunitx inside a chapter name, causes build errors. Simple example: doc1.tex ...
1
vote
1answer
352 views

siunitx + fouriernc = Size substitutions with differences? [duplicate]

Possible Duplicate: xfrac + siunitx gives me a font warning This document (New Century Schoolbook font in \SI) \documentclass{scrreprt} \usepackage[utf8]{inputenc} \usepackage{fouriernc} ...
2
votes
1answer
157 views

siunitx and adjectives

I would like to know if the siunitx package offers the possibility of adding an adjective after the unit, to get a hyphenated compound adjective. For instance, when typesetting "a 10 km-long road", I ...
4
votes
2answers
148 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
442 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
809 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 ...
7
votes
1answer
339 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
687 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
116 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 ...
4
votes
1answer
258 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?
2
votes
1answer
439 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
237 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 ...
4
votes
1answer
231 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 ...
1
vote
1answer
391 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 ...
10
votes
1answer
1k 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
225 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 ...
4
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
451 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 ...
9
votes
2answers
135 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?
4
votes
1answer
186 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 ...
2
votes
0answers
208 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
322 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
207 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
323 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 ...
1
vote
0answers
167 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 ...
1
vote
1answer
368 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: ...
4
votes
1answer
858 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 ...
4
votes
1answer
389 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
903 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
191 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
372 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
351 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} ...
8
votes
1answer
278 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 ...
7
votes
1answer
467 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 ...
3
votes
1answer
232 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
367 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
976 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
298 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{% ...