Add math fonts.

This commit is contained in:
2025-09-25 17:21:45 -05:00
parent 64c3aa4574
commit 42eb68b696
74 changed files with 13 additions and 1 deletions

View File

@@ -65,6 +65,8 @@
% Color import and definition
\RequirePackage{xcolor}
\RequirePackage{xfrac}
% A lot of other packages require Layout, so load it first.
\RequirePackage{PrimeTeX/packages/Layout}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -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}}