Lots of stuff.
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
Font definitions.
|
||||
}
|
||||
|
||||
% Loading math fonts takes a long time, so skip it in draft mode.
|
||||
\bool_if:NF \g_draft_bool {
|
||||
\usepackage{notomath}
|
||||
}
|
||||
|
||||
\NewDocumentCommand{\fontpath}{}{PrimeTeX/fonts}
|
||||
|
||||
% Main font: Roboto Serif (Light).
|
||||
@@ -29,9 +34,9 @@
|
||||
\setmonofont{RobotoMono}[
|
||||
Path = {\fontpath/RobotoMono/},
|
||||
Extension = .ttf,
|
||||
UprightFont = *-Regular,
|
||||
UprightFont = *-Medium,
|
||||
BoldFont = *-Bold,
|
||||
ItalicFont = *-Italic,
|
||||
ItalicFont = *-MediumItalic,
|
||||
BoldItalicFont = *-BoldItalic,
|
||||
]
|
||||
|
||||
@@ -56,6 +61,11 @@
|
||||
ItalicFont = NotoEmoji/NotoEmoji-Light,
|
||||
]
|
||||
|
||||
% Box drawing font: Noto Sans Symbols 2
|
||||
\newfontfamily{\bxfamily}{\fontpath/NotoSansSymbols2-regular.ttf}
|
||||
|
||||
\setmathrm{RobotoSerif}
|
||||
|
||||
\NewDocumentCommand{\serif}{m}{\textrm{#1}}
|
||||
\NewDocumentCommand{\sans}{m}{\textsf{#1}}
|
||||
\NewDocumentCommand{\mono}{m}{\texttt{#1}}
|
||||
@@ -72,11 +82,20 @@
|
||||
\newmenucolortheme{autoModeColor}{named}{pageColor}{textColor}{textColor}[pageColor][textColor][textColor]
|
||||
|
||||
\changemenucolortheme{hyphenatepaths}{autoModeColor}
|
||||
\changemenucolortheme{shadowedangularkeys}{autoModeColor}
|
||||
\changemenucolortheme{shadowedroundedkeys}{autoModeColor}
|
||||
\changemenucolortheme{angularmenus}{autoModeColor}
|
||||
|
||||
\cs_new:Nn \__MenuKeys_path_style: {
|
||||
\sffamily\color{\usemenucolor{txt}}\CurrentMenuElement
|
||||
}
|
||||
|
||||
\changemenuelement*{hyphenatepaths}{first}{\__MenuKeys_path_style:}
|
||||
\changemenuelement*{hyphenatepaths}{middle}{\__MenuKeys_path_style:}
|
||||
\changemenuelement*{hyphenatepaths}{last}{\__MenuKeys_path_style:}
|
||||
\changemenuelement*{hyphenatepaths}{single}{\__MenuKeys_path_style:}
|
||||
|
||||
\renewmenumacro{\directory}[/]{hyphenatepaths}
|
||||
\renewmenumacro{\keys}[+]{shadowedangularkeys}
|
||||
\renewmenumacro{\keys}[+]{shadowedroundedkeys}
|
||||
\renewmenumacro{\menu}[>]{angularmenus}
|
||||
|
||||
\RenewDocumentCommand{\ctrlname}{}{$\wedge$}
|
||||
@@ -85,4 +104,7 @@
|
||||
\NewDocumentCommand{\EnterString}{}{Enter\,\return}
|
||||
\NewDocumentCommand{\ShiftString}{}{Shift\,\shift}
|
||||
\NewDocumentCommand{\AltString}{}{Alt\,\altmac}
|
||||
\NewDocumentCommand{\TabString}{}{Tab\,\tab}
|
||||
\NewDocumentCommand{\TabString}{}{Tab\,\tab}
|
||||
|
||||
% Suppress warning about obsolete font encodings because we're using Unicode.
|
||||
\@tw@hyphenatepaths@warnigfalse
|
||||
Reference in New Issue
Block a user