New answers tagged siunitx
3
votes
siunitx dollar per hour broken going from SI to qty
As Joseph said, the syntax is unsupported for \qty.
documentclass{article}
\usepackage{siunitx}
\sisetup{
mode=text,
per-mode = symbol,
}
\NewDocumentCommand{\price}{O{}mm}{%
\qty[input-digits=...
5
votes
siunitx dollar per hour broken going from SI to qty
In v3, I tightened up the semantics here: the idea of support currencies was not the best plan. As such, you want
\$\qty{5}{\per\hour}
or similar.
2
votes
Why can I not specify the key "guard" only in the \SetTblrInner command using tabularray?
The placement of the guard option is not the problem. siunitx errors if you use >{€\,} on a header column. It seems to work if one adds lots of braces, but this probably fragile and relies on some ...
1
vote
How to remove prepended symbol in entire column from header row using tabularray?
Instead of removing the symbol from the header, I would only add it to the cells where it is needed:
\documentclass{article}
% Unrelated packages
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
% ...
0
votes
Getting siunitx to use text numerals, but only when it isn't in a table
Here is an updated version of Mico's solution that:
Ensures the lining number style of numbers is preserved in math mode
Reflects the deprecation of \SI in favor of \qty
\documentclass{article}
\...
0
votes
Accepted
Using \sisetup with siunitx package for automatic unit formatting
In spirit of siunitx package, your equation should be written as follows:
\documentclass[11pt]{article}
\usepackage{siunitx}
\sisetup{
per-mode = symbol, % Automatically handle units per ...
1
vote
How to make 'siunitx' use \textpm
As Joseph mentions in the comments, this is fixed in the current version of siunitx. Your MWE produces
9
votes
Accepted
How to Include Mathematical Expressions like \sqrt{8} Inside \qty Command with siunitx?
You could disable the parsing of numbers:
\documentclass{article}
\usepackage{siunitx}
\begin{document}
% works
$\sqrt{8}$
% works
$\qty{8}{\meter}$
% does work!
...
3
votes
Accepted
How to import physical data with units directly into latex using datatool and siunitx?
The command \DTLfetch is not expandable. But you can make a variant \DTLfetchsave that stores the result in a (local) control sequence and use that to feed \qty. The idea comes from page 104 of ...
3
votes
siunitx \micro font problem
Declare your main text font, rather than redefining \familydefault. Next use mode=text and an appropriate text-font-command:
\documentclass{article}
\usepackage{unicode-math}
\usepackage{siunitx}
%\...
3
votes
siunitx \micro font problem
Please note that \SI has been deprecated for at least a couple of years by now. Do start to use \qty instead of \SI.
For this answer, I will assume that your document uses the default serif font ...
1
vote
siunitx \micro font problem
Edit:
From your first version of question I conclude, that complete units as well number quantity number should be written with in sans serif fonts as is written other text in your document. My ...
2
votes
Error : siunitx and \Trimspaces (expl3)
You should show your document as that will show where the error is,
The error suggests that you have something equivalent to
\documentclass{article}
\def\TrimSpaces#1{}
\usepackage{pst-calculate}
\...
4
votes
siunitx issue when using angle-mode=arc with negative numbers
The conversion of negative angles to arcs had not been properly addressed. I have updated the code to do that, and will release it as v3.3.21. The changes needed are in a few places, so unless it's ...
Top 50 recent answers are included
Related Tags
siunitx × 1653tables × 458
horizontal-alignment × 96
math-mode × 80
fonts × 78
formatting × 55
units × 53
tabularx × 51
spacing × 34
errors × 34
luatex × 33
unicode-math × 31
booktabs × 30
fontspec × 27
pgfplotstable × 26
pgfplots × 25
xetex × 22
dcolumn × 22
expl3 × 20
bold × 20
beamer × 19
longtable × 19
alignment × 19
tabularray × 19
macros × 18