Minor changes.
This commit is contained in:
@@ -53,15 +53,16 @@
|
|||||||
]
|
]
|
||||||
|
|
||||||
% Emoji font: Noto Emoji
|
% Emoji font: Noto Emoji
|
||||||
\newfontfamily{\emfamily}{NotoEmoji}[
|
\newfontfamily{\emojifamily}{NotoEmoji}[
|
||||||
Path = {\fontpath/},
|
Path = {\fontpath/},
|
||||||
Extension = .ttf,
|
Extension = .ttf,
|
||||||
UprightFont = NotoEmoji/NotoEmoji-Regular,
|
UprightFont = NotoEmoji/NotoEmoji-Regular,
|
||||||
BoldFont = NotoEmoji/NotoEmoji-Bold,
|
BoldFont = NotoEmoji/NotoEmoji-Bold,
|
||||||
ItalicFont = NotoEmoji/NotoEmoji-Light,
|
ItalicFont = NotoEmoji/NotoEmoji-Light,
|
||||||
|
BoldItalicFont = NotoEmoji/NotoEmoji-SemiBold,
|
||||||
]
|
]
|
||||||
|
|
||||||
\newfontfamily{\mtfamily}{NotoSerif}[
|
\newfontfamily{\mathfamily}{NotoSerif}[
|
||||||
Path = {\fontpath/NotoSerif/},
|
Path = {\fontpath/NotoSerif/},
|
||||||
Extension = .ttf,
|
Extension = .ttf,
|
||||||
UprightFont = *-Regular,
|
UprightFont = *-Regular,
|
||||||
@@ -71,7 +72,7 @@
|
|||||||
]
|
]
|
||||||
|
|
||||||
% Symbol font: Noto Sans Symbols 2
|
% Symbol font: Noto Sans Symbols 2
|
||||||
\newfontfamily{\symfamily}{NotoSansSymbols2}[
|
\newfontfamily{\symbfamily}{NotoSansSymbols2}[
|
||||||
Path = {\fontpath/},
|
Path = {\fontpath/},
|
||||||
Extension = .ttf,
|
Extension = .ttf,
|
||||||
UprightFont = *-Regular,
|
UprightFont = *-Regular,
|
||||||
@@ -87,9 +88,11 @@
|
|||||||
\NewDocumentCommand{\mono}{m}{\texttt{#1}}
|
\NewDocumentCommand{\mono}{m}{\texttt{#1}}
|
||||||
\NewDocumentCommand{\slab}{m}{{\sbfamily{}#1}}
|
\NewDocumentCommand{\slab}{m}{{\sbfamily{}#1}}
|
||||||
\NewDocumentCommand{\code}{m}{\mono{\small{}#1}}
|
\NewDocumentCommand{\code}{m}{\mono{\small{}#1}}
|
||||||
\NewDocumentCommand{\emoji}{m}{{\emfamily{}#1}}
|
\NewDocumentCommand{\emoji}{m}{{\emojifamily{}#1}}
|
||||||
\NewDocumentCommand{\maths}{m}{{\mtfamily{}#1}}
|
\NewDocumentCommand{\maths}{m}{{\mathfamily{}#1}}
|
||||||
\NewDocumentCommand{\symb}{m}{{\symfamily{}#1}}
|
\NewDocumentCommand{\symb}{m}{{\symbfamily{}#1}}
|
||||||
|
|
||||||
|
%------------------------------- Symbol Commands -------------------------------
|
||||||
|
|
||||||
% Line-breaking zero-width space.
|
% Line-breaking zero-width space.
|
||||||
\NewDocumentCommand{\zws}{}{\hspace{0pt}}
|
\NewDocumentCommand{\zws}{}{\hspace{0pt}}
|
||||||
@@ -97,26 +100,37 @@
|
|||||||
\NewDocumentCommand{\bdot}{}{.\zws}
|
\NewDocumentCommand{\bdot}{}{.\zws}
|
||||||
|
|
||||||
% Text-mode angle bracket ornaments.
|
% Text-mode angle bracket ornaments.
|
||||||
\NewDocumentCommand{\ab}{O{}}{{\symfamily ❬}#1{\symfamily ❭}}
|
\NewDocumentCommand{\ab}{s O{}}{{\symbfamily ❬}#1{\symbfamily ❭}}
|
||||||
% \NewDocumentCommand{\abl}{}{{\symfamily ❬}}
|
|
||||||
% \NewDocumentCommand{\abr}{}{{\symfamily ❭}}
|
|
||||||
|
|
||||||
\NewDocumentCommand{\checkmark}{s O{PrimeGreen} O{PrimeBrightGreen}}{
|
\NewDocumentCommand{\checkmark}{s O{PrimeGreen} O{PrimeBrightGreen}}{
|
||||||
\bool_if:nTF {#1} {
|
\bool_if:nTF {#1} {
|
||||||
\ColorText[#2][#3][\symfamily]{✓}
|
\ColorText[#2][#3][\symbfamily]{✓}
|
||||||
} {
|
} {
|
||||||
{\symfamily ✓}
|
{\symbfamily ✓}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\NewDocumentCommand{\xmark}{s O{PrimeRed} O{PrimeBrightRed}}{
|
\NewDocumentCommand{\xmark}{s O{PrimeRed} O{PrimeBrightRed}}{
|
||||||
\bool_if:nTF {#1} {
|
\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]
|
\newmenucolortheme{autoModeColor}{named}{pageColor}{textColor}{textColor}[pageColor][textColor][textColor]
|
||||||
|
|
||||||
\changemenucolortheme{hyphenatepaths}{autoModeColor}
|
\changemenucolortheme{hyphenatepaths}{autoModeColor}
|
||||||
@@ -151,4 +165,4 @@
|
|||||||
\NewDocumentCommand{\TabKey}{}{\keys{\TabString}}
|
\NewDocumentCommand{\TabKey}{}{\keys{\TabString}}
|
||||||
|
|
||||||
% 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
|
\@tw@hyphenatepaths@warnigfalse %[sic]
|
||||||
@@ -23,12 +23,13 @@
|
|||||||
|
|
||||||
\bool_if:NTF \g_draft_bool{
|
\bool_if:NTF \g_draft_bool{
|
||||||
\geometry{showframe}
|
\geometry{showframe}
|
||||||
\hfuzz = 0.5pt
|
% Suppress basically-invisible overfull infos.
|
||||||
\vfuzz = 0.0pt
|
\hfuzz = 0.2em % 1.0pt
|
||||||
|
\vfuzz = 0.2em % 0.0pt
|
||||||
}{
|
}{
|
||||||
% Suppress small overfull infos.
|
% Suppress small overfull infos.
|
||||||
\hfuzz = 6.0pt
|
\hfuzz = 0.5em % 6.0pt
|
||||||
\vfuzz = 8.0pt
|
\vfuzz = 1.0em % 8.0pt
|
||||||
}
|
}
|
||||||
|
|
||||||
\geometry{
|
\geometry{
|
||||||
|
|||||||
Reference in New Issue
Block a user