Minor improvements.
This commit is contained in:
BIN
fonts/RobotoSerif/RobotoSerif-Italic-Variable.ttf
Normal file
BIN
fonts/RobotoSerif/RobotoSerif-Italic-Variable.ttf
Normal file
Binary file not shown.
BIN
fonts/RobotoSerif/RobotoSerif-Variable.ttf
Normal file
BIN
fonts/RobotoSerif/RobotoSerif-Variable.ttf
Normal file
Binary file not shown.
@@ -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}
|
||||||
|
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
@@ -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:
|
||||||
|
}
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,4 +45,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\NewTblrTableCommand{\hrf}{\hrulefill}
|
||||||
|
|
||||||
\NewTblrColumnType{a}[1][]{X[#1,l,m]}
|
\NewTblrColumnType{a}[1][]{X[#1,l,m]}
|
||||||
Reference in New Issue
Block a user