- Make all packages Expl3.

- Replace ifthen dependency with wrappers for Latex3 conditionals.
- Debug CrossRef and WrapBoxout.
This commit is contained in:
2025-09-18 16:51:12 -05:00
parent 72ab67463b
commit e2a0277635
21 changed files with 278 additions and 183 deletions

20
packages/Branch.sty Normal file
View File

@@ -0,0 +1,20 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesExplPackage{PrimeTeX/packages/Branch}{2025-09-18}{1.0}{
LaTeX2e-syntax wrappers for LaTeX3 branch commands.
}
\NewDocumentCommand{\If}{m +m +O{}}{
\bool_if:nTF {#1} {#2} {#3}
}
\NewDocumentCommand{\Compare}{o m o}{
\bool_if:nTF {\tl_if_novalue_p:n {#1} || \tl_if_novalue_p:n {#3}} {
\dim_compare_p:n {#2}
} {
\dim_compare_p:nNn {#1} #2 {#3}
}
}
\NewDocumentCommand{\Switch}{m +m +O{} +O{}}{
\int_case:nnTF {#1} {#2} {#3} {#4}
}