diff --git a/packages/Fonts.sty b/packages/Fonts.sty index 7205b32..bef9b86 100644 --- a/packages/Fonts.sty +++ b/packages/Fonts.sty @@ -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 \ No newline at end of file +\@tw@hyphenatepaths@warnigfalse %[sic] \ No newline at end of file diff --git a/packages/Layout.sty b/packages/Layout.sty index 4f30de3..59ef540 100644 --- a/packages/Layout.sty +++ b/packages/Layout.sty @@ -23,12 +23,13 @@ \bool_if:NTF \g_draft_bool{ \geometry{showframe} - \hfuzz = 0.5pt - \vfuzz = 0.0pt + % Suppress basically-invisible overfull infos. + \hfuzz = 0.2em % 1.0pt + \vfuzz = 0.2em % 0.0pt }{ % Suppress small overfull infos. - \hfuzz = 6.0pt - \vfuzz = 8.0pt + \hfuzz = 0.5em % 6.0pt + \vfuzz = 1.0em % 8.0pt } \geometry{