Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
77d36d0
initial updating
teepeemm Mar 24, 2026
4c2a77a
implement rounding
teepeemm Mar 24, 2026
80c4486
implement minimum-integer-digits option
teepeemm Mar 24, 2026
0931c5f
follow retain-unity-mantissa option
teepeemm Mar 24, 2026
ff85af3
implement angle-symbol options
teepeemm Mar 24, 2026
cf14992
implement product-units option
teepeemm Mar 24, 2026
9d8b71b
implement product-units option (again)
teepeemm Mar 24, 2026
8e7ff51
allow separate-uncertainty-units=repeat
teepeemm Mar 24, 2026
04cbac4
allow separate-uncertainty-units=bracket
teepeemm Mar 24, 2026
f7bb5a0
implement table alignment
teepeemm Mar 24, 2026
a3f19c4
allow pre and post text in table numbers
teepeemm Mar 24, 2026
b9450bb
astronomicalunit was misabbreviated
teepeemm Mar 24, 2026
f88a50e
default qualifier-phrase has no spaces
teepeemm Mar 24, 2026
9eb82ae
attempt to implement table alignments
teepeemm Mar 24, 2026
7d8fb58
pure imag E # should have parens
teepeemm Mar 24, 2026
2dffedc
fix is_explicit_zero bug
teepeemm Mar 25, 2026
7060b5f
ensure scientific notation on simple numbers
teepeemm Mar 25, 2026
17eb909
better rounding output
teepeemm Mar 30, 2026
123cd1f
follow group-four-digits
teepeemm Apr 3, 2026
0d9f763
separate siunitx v2 specific tests
teepeemm Apr 3, 2026
d49829b
bring in the new si tests
teepeemm Apr 3, 2026
7916de3
restrict siV2 tests
teepeemm Apr 3, 2026
fd2cc16
enable si version checking
teepeemm Apr 3, 2026
b2788c7
test siunitx preamble-only options
teepeemm Apr 3, 2026
52839ce
test siunitx v3 options
teepeemm Apr 3, 2026
6afbc9f
fix syntax error
teepeemm Apr 3, 2026
577ce49
updated MANIFEST
teepeemm Apr 3, 2026
2348b88
add deprecated units
teepeemm Apr 3, 2026
8f73bf5
take tabular out of table
teepeemm Apr 3, 2026
384cc8f
remove longtable
teepeemm Apr 3, 2026
5e202fa
disable siV3 test
teepeemm Apr 3, 2026
542e046
disabled wrong siV3
teepeemm Apr 3, 2026
868b868
move newcommands into group
teepeemm Apr 3, 2026
e644914
fixed siV3
teepeemm Apr 3, 2026
cb2f810
removed failing si test
teepeemm Apr 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,15 @@ t/complex/physics.xml
t/complex/si.pdf
t/complex/si.tex
t/complex/si.xml
t/complex/si_preamble.pdf
t/complex/si_preamble.tex
t/complex/si_preamble.xml
t/complex/siV2.pdf
t/complex/siV2.tex
t/complex/siV2.xml
t/complex/siV3.pdf
t/complex/siV3.tex
t/complex/siV3.xml
t/complex/sunset.jpg
t/complex/tcilatex_minimal.pdf
t/complex/tcilatex_minimal.tex
Expand Down
2,501 changes: 1,997 additions & 504 deletions lib/LaTeXML/Package/siunitx.sty.ltxml

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion lib/LaTeXML/Util/Test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ sub latexml_tests {
if ($options{texlive_min} && (texlive_version() < $options{texlive_min})) {
plan skip_all => "Requirement minimal texlive $options{texlive_min} not met.";
return done_testing(); }
if ($options{texlive_max} && ($options{texlive_max} < texlive_version() )) {
plan skip_all => "Requirement maximal texlive $options{texlive_max} not met.";
return done_testing(); }
if (!opendir($DIR, $directory)) {
# Can't read directory? Fail (assumed single) test.
return do_fail($directory, "Couldn't read directory $directory:$!"); }
Expand Down Expand Up @@ -86,6 +89,7 @@ sub check_requirements {
next unless $reqmts;
my @required_packages = ();
my $texlive_min = 0;
my $texlive_max = 0;
my $required_env;
if (!(ref $reqmts)) {
@required_packages = ($reqmts); }
Expand All @@ -94,7 +98,8 @@ sub check_requirements {
elsif (ref $reqmts eq 'HASH') {
@required_packages = (ref $$reqmts{packages} eq 'ARRAY' ? @{ $$reqmts{packages} } : $$reqmts{packages});
$required_env = $$reqmts{env};
$texlive_min = $$reqmts{texlive_min} || 0; }
$texlive_min = $$reqmts{texlive_min} || 0;
$texlive_max = $$reqmts{texlive_max} || 0; }
foreach my $reqmt (@required_packages) {
if (pathname_kpsewhich($reqmt) || pathname_find($reqmt)) { }
else {
Expand All @@ -108,6 +113,11 @@ sub check_requirements {
diag("Skip: $message");
skip($message, $ntests);
return 0; }
if ($texlive_max && ($texlive_max < texlive_version() )) {
my $message = "Maximal texlive $texlive_max requirement not met for $test";
diag("Skip: $message");
skip($message, $ntests);
return 0; }
elsif ($required_env && !$ENV{$required_env}) {
my $message = "$test is only checked in continuous integration. (use make test CI=true)";
diag("Skip: $message");
Expand Down
17 changes: 16 additions & 1 deletion t/80_complex.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,19 @@ latexml_tests("t/complex",
texlive_min => 2021},
si => {
env=>'CI', # only runs in continuous integration
packages => 'siunitx.sty', texlive_min => 2015 } });
packages => 'siunitx.sty', texlive_min => 2022 }, # should be 2015
si_preamble => {
env=>'CI', # only runs in continuous integration
packages => 'siunitx.sty', texlive_min => 2015 },
siV2 => {
env=>'CI', # only runs in continuous integration
packages => 'siunitx.sty', texlive_min => 2015, texlive_max => 2020 },
# siV3 is triggered if \fmtversion >= 2021,
# lib/LaTeXML/Engine/latex_base.pool.ltxml sets \fmtversion to 2018/12/01
# if `make formats` is called, blib/lib/LaTeXML/Engine/latex_dump.pool.ltxml
# overrides it to the actual value
# GitHub actions call `make formats` only for 2023 onward
# this also means `make test CI=true` will fail without `make formats`
siV3 => {
env=>'CI', # only runs in continuous integration
packages => 'siunitx.sty', texlive_min => 2023 } });
Binary file modified t/complex/si.pdf
Binary file not shown.
Loading
Loading