{siunitx} is a package that provides consistent typesetting of physical quantities, allowing application of various typographic conventions with the same input syntax. This package should be used instead of the largely obsolete {siunits} package.
2
votes
1answer
172 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
239 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
197 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
155 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
169 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.:
...
4
votes
1answer
495 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
186 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
242 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
132 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
147 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
215 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?
6
votes
1answer
574 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}
12
votes
1answer
325 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...
4
votes
1answer
219 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
515 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
383 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 ...
8
votes
2answers
394 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}
...
8
votes
2answers
458 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
166 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 ...
7
votes
2answers
3k 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 ...
8
votes
2answers
395 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
443 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 ...
12
votes
2answers
1k 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 ...
5
votes
1answer
274 views
Is there an siunitx number formatting option equivalent to pgfplots's “fixed relative”?
I need to typeset a table with units, so I'd like to use siunitx for that. However, I don't want scientific notation, but a given number of figures. pgfplots has the fixed relative option for that ...
5
votes
3answers
362 views
siunitx: Alignment Problems with numbers in parenthesis
The example given below gives me a strange offset in 4th decimal place in the parenthesis. Interestingly, this problem arose only after I updated my Miktex 2.8 to Miktex 2.9. I don't know whats ...
4
votes
2answers
439 views
siunitx rounding in table with parentheses
I'm trying to create a standard regression table with standard errors in parentheses below the coefficients, while using siunitx to align the numbers on the decimal point, and to round the numbers.
...
4
votes
2answers
275 views
Siunitx: how to deal with invalid numerical input '-'?
Thanks to you all, I found siunitx for decimal alignment. However, some of the columns in my correlation matrix don't have any numbers and have "-" instead. siunitx gives me an error about invalid ...
2
votes
1answer
436 views
siunitx: specifying custom command as input-symbol
This is a follow up from siunitx uses math mode for symbols - workaround needed when using different fonts for math and text.
The problem has been solved thanks to David, however there is a problem ...
3
votes
1answer
217 views
\SIrange[tophrase=dash] fails to render an en-dash
When using \SIrange[tophrase=dash] to specify a range of numbers with units, the range phrase is literally specified as dash.
The following MWE yields 10 mdash20 m as an output.
MWE:
...
4
votes
1answer
609 views
siunitx uses math mode for symbols - workaround needed when using different fonts for math and text
This is a follow up question from Using old style fonts of palatino (mathpazo) in math mode. The original problem has been solved using siunitx instead of dcolumn. However, the problem is that I am ...
4
votes
3answers
680 views
Using oldstyle figures of palatino (mathpazo) in math mode
I am using \usepackage[osf]{mathpazo} for oldstyle figures and the dcolumn package to align the contents of tables at their decimal point. The problem is that dcolumn automatically sets the aligned ...
11
votes
2answers
199 views
Adjust the exponent to switch between notations using siunitx
I have a big question about the siunitx package and I hope somebody out there can help me.
At first I want to use the automatic number conversion of the package. So I defined:
...
5
votes
1answer
427 views
Adjusting S column in siunitx
I am a beginner in LaTeX, trying to use it for an industrial test report. I have numerous tables in my document, and I have recently discovered the capabilities of siunitx. I would like to use S ...
4
votes
0answers
92 views
siunitx rounding, don't add decimals [duplicate]
Possible Duplicate:
siunitx: how can I avoid adding decimal zeroes?
I have been using siunitx for physics reports and for some time it have annoyed me that given the settings.
round-mode ...
10
votes
1answer
664 views
Having problems aligning in a table with siunitx when using uncertainties in some power of 10
I'm trying to have a table, with an S column (from the siunitx-package) where the numbers are aligned to the \pm signifying uncertainty. Some values have uncertainties like 1.00 x 10⁴ and that seems ...
5
votes
1answer
304 views
Can I change the “range” punctuation in siunitx?
When using siunitx, by default, \SIrange{0}{10}{\celsius} will render 0 °C to 10 °C.
Is there any general way to change the default rendering of ranges to 0--10 °C (i.e., using an en dash instead of ...
6
votes
2answers
411 views
Conflict between tabu and tabularx, when using siunitx
I have many tables set with {tabularx} but for some of the it seems easier to use {tabu} which works. But if I use both packages and gave the last X column in {longtabu} an S and optional argument it ...
5
votes
1answer
353 views
Asymmetrical tolerancing
I am new to LaTeX, tentatively using it to prepare a complicated industrial document (laboratory test report). Thanks to help recently obtained here, I have discovered the magnificent capabilities of ...
3
votes
1answer
108 views
Problem with using soul in paragraph mode and siunitx immediately after
This problem seems somewhat obscure, it is potentially a bug in siunitx or soul (I am aware of issues with the latter). Which one is uncertain and I'm not certain that it is a bug.
What I want to do ...
4
votes
1answer
303 views
Typesetting unit-less numbers and number-less units
I am using the siunitx package to typeset my numbers, but sometimes I find situations in which I have numbers without units (when the units are not nearby) and units without numbers. E.g.:
The bird ...
3
votes
1answer
300 views
How to use the combine document class with the siunitx package
I am trying to squish several journal papers together (using the combine document class) to provide the filling for my thesis sandwich. The papers make use of the siunitx package but causes an error.
...
7
votes
1answer
348 views
siunitx number too big when trying to round
Using the siunitx package
\usepackage{siunitx}
I am trying to put numbers with plenty of decimal digits in a table while rounding them to 3 digits after the decimal point. There is a compilation ...
8
votes
1answer
156 views
siunitx rounding works only if centering
Using the siunitx package
\usepackage{siunitx}
Consider the following two tables:
1.
\begin{tabular}{
S[table-number-alignment=center, table-figures-decimal=3, table-auto-round]
}
3.23958398 ...
7
votes
1answer
902 views
Table typesetting with pgfplotstable
I have two questions concerning pgfplotstable and number formatting with pgf.
Consider the following piece of code:
\documentclass{article}
\usepackage{pgfplotstable}
\usepackage{amsmath}
...
8
votes
2answers
250 views
Chemical purity and siunitx clash when putting a “+” after percentage
I'm using siunitx to describe some chemical purities. The purity I would like to describe is sold by the chemical company as 99.9+ % (not the best way of describing it I'm sure). When I try to ...
6
votes
2answers
292 views
kpfonts, siunitx and math alphabets
This is a follow up question to this rather vague one. The problem is trying to work out where my 16 math alphabets are going. In using egreg's answer to the previous question I have diagnosed ...
4
votes
3answers
670 views
Problem displaying degrees celsius with siunitx and xelatex
I'm trying to discuss a temperature in a document where I'm using xelatex and siunitx.
The temperature was further increased to \SI{200}{\degreeCelsius}.
When using xelatex this causes a ...
2
votes
1answer
301 views
Siunitx: alignment, parentheses and font size
I'm trying to align numbers (that are bolded, between parentheses, etc.) by decimal points in table columns while using the auto-round option of the siunitx package. The following code doesn't work:
...
8
votes
1answer
174 views
Time of the day or time period using the package siunitx
I would like to display the time of the day like 18h30 or 18h30m with siunitx. Is there a proper way to display time and time intervals?
I have read some discussions on the Mailing-List, but it seems ...
2
votes
2answers
308 views
siunitx multicolumn problem
In addition to Right-centered columns in LyX, I have another problem, now with multicolumns. I want to center the number "98" (which spans two columns) above the two other columns. These shall be ...
