Minor tweaks.

This commit is contained in:
2025-09-23 16:52:38 -05:00
parent 696ed1c060
commit f76715b73b
4 changed files with 18 additions and 4 deletions

View File

@@ -44,7 +44,13 @@
\fp_const:Nn \c_BigFloat_offset_fp {2.0}
\ProvideLength{\BigFloatOverhang}[\dim_use:N \c_BigFloat_overhang_dim]
\NewDocumentCommand{\BigFloatOffset}{}{\fp_use:N \c_BigFloat_offset_fp}
\NewDocumentCommand{\BigFloatOffset}{O{}}{
\str_if_empty:NTF #1 {
\fp_use:N \c_BigFloat_offset_fp
} {
\fp_set:Ne \c_BigFloat_offset_fp {#1}
}
}
\dim_new:N \l_BigFloat_workoverhang_dim
@@ -53,6 +59,8 @@
}
\keys_define:nn{BigFloat}{
figure .code:n = {\str_set:Nn \l_BigFloat_type_str {figure}},
maxoverhang .dim_set:N = \l_BigFloat_maxoverhang_dim,
maxoverhang .initial:n = {1in},
@@ -64,6 +72,8 @@
overhang .default:e = {\c_BigFloat_overhang_dim},
overhang .initial:e = {\c_BigFloat_overhang_dim},
table .code:n = {\str_set:Nn \l_BigFloat_type_str {table}},
type .choices:nn = {figure,generic,table}{
\str_set:Ne \l_BigFloat_type_str {\l_keys_choice_tl}
},