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

@@ -53,6 +53,7 @@
\NewExpandableDocumentCommand{\DoRomanNumerals}{}{\g_roman_bool} \NewExpandableDocumentCommand{\DoRomanNumerals}{}{\g_roman_bool}
% Option 'numberword': render Part numbers as number words (e.g. One, Two, Three). % Option 'numberword': render Part numbers as number words (e.g. One, Two, Three).
% Only kind of working.
\bool_new:N \g_number_word_bool \bool_new:N \g_number_word_bool
\bool_gset_false:N \g_number_word_bool \bool_gset_false:N \g_number_word_bool

View File

@@ -44,7 +44,13 @@
\fp_const:Nn \c_BigFloat_offset_fp {2.0} \fp_const:Nn \c_BigFloat_offset_fp {2.0}
\ProvideLength{\BigFloatOverhang}[\dim_use:N \c_BigFloat_overhang_dim] \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 \dim_new:N \l_BigFloat_workoverhang_dim
@@ -53,6 +59,8 @@
} }
\keys_define:nn{BigFloat}{ \keys_define:nn{BigFloat}{
figure .code:n = {\str_set:Nn \l_BigFloat_type_str {figure}},
maxoverhang .dim_set:N = \l_BigFloat_maxoverhang_dim, maxoverhang .dim_set:N = \l_BigFloat_maxoverhang_dim,
maxoverhang .initial:n = {1in}, maxoverhang .initial:n = {1in},
@@ -64,6 +72,8 @@
overhang .default:e = {\c_BigFloat_overhang_dim}, overhang .default:e = {\c_BigFloat_overhang_dim},
overhang .initial: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}{ type .choices:nn = {figure,generic,table}{
\str_set:Ne \l_BigFloat_type_str {\l_keys_choice_tl} \str_set:Ne \l_BigFloat_type_str {\l_keys_choice_tl}
}, },

View File

@@ -69,9 +69,11 @@
\NewDocumentCommand{\bdot}{}{.\zws} \NewDocumentCommand{\bdot}{}{.\zws}
% MenuKeys configuration. % MenuKeys configuration.
\newmenucolortheme{autoModeColor}{named}{pageColor}{textColor}{textColor} \newmenucolortheme{autoModeColor}{named}{pageColor}{textColor}{textColor}[pageColor][textColor][textColor]
\changemenucolortheme{hyphenatepaths}{autoModeColor} \changemenucolortheme{hyphenatepaths}{autoModeColor}
\changemenucolortheme{shadowedangularkeys}{autoModeColor}
\changemenucolortheme{angularmenus}{autoModeColor}
\renewmenumacro{\directory}[/]{hyphenatepaths} \renewmenumacro{\directory}[/]{hyphenatepaths}
\renewmenumacro{\keys}[+]{shadowedangularkeys} \renewmenumacro{\keys}[+]{shadowedangularkeys}
@@ -83,3 +85,4 @@
\NewDocumentCommand{\EnterString}{}{Enter\,\return} \NewDocumentCommand{\EnterString}{}{Enter\,\return}
\NewDocumentCommand{\ShiftString}{}{Shift\,\shift} \NewDocumentCommand{\ShiftString}{}{Shift\,\shift}
\NewDocumentCommand{\AltString}{}{Alt\,\altmac} \NewDocumentCommand{\AltString}{}{Alt\,\altmac}
\NewDocumentCommand{\TabString}{}{Tab\,\tab}

View File

@@ -4,7 +4,7 @@
} }
\ProvideLength{\HeaderInsideOffset}[\BigFloatOverhang] \ProvideLength{\HeaderInsideOffset}[\BigFloatOverhang]
\ProvideLength{\HeaderOutsideOffset}[\fp_to_dim:n{\BigFloatOverhang * \BigFloatOffset}] \ProvideLength{\HeaderOutsideOffset}[\fp_to_dim:n{\c_BigFloat_overhang_dim * \c_BigFloat_offset_fp}]
\pagestyle{fancy} \pagestyle{fancy}