Minor improvements.

This commit is contained in:
2025-10-22 16:55:49 -05:00
parent afcc7b08d0
commit 31797dd3eb
7 changed files with 57 additions and 12 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -133,6 +133,8 @@
\colorlet{linkColor}{PrimeLightBlue} \colorlet{linkColor}{PrimeLightBlue}
\colorlet{grayTextColor}{PrimeGray}
% Banded table rows. % Banded table rows.
\colorlet{bandedRowColor}{PrimeGray} \colorlet{bandedRowColor}{PrimeGray}
@@ -173,6 +175,8 @@
\colorlet{linkColor}{PrimeBlue} \colorlet{linkColor}{PrimeBlue}
\colorlet{grayTextColor}{PrimeLightGray}
% Banded table rows. % Banded table rows.
\colorlet{bandedRowColor}{PrimePaleGray} \colorlet{bandedRowColor}{PrimePaleGray}

View File

@@ -362,24 +362,31 @@
\end{BigFloat} \end{BigFloat}
\group_end: } \group_end: }
\tl_new:N \l_CodeFloat_text_tl
\NewDocumentEnvironment{CodeFloat}{ \NewDocumentEnvironment{CodeFloat}{
% #1: Label. % #1: Star - Show whitespace if present (not working).
s
% #2: Additional Tabularray inner specifications.
O{}
% #3: Label.
>{\TrimSpaces}m >{\TrimSpaces}m
% #2: Caption. % #4: Caption.
+m +m
% #3: Number of indentations. % #5: Number of indentations.
m O{1}
% #4: Body text. % #6: Body text.
+b +b
}{ }{
\begin{figure} \begin{figure}
\begin{MyCaption}{fig:#1}{#2} \begin{MyCaption}{fig:#3}{#4}
\Centering \Centering
\begin{tblrCode}{ \begin{tblrCode}{
colspec = {*{#3}{l}}, colspec = {*{#5}{l}},
hline{1,Z} = {0.6pt}, hline{1,Z} = {0.6pt},
#2
} }
#4 #6
\end{tblrCode} \end{tblrCode}
\end{MyCaption} \end{MyCaption}
\end{figure} \end{figure}

View File

@@ -60,6 +60,11 @@
BoldSlantFont = RobotoSlab-Black, BoldSlantFont = RobotoSlab-Black,
RawFeature = {fallback=RobotoSerif}, RawFeature = {fallback=RobotoSerif},
] ]
% \setmainfont{Roboto~Serif}[
% Weight = 300,
% Width = 85,
% RawFeature = {fallback=RobotoSerif},
% ]
% % Sans serif font: Roboto (Medium). % % Sans serif font: Roboto (Medium).
\setsansfont{Roboto}[ \setsansfont{Roboto}[
@@ -158,3 +163,30 @@
% Suppress warning about obsolete font encodings because we're using Unicode. % Suppress warning about obsolete font encodings because we're using Unicode.
\@tw@hyphenatepaths@warnigfalse % [sic] \@tw@hyphenatepaths@warnigfalse % [sic]
%------------------------- Custom Directory Formatting -------------------------
% The MenuKeys approach is too complicated for directory formatting. This is a
% simpler method.
\tl_new:N \l_@@_dir_tl
\keys_define:nn {Dir} {
font .tl_set:N = \l_Dir_font_tl,
font .initial:n = {\sffamily},
separator .tl_set:N = \l_Dir_separator_tl,
separator .initial:n = {\thinspace⏵\hspace{0.17em}},
}
\NewDocumentCommand{\Dir}{O{} m}{
\group_begin:
\keys_set:nn {Dir} {#1}
\str_set:Nn \l_@@_dir_tl {#2}
\tl_replace_all:Nnn \l_@@_dir_tl {/} {\l_Dir_separator_tl}
\tl_use:N \l_Dir_font_tl
\tl_use:N \l_@@_dir_tl
\group_end:
}

View File

@@ -57,11 +57,11 @@
} }
% Put a footnote in a margin paragraph. % Put a footnote in a margin paragraph.
\NewDocumentCommand{\MarginNote}{O{} +m}{ \NewDocumentCommand{\MarginNote}{O{} >{\TrimSpaces}+m}{
\footnotemark \footnotemark
\marginalia[#1]{ \marginalia[#1]{
\MarginHyperSetup \MarginHyperSetup
\footnotemark[\value{footnote}]#2 \footnotemark[\value{footnote}]~#2
} }
} }

View File

@@ -45,4 +45,6 @@
} }
} }
\NewTblrTableCommand{\hrf}{\hrulefill}
\NewTblrColumnType{a}[1][]{X[#1,l,m]} \NewTblrColumnType{a}[1][]{X[#1,l,m]}