Minor changes.

This commit is contained in:
2025-10-08 16:17:38 -05:00
parent f9f3684283
commit 021e41126b
2 changed files with 34 additions and 19 deletions

View File

@@ -53,15 +53,16 @@
]
% Emoji font: Noto Emoji
\newfontfamily{\emfamily}{NotoEmoji}[
\newfontfamily{\emojifamily}{NotoEmoji}[
Path = {\fontpath/},
Extension = .ttf,
UprightFont = NotoEmoji/NotoEmoji-Regular,
BoldFont = NotoEmoji/NotoEmoji-Bold,
ItalicFont = NotoEmoji/NotoEmoji-Light,
BoldItalicFont = NotoEmoji/NotoEmoji-SemiBold,
]
\newfontfamily{\mtfamily}{NotoSerif}[
\newfontfamily{\mathfamily}{NotoSerif}[
Path = {\fontpath/NotoSerif/},
Extension = .ttf,
UprightFont = *-Regular,
@@ -71,7 +72,7 @@
]
% Symbol font: Noto Sans Symbols 2
\newfontfamily{\symfamily}{NotoSansSymbols2}[
\newfontfamily{\symbfamily}{NotoSansSymbols2}[
Path = {\fontpath/},
Extension = .ttf,
UprightFont = *-Regular,
@@ -87,9 +88,11 @@
\NewDocumentCommand{\mono}{m}{\texttt{#1}}
\NewDocumentCommand{\slab}{m}{{\sbfamily{}#1}}
\NewDocumentCommand{\code}{m}{\mono{\small{}#1}}
\NewDocumentCommand{\emoji}{m}{{\emfamily{}#1}}
\NewDocumentCommand{\maths}{m}{{\mtfamily{}#1}}
\NewDocumentCommand{\symb}{m}{{\symfamily{}#1}}
\NewDocumentCommand{\emoji}{m}{{\emojifamily{}#1}}
\NewDocumentCommand{\maths}{m}{{\mathfamily{}#1}}
\NewDocumentCommand{\symb}{m}{{\symbfamily{}#1}}
%------------------------------- Symbol Commands -------------------------------
% Line-breaking zero-width space.
\NewDocumentCommand{\zws}{}{\hspace{0pt}}
@@ -97,26 +100,37 @@
\NewDocumentCommand{\bdot}{}{.\zws}
% Text-mode angle bracket ornaments.
\NewDocumentCommand{\ab}{O{}}{{\symfamily ❬}#1{\symfamily ❭}}
% \NewDocumentCommand{\abl}{}{{\symfamily ❬}}
% \NewDocumentCommand{\abr}{}{{\symfamily ❭}}
\NewDocumentCommand{\ab}{s O{}}{{\symbfamily ❬}#1{\symbfamily ❭}}
\NewDocumentCommand{\checkmark}{s O{PrimeGreen} O{PrimeBrightGreen}}{
\bool_if:nTF {#1} {
\ColorText[#2][#3][\symfamily]{✓}
\ColorText[#2][#3][\symbfamily]{✓}
} {
{\symfamily ✓}
{\symbfamily ✓}
}
}
\NewDocumentCommand{\xmark}{s O{PrimeRed} O{PrimeBrightRed}}{
\bool_if:nTF {#1} {
\ColorText[#2][#3][\symfamily]{✗}
\ColorText[#2][#3][\symbfamily]{✗}
} {
{\symfamily ✗}
{\symbfamily ✗}
}
}
% MenuKeys configuration.
\NewDocumentCommand{\checkbox}{}{
{\symbfamily ☑}
}
\NewDocumentCommand{\xbox}{}{
{\symbfamily ☒}
}
\NewDocumentCommand{\emptybox}{}{
{\symbfamily ☐}
}
%--------------------------- MenuKeys Configuration ----------------------------
\newmenucolortheme{autoModeColor}{named}{pageColor}{textColor}{textColor}[pageColor][textColor][textColor]
\changemenucolortheme{hyphenatepaths}{autoModeColor}
@@ -151,4 +165,4 @@
\NewDocumentCommand{\TabKey}{}{\keys{\TabString}}
% Suppress warning about obsolete font encodings because we're using Unicode.
\@tw@hyphenatepaths@warnigfalse
\@tw@hyphenatepaths@warnigfalse %[sic]