- Replace ifthen dependency with wrappers for Latex3 conditionals. - Debug CrossRef and WrapBoxout.
20 lines
474 B
TeX
20 lines
474 B
TeX
\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}
|
|
} |