Minor improvements.
This commit is contained in:
@@ -60,6 +60,11 @@
|
||||
BoldSlantFont = RobotoSlab-Black,
|
||||
RawFeature = {fallback=RobotoSerif},
|
||||
]
|
||||
% \setmainfont{Roboto~Serif}[
|
||||
% Weight = 300,
|
||||
% Width = 85,
|
||||
% RawFeature = {fallback=RobotoSerif},
|
||||
% ]
|
||||
|
||||
% % Sans serif font: Roboto (Medium).
|
||||
\setsansfont{Roboto}[
|
||||
@@ -157,4 +162,31 @@
|
||||
\NewDocumentCommand{\TabKey}{}{\keys{\TabString}}
|
||||
|
||||
% 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:
|
||||
}
|
||||
Reference in New Issue
Block a user