Skip to content

Commit a5e532e

Browse files
committed
Fix incompatibility problem of siunitx and units package in newer versions only affects tests
1 parent 54461de commit a5e532e

5 files changed

Lines changed: 13 additions & 10 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@
2929

3030
\complexqty{10+2i}{\cm}
3131

32+
\SI{300}{\meter\per\second}
3233

3334
\end{document}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@
2929

3030
\complexqty{10+i2}{\cm}
3131

32+
\SI{600}{\meter\per\second}
33+
3234

3335
\end{document}

testsuite/units-new.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
\documentclass[review,number,sort&compress]{article}
1+
\documentclass[sort&compress]{article}
22

33
\usepackage{units}
44
%\usepackage[colorlinks,urlcolor=black]{hyperref}
5-
\usepackage{siunitx}
5+
%\usepackage{siunitx}
66
\usepackage{cleveref}
77

88
\begin{document}
@@ -13,9 +13,9 @@
1313
\unit[1 \times 10^{-3}]{km}
1414
\end{displaymath}
1515

16-
SI Unit package test
17-
18-
This is the new text \SI{300}{\meter\per\second}
16+
%SI Unit package test
17+
%
18+
%This is the new text \SI{300}{\meter\per\second}
1919

2020
Some test of references in cleveref:
2121
\begin{equation}

testsuite/units-old.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
\documentclass[review,number,sort&compress]{article}
1+
\documentclass[sort&compress]{article}
22

33
\usepackage{units}
44
%\usepackage[colorlinks,urlcolor=black]{hyperref}
5-
\usepackage{siunitx}
5+
%\usepackage{siunitx}
66
\usepackage{cleveref}
77

88
\begin{document}
@@ -13,9 +13,9 @@
1313
\unit[1.1 \times 10^{-3}]{km}
1414
\end{displaymath}
1515

16-
SI Unit package test
16+
%SI Unit package test
1717

18-
This is the old text \SI{600}{\meter\per\second}
18+
%This is the old text \SI{600}{\meter\per\second}
1919

2020

2121

testsuite/verify

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ delequ3 delequ4 "simplefrac --allow-spaces" "master --flatten" "subfile --flatte
3939
"rolla --math-markup=2" mini "complex-maths --math-markup=1" margalit oubmath circonflex mwe-comment "apacite-test --flatten" quoteddollarunderscore units complicated-math move-equation2 lists "figures --graphics-markup=both" alignat "safecmd --append-safecmd=remark" verbatim-v2 verbatim2-is143 embedded-math-array "verbatim-input --flatten" anchordemo 'customdiffcmdtest --add-to-config "CUSTOMDIFCMD=blindtext;mypar;donothing;cmd"' description frac_w_space_comments multicolumn tikz-dependency-test \
4040
"href-in-bibliography --append-safecmd=path" revtex-bibliography biblatex 'txtcmd-with-multiple-arguments --append-textcmd=cmd' \
4141
"no-del --no-del" raisebox protect mwe \
42-
) # siunitx
42+
siunitx )
4343
# set testroots=( protect mw )
4444
# Note that siunitx test will only run on newer (>~2020) versions of siunitx)
4545
#set testroots= ( test subscript )

0 commit comments

Comments
 (0)