Questions tagged [siunitx]

{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.

Filter by
Sorted by
Tagged with
1
vote
0answers
20 views

Centering table cells about decimal point with bold and asterisk, for dynamically generated tables

I am using PdfLaTeX (MiKTeX) called via R-Brew to dynamically populate and generate a LaTeX table. Use of R tables does not support all of the statistics, and is not flexible enough for the tables I ...
0
votes
3answers
77 views

what is wrong in this reaction?

\documentclass{article} \usepackage[version=4]{mhchem} \usepackage{siunitx} \usepackage{isotope} \begin{document} \section{Decay mode of \ce{Be isotope}} $\ce{^4_2Be -> [5x10^3}{ns}][{1.37 MeV}] ^...
3
votes
2answers
66 views

Using IEEEtran with siunitx's \num{…}

Using the MWE \documentclass[conference]{IEEEtran} \usepackage{siunitx} \begin{document} \begin{abstract} foo \num{12.34} 12.34 bar. \end{abstract} \end{document} The First 12.34 does not ...
11
votes
2answers
482 views

Is there a package that allows to write correctly times in hours, minutes and seconds in mathematical mode?

I'm looking for a package, or even a macro that allows me to simply write duration calculations for young students. Like for example this (Lebossé-Hemery 1957 classe de sixième): I prefer this ...
6
votes
1answer
82 views

siunitx round-half=even erratic behavior

I'm trying to create random exercises sheets (including answer) where students could practice rounding to the nearest integer. These exercises round the exact half to the nearest even number. E.g. 2....
3
votes
1answer
46 views

How to print a result in bold font in Times New Roman?

Once mathptmx for Times New Roman is loaded, siunitx can't print results in bold anymore. How can this be solved? \documentclass{article} \usepackage{mathptmx}% required (Times New Roman) \usepackage{...
1
vote
2answers
30 views

How to combine 2 column in a table (using \thead and \multicolumn)?

I want to add in 95% Confidence Interval in here as shown below. However, I am using \thead and can i use multicolumn together? & & & & & \multicolumn{2}{>{\centering\...
2
votes
3answers
60 views

Table alignment issue

I am not sure why my second row of sentences go to my first row. I need to create a table (without colour) as below: My MWE: \documentclass[12pt,oneside]{book} % Remove draft option to show ...
5
votes
2answers
53 views

Ohm symbol not showing in math mode using custom beamer styling

So, I'm using a custom beamer styling required by my employer, and while trying to typeset some problem examples with the "ohm" symbol, I've noticed it doesn't always work. At first, I noticed it ...
0
votes
1answer
37 views

dot between units with SIunitx

I can not understand when SIunitx places a point between units. in the examples below, why is there no point between \ kilogram and \ meter ^ 2 whereas there is one between \ newton and \ meter? How ...
4
votes
0answers
30 views

Context aware kerning in siunitx with per-mode?

Assume I want to type in the units for irradiance (radiant flux (power) received by a surface per unit area). I can do this as follows \si[per-mode=symbol]{\watt\per\m\squared} However, the kerning ...
3
votes
1answer
28 views

siunitx redefines macros in pdf bookmarks

I want to use the macro \as for abbreviations in my document. However, siunitx interferes with its use in pdf bookmarks. The following MWE produces a document with a section named "foo" in the ...
6
votes
5answers
379 views

Euro sign in table with siunitx

I'm trying to align some money in a table using the S column type of the siunitx package, but the € symbol keeps running wild (inconsistent alignment). Using the eurosym package helps with the ...
1
vote
0answers
53 views

SIunitx doesn't show numbers with math font

I've installed the siunitx package, but the numbers don't appear with the math font I was using the siunits package before and this didn't happen. But that doesn't have all the features that I need.
2
votes
1answer
32 views

Siunitx table with significance stars not working

I have a table with significance stars built via the command ^{***} (i.e. math mode). I recently found out that \sym{***} could also be used. I don't know which is better, would be nice if someone can ...
2
votes
0answers
30 views

How can i use subscripts and units with fractional powers in siunitx?

I have the following simple document \documentclass[a4paper,10pt]{article} \usepackage{siunitx} \begin{document} \si{\metre_{1}\tothe{1/2}} \bigskip % \si{\metre_{1}\tothe{-\frac{1}{2}}} \...
1
vote
1answer
26 views

Conflict between siunitx and hyperxmp?

When I typset this MWE: % arara: lualatex: {synctex: yes, shell: yes} \documentclass[% fontsize=10pt, % twoside,% DIV=calc, % a4paper]{...
1
vote
1answer
69 views

Table Alignment (Making the word from 1 row into 2 row)

Would like to adjust the table in better looking, tried both methods, not working. Make the first column letter into 2 row. Make all the content to left-hand side All the column around same length \...
3
votes
1answer
77 views

How to declare locale specific unit with siunitx?

I am writing a multi-language document in latex. I am using siunitx package in conjonction with babel to handle every numerical and units related numeric values. My goal was to declare a new unit (...
1
vote
1answer
57 views

Implement two-digit-rounding (with uncertainty) in LaTeX using siunitx

I would like to implement the following recommendation for rounding values in tables: in general two-digit-uncertainty rounding should be used in tables: the uncertainty is always rounded to two ...
0
votes
1answer
49 views

correct way of writing the units on a graph [closed]

What font should I use in Matlab for having the same one like in LATEX? What is the right way to have the units on a graph? use () or [] for unit of measurement? a or b? a. xlabel('$C (fF)$', '...
0
votes
1answer
69 views

Matlab plot Latex style

I would like to have the units on the axis from a Matlab plot with the correct form like SIunitx in LATEX. Is this possible? This is the line that I would like to have different: no u, but μ. ...
1
vote
2answers
63 views

Center columns with siunitx

I have the following table: \begin{table}[h] \centering \caption{Transfer Entropy Results} \label{tab1:entropy} \begin{threeparttable} \begin{tabularx}{\textwidth}{CC} \toprule Causal test &...
3
votes
1answer
88 views

How to display numbers like 10,000.42 using siunitx?

I would like to do something like \SI{10,000.42}{\m} using siunitx. But using two potential decimal markers always results in the following error message: Package siunitx Error: Duplicate decimal ...
2
votes
1answer
51 views

decimal point alignment and \pgfmathprintnumber

In the table below, column a is aligned by decimal point. Is it possible to align column b that way too? \documentclass{standalone} \usepackage{pgfplotstable} \usepackage{siunitx} \begin{document} \...
3
votes
2answers
65 views

Problem with Alignment of Tabular Data Using siunitx

I am trying to align numerical data in different rows along the decimal point. I have been trying to use column type S of siunitx. I have searched and tried different things but no success yet. Here ...
1
vote
1answer
35 views

math syntax doesn't work when using siunitx syntax for alignment on decimal point in tables

I have the following problem: Math syntax doesn't work for the labels in the second row in my table for h=1, h=3, h=6. How can i fix it? Here is my code for it. Thank you
2
votes
1answer
45 views

Table does not flush right with siunitx (table format), esttab, asterisks and integers

I use Stata's esttab command to create various tables with t-test results. In Latex, I use siunitx for a proper layout of the table. However, I am unable to code the table as such does it flush right....
5
votes
3answers
82 views

Reduce column width of table while also aligning values at decimal point

I have a table that is currently too large for my page which is why I want to reduce the column width. At the same time I also want to align the values at the decimal point. I have been trying with ...
3
votes
0answers
44 views

Space after exponent for `\si{}` command, using `siunitx` package

When I use e.g. \si{cm^3/s} there is a space between the '3' and the '/'. I can reduce it with \! but is there a more 'proper' way of using the \si{} command to reduce this space?
3
votes
1answer
59 views

Re-declaring \bit in siunitx

It is possible to re-declare/redefine existing siunitx units in general. However, this seems to fail for the binary units \bit (and \byte) as shown in the MWE below. Only if the declaration is done ...
1
vote
1answer
47 views

siunitx in tabular – align different types of data

I made a table with different types of data in a row. I'd like them to align along the decimal comma – as I thought the S would do. How can I achieve that? \documentclass{article} \usepackage[table]{...
1
vote
1answer
49 views

tabularx vertical alignment on dot

I want to align my tabularx tables on the dot. Let's say I have these two tables: With the following code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage{...
1
vote
1answer
35 views

Induce line break between number and unit in siunitx in cases latex does not do it autmatically

I have a question related to this one: How to line break a siunitx unit. In my case I have paragraphs where even with allow-number-unit-breaks=true no break happens in some cases (see example below). ...
3
votes
1answer
24 views

Incompatibility of packages ucs, CJKutf8, siunitx

I am using pdftex to write a book that mixes mathematics, Chinese and transliterated Arabic. The following setup \documentclass{article} \usepackage{ucs} \usepackage{CJKutf8} \usepackage{siunitx} \...
5
votes
3answers
60 views

SIunitx error when using lighter weight

Using the SIunitx package with montserrat package doesn't produce the desired result: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[defaultfam,light,scale=0....
2
votes
1answer
27 views

Dashed lines and point-aligned numbers in a column?

How can I have these two features at the same time in a table: dashed lines, and numbers aligned on their decimal points? MWE (except it doesn't work): \documentclass[12pt,a4paper]{article} \...
6
votes
3answers
344 views

Automatically convert a number to use the correct SI unit prefix

Say one is talking about numbers 10^6, 10^7, 10^8, 10^9 and so forth one can also write them as 1M, 10M, 100M,1G, with their corresponding SI unit prefixes. Is there a way to convert a number on the ...
1
vote
1answer
78 views

siunitx: enclose all units in brackets

when I use the command \SI{1}{\kilo\gram} I'd like it to output 1 [kg] Is there a setting so that SIUnitx automatically does this for all units in a document?
4
votes
2answers
75 views

Avoid bfseries from bolding \pm in siunitx

I'm using siunitx to successfully align my column content along the \pm: \begin{table}[b] \centering \robustify\bfseries \begin{tabular}{ c S[detect-weight, table-...
2
votes
1answer
28 views

siunitx nested “per” symbols

I am attempting to type the following using siunitx: K/(W/m) which is how this quantity is commonly written in my field. I was hoping \si{\kelvin\per\watt\per\meter} would do it, but that doesn't ...
5
votes
2answers
285 views

Undocumented incompatibility between changes and siunitx? [duplicate]

I am currently using the changes package to track some modifications in a document, along with the siunitx package for number formatting. Whenever I try to have a \SI{}{} call iside a \replaced{}{} ...
7
votes
3answers
369 views

siunitx error: Invalid numerical input

I use siunitx package to display intervals in tabular, according to this answer. But I use parenthesis instead of square bracket. This is a MWE: %!TeX program = xelatex %!TeX encoding = UTF-8 \...
3
votes
1answer
65 views

Siunitx table, with a number in parentheses (single row)

I want a table column to be aligned using the thousands comma. But when I try to put a number in parentheses I get an error. I have read previous answers which were not suitable for my situation, ...
4
votes
1answer
80 views

“Unknown slot number of character” with microtype and siunitx

This MWE produces the following warnings: \documentclass{article} \usepackage{microtype} \usepackage[detect-all]{siunitx} \begin{document} \num{1e-3} \end{document} I receive 5 warnings similar ...
1
vote
1answer
48 views

Underline a number in an siunitx table (in beamer)

I want a table column to be aligned using the thousands comma. But when I try to underline the number it moves and the comma disappears. MWE: [![\documentclass\[t,xcolor=table\]{beamer} \usepackage\[...
1
vote
1answer
22 views

Avoid repeating \num / other command in xticklabels

I have created the following image which I am quite happy with I had to scale down the functions as I kept running into overflow errors. I am mostly happy with the code except for the ...
0
votes
1answer
78 views

How to put a positive sign with thermodynamics module

I want to put a positive sign "+" in front of a positive number with units in thermodynamics module of chemmacros. So I made the following LaTeX cord related to this with tuning siunitx: \usepackage{...
0
votes
0answers
17 views

Line break siunitx product numbers [duplicate]

Pretty much the same question as enter link description here The answer is from 2014 and says an update then would fix this, but I can't find anything related to this. Does anyone know if an update ...
2
votes
1answer
82 views

Recurring decimal within an aligned array

I am having some issues with representing recurring decimals (using \overline{}) within an aligned array I am using to represent a matrix. \documentclass{article} \usepackage{gensymb} \usepackage{...