{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
1answer
194 views

Aligning Tuples of Decimals with PgfplotsTable

In this question, Jake gave an awesome answer that shows how PgfplotsTable can be used to read tab-delimited data from a file, and typeset the parsed decimals in scientific notation such that all of ...
15
votes
2answers
221 views

siunitx not using kerning units correctly ahead of a sentence-ending dot (period, full stop)

If the unit is the final character in a sentence, the sentence-ending dot is not kerned correctly. MWE: \documentclass{article} \usepackage{siunitx} \usepackage{mathpazo} \begin{document} ...
1
vote
1answer
279 views

siunitx with svg graphics

I am using pdfLaTeX (TeX Live 2011) to compile a document. Unfortunately it does not compile. Again, my example compiles flawlessly with TeX Live 2009. I include an SVG/PDF graphics following this ...
7
votes
1answer
228 views

Using siunitx in captions?

I am using pdflatex(texlive 2011) to compile a document. Unfortunately it does not compile. ! Undefined control sequence. \metre ->\ERROR l.69 ...feld \num{6}{\metre} mal \num{6}{\metre}} ...
6
votes
2answers
535 views

Vector notation in siunitx

I'm trying to use the siunitx package to format a number which is a vector (using \hat{x} to represent a vector in the x direction). Using \hat{x} leads to complaints about invalid tokens. After ...
2
votes
2answers
644 views

Table out of margin

I created this table using siunitx package since values must to be represented in scientific notation. Unfortunately the table goes out of margin. How can I fix the issue? ...
4
votes
1answer
176 views

ctable decimal alignment

I'm trying to replicate siunitx's decimal alignmnent in tables, using ctables. \documentclass{article} \usepackage{ctable} \begin{document} \ctable[] {rc} {}{ \FL \textbf{Data} & ...
2
votes
0answers
205 views

Are packages siunitx and xfrac incompatible? - “redefsymbols” [closed]

Is this a bug? Where can this be reported? Can someone of you report this? Code: \documentclass{article} \usepackage{siunitx} \usepackage{xfrac} \begin{document} bla \end{document} Output: ...
20
votes
1answer
978 views

Consistant formatting with siunitx and pgf: Thousands Separator

I like the default behavior of the siunitx package in that the thousands separator is not applied to four digit numbers, but is applied when the number of digits exceeds four. In documents that ...
6
votes
1answer
1k views

Align siunitx columns in numbers table

Here is a table but it has a problem: the column of 1, 20, 50, and 100 aren't perfectly aligned to others. How can I do that? MWE \documentclass{article} \usepackage{siunitx,booktabs,multirow} ...
4
votes
1answer
179 views

Incompatibilty between siuintx and linguex?

\documentclass{article} \usepackage{linguex} \usepackage{siunitx} \begin{document} Foo \end{document} This MWE produces a plethora of error messages, regardless of the order in which those two ...
12
votes
1answer
591 views

Align numbers and separated uncertainties in tables with S columns

If I have a table like this \documentclass{article} \usepackage{booktabs} \usepackage[separate-uncertainty=true]{siunitx} \begin{document} \begin{table} \centering \begin{tabular}{ ...
5
votes
1answer
212 views

siunitx: combine “\num” and “\SI” and change order of arguments

I'm trying to combine the \num and \SI command of siunitx and change the order of the arguments. In particular, what I want to achieve is a new command ...
3
votes
1answer
1k views

siunitx S column does not align numbers without dot

I have a table that uses the S column type provided by siunitx. Unfortunately, if a number does not have a . it is not aligned properly. Yes, i could write number. but then the table will list the ...
9
votes
1answer
264 views

Store results of a calculation automatically under a new macro name

As I am now accessing values from tables via a macro to make dynamic references in the text (see here) and make calculations with it, I need a way to make the resulting variables under which the ...
7
votes
3answers
296 views

amsmath - bidi - siunitx possible bug?

MWE: \documentclass{article} \usepackage[english]{babel} \usepackage{fontspec} \usepackage[detect-all]{siunitx} \usepackage{amsmath} \usepackage[math-style=ISO,bold-style=ISO]{unicode-math} ...
2
votes
0answers
228 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, ...
6
votes
1answer
348 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 ...
11
votes
3answers
323 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 ...
3
votes
1answer
327 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
350 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 ...
8
votes
1answer
362 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
462 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
631 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
349 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 ...
7
votes
2answers
387 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 ...
11
votes
1answer
276 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} ...
6
votes
3answers
1k 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
487 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
178 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
180 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
601 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
1k 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
218 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
445 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
1k 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
131 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
600 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
310 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
621 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
301 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
591 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
246 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
266 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
143 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
235 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
377 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
264 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 ...