Skip to content

Commit

Permalink
Remove deprecated siunitx v3 detection command
Browse files Browse the repository at this point in the history
Was removed in major release 3:

https://github.com/josephwright/siunitx/blob/main/CHANGELOG.md#v300

The package gave an automated deprecation warning and suggested
a fix, which was simply adopted here:

Package siunitx Info: Option "detect-all" has been deprecated in this
release.
(siunitx)
(siunitx)             Use "mode = match, propagate-math-font = true,
(siunitx)             reset-math-version = false, reset-text-family =
false,
(siunitx)             reset-text-series = false, text-family-to-math =
true,
(siunitx)             text-series-to-math = true" as a replacement.

Fixes #8
  • Loading branch information
alexpovel committed Oct 11, 2021
1 parent 190bc89 commit e83902a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docker/tex/acp.cls
Original file line number Diff line number Diff line change
Expand Up @@ -2549,7 +2549,19 @@

\RequirePackage{siunitx}% Typesetting physical units correctly
\sisetup{%
detect-all,% Detect surrounding font context, like weight, italics etc.
% For siunitx v3, the following block replaces what used to be
% `detect-all` (removed in that release, see
% https://github.com/josephwright/siunitx/blob/main/CHANGELOG.md#v300 ).
% It allows the `siunitx` output to match surrounding text/math (italics/bold/...,
% roman/sans/... etc. as much as possible)
mode=match,
propagate-math-font=true,
reset-math-version=false,
reset-text-family=false,
reset-text-series=false,
reset-text-shape=false,% Not part of official fix, but still added (see https://collaborating.tuhh.de/alex/latex-git-cookbook/-/issues/8)
text-family-to-math=true,
text-series-to-math=true,
%
% Requires siunitx v3+, see also https://tex.stackexchange.com/a/468031/120853,
% https://github.com/josephwright/siunitx/issues/532 :
Expand Down

0 comments on commit e83902a

Please sign in to comment.