- Make all packages Expl3.
- Replace ifthen dependency with wrappers for Latex3 conditionals. - Debug CrossRef and WrapBoxout.
This commit is contained in:
20
packages/Branch.sty
Normal file
20
packages/Branch.sty
Normal 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}
|
||||
}
|
||||
Reference in New Issue
Block a user