Add math fonts.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
% Loading math fonts takes a long time, so skip it in draft mode.
|
||||
\bool_if:NF \g_draft_bool {
|
||||
\usepackage{notomath}
|
||||
\RequirePackage{notomath}
|
||||
}
|
||||
|
||||
\NewDocumentCommand{\fontpath}{}{PrimeTeX/fonts}
|
||||
@@ -61,6 +61,15 @@
|
||||
ItalicFont = NotoEmoji/NotoEmoji-Light,
|
||||
]
|
||||
|
||||
\newfontfamily{\mtfamily}{NotoSerif}[
|
||||
Path = {\fontpath/NotoSerif/},
|
||||
Extension = .ttf,
|
||||
UprightFont = *-Regular,
|
||||
BoldFont = *-Bold,
|
||||
ItalicFont = *-Italic,
|
||||
BoldItalicFont = *-BoldItalic,
|
||||
]
|
||||
|
||||
% Box drawing font: Noto Sans Symbols 2
|
||||
\newfontfamily{\bxfamily}{\fontpath/NotoSansSymbols2-regular.ttf}
|
||||
|
||||
@@ -72,6 +81,7 @@
|
||||
\NewDocumentCommand{\slab}{m}{{\sbfamily{}#1}}
|
||||
\NewDocumentCommand{\code}{m}{\mono{\small{}#1}}
|
||||
\NewDocumentCommand{\emoji}{m}{{\emfamily{}#1}}
|
||||
\NewDocumentCommand{\maths}{m}{{\mtfamily{#1}}}
|
||||
|
||||
% Line-breaking zero-width space.
|
||||
\NewDocumentCommand{\zws}{}{\hspace{0pt}}
|
||||
|
||||
Reference in New Issue
Block a user