{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

11
votes
0answers
134 views

siunitx disturbs spacing of \, in math with xelatex

In the following example - compiled with XeLaTeX - the spacing of \thinspacing/the value of mu (used by \,) is disturbed if \SI is used in the math before: \documentclass{article} ...
6
votes
0answers
45 views

Defining a list and range of \ang values in siunitx

The angle processing function \ang provided in siunitx to print angles are printed in arc format with degree, arcmin and arcsec separated by semi-colons: \ang{1;2;3} Is it possible to define a ...
5
votes
0answers
58 views

Hightlight specfic digits within siunix's \num

I would like to highlight specific digits in a number. Since the number is large I would like to use \num{} from the siunitx package. Of course I can do it manually as in the MWE below, but was ...
4
votes
0answers
90 views

siunitx with reciprocal option misses \cdot between numerator and denominator

I have a minimal example of an siunitx usage which has some unwanted behavior, maybe a little bug. \documentclass[a4paper,11pt,fleqn]{book} ...
4
votes
0answers
175 views

siunitx tabular numbers with separated uncertainty

I would like to format the space reserved for a number shown in a table with separated uncertainty. It seems that when I use the table-format option the brackets around the mantissa disappear. This is ...
3
votes
0answers
107 views

Typography of unit symbols for Molar and Liter in siunitx

The siunitx manual suggests using \DeclareSIUnit\Molar{\textsc{m}} as the symbol for Molar but this creates a small cap M. This is (apparently) how Molar was defined in version 1 of siunitx. However, ...
3
votes
0answers
167 views

How to define a style for drawings using a special font and siunitx?

I would like to define a style (e. g. style=techDraw) that gives me the possibility to define the behavior of all technical drawings made by tikz or imported as pdf_tex a. s. o. when the style ...
2
votes
0answers
21 views

siunitx does not detect semi-bold font

The option detect-all of the package siunitx should apply all font attributes of the surrounding text to the quantity and the unit. However, this does not seem to work for semi-bold text, see the ...
2
votes
0answers
51 views

Siunitx does not format numbers

This is my code for the table, I was expecting siunitx to add the comma to the numebers with more than 3 digits, i.e., 3456 -> 3,456 but it does not happen, the numebers without decimals are shown as ...
2
votes
0answers
93 views

Problem adding caption with siunitx

I am using latex/beamer(texlive) to compile a document and I am getting an error. Apparently it has something to do with siunitx package. Here is a minimum working example. ...
2
votes
0answers
104 views

siunitx package use with tex4ht and generation of invalid mathml for units

This file \documentclass{article} \usepackage{siunitx} \begin{document} \SI{10}{\square\meter} $\SI{10}{\square\meter}$ \end{document} Builds fine in padlatex, but fails in the HTML generated by ...
2
votes
0answers
97 views

Change fonts for units in siunitx

In the rules of typography for my language there is a rule, that units (only units, not numbers) should be displayed in different font than the rest of the text. E.g. if all of the text has serif ...
2
votes
0answers
227 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, ...
1
vote
0answers
16 views

multiple tabular environments using siunitx

Does anyone know of a way to create several decimal-aligned tables within an enumerate environment? This is NOT a table, but it is a set of enumerated items with explanations and numerical data ...
1
vote
0answers
31 views

Include siunitx package in subdirectory

I am creating a TeX project that uses the siunitx package. I would like to be able to place the siunitx package in a subdirectory, to simplify folder structure and to allow me to easily transfer this ...
1
vote
0answers
89 views

Use emulateapj/aastex with siunitx

I am trying to use siunitx in an emulateapj document, however it reports a conflict of command: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! LaTeX error: "xparse/command-already-defined" ! ! ...
1
vote
0answers
85 views

Control stargazer table output in combination with mathpazo and siunitx

I like the idea to control all my numeric outputs with the smallest number possible of packages. I use mathpazo to control my fonts and siunitx to control formatting. Yet when I knit a LaTeX table ...
1
vote
0answers
65 views

Knitr and numbers

I return to a question, which is few months old and then maybe not yet the best practice around. I use the siunitx package in my documents along with knitr to compile my R chunks. As far as I ...
1
vote
0answers
60 views

Problem with uline and table-format in siunitx table

I asked a previous question about underlining data in a table when using the siunitx S column definition (see Use of underline and siunitx in a table). The advice given was perfect until I added ...
1
vote
0answers
66 views

uncover cells in siunitx table beamer

I wish to show a calculation and update a table to help keep track of things. I use siunitx and booktabs in my beamer presentation. I want to have the numbers in the table aligned on the decimal ...
0
votes
0answers
37 views

Prefix with no unit with siunitx

How can I typeset a number with a prefix but without a unit with siunitx? The following code \SI{1.0}{\mega} gives this error: "Prefix with no unit."
0
votes
0answers
29 views

siunitx and summary statistics below table - separate alignment block possible?

I am using siunitx to format tables as it is very handy with aligning, rounding etc. However, I typically have summary statistics in a separate part below the table. Since these often only contain ...
0
votes
0answers
30 views

xspace's spacing with siunitx macro does not work in math mode

To make life with LaTeX easier and faster (especially faster), I defined some macros in the preamble with the help of xspace. They work as intended in text mode, but fail in math mode. How could I ...
0
votes
0answers
27 views

Access to the current siunitx parameter settings

Is there a way to access the parameter settings of the siunitx package? In particular, I would like to create a command that behaves differently depending on whether parse-numbers=false was set. The ...
0
votes
0answers
44 views

no '=' among input-comparators in `\num{…}`

I want to use = in the argument to the siunitx \num{...} macro. I'd like to be able to write something like: This gives a total of \num{9x14=126} grid cells. Currently, this produces ! siunitx ...
0
votes
0answers
388 views

tlmgr install siunitx problem

Method 1 (failed): tlmgr install siunitx sudo texhash Method 2 (failed): Download zip folder containing .dtx .ins files Unzip into MacSSD/Users/Username/Library/texmf directory Run sudo ...
0
votes
0answers
199 views

typeset large uncertainties using siunitx

I have some entries in a table where the uncertainties are very large compared to the value due to outliers in the data: \documentclass{article} \usepackage{siunitx} \usepackage{booktabs} ...