- Move font files to PrimeTeX.

- Add Roboto as sans serif font and move Roboto Slab to a custom family.
- Customize title formatting.
- Add boxout macro.
This commit is contained in:
2025-07-16 17:25:16 -05:00
parent b933bf8c9b
commit 60e4d0eccd
151 changed files with 830 additions and 50 deletions

View File

@@ -4,29 +4,49 @@
% Specify Fonts
%#region
\RequirePackage{fontspec}
% Main font: Roboto Serif
\setmainfont{RobotoSerif}[
Path = ./fonts/RobotoSerif/,
Path = PrimeTeX/fonts/RobotoSerif/,
Extension = .ttf,
UprightFont = *-Light,
BoldFont = *-SemiBold,
ItalicFont = *-LightItalic,
BoldItalicFont = *-SemiBoldItalic,
]
% Headings & Titles font: Roboto Slab
\setsansfont{RobotoSlab}[
Path = ./fonts/RobotoSlab/,
Extension = .ttf,
UprightFont = *-SemiBold,
BoldFont = *-Black,
]
% Monospace font: Roboto Mono
\setmonofont{RobotoMono}[
Path = ./fonts/RobotoMono/,
% Sans serif font: Roboto
\setsansfont{Roboto}[
Path = PrimeTeX/fonts/Roboto/,
Extension = .ttf,
UprightFont = *-Regular,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
]
%#endregion
% Monospace font: Roboto Mono
\setmonofont{RobotoMono}[
Path = PrimeTeX/fonts/RobotoMono/,
Extension = .ttf,
UprightFont = *-Regular,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
]
% Headings & Titles font: Roboto Slab
\newfontfamily{\sbfamily}{RobotoSlab}[
Path = PrimeTeX/fonts/RobotoSlab/,
Extension = .ttf,
UprightFont = *-SemiBold,
BoldFont = *-Black,
]
%#endregion
\newcommand{\objref}[1]{\textsf{\textbf{#1}}}
\newcommand{\serif}[1]{\textrm{#1}}
\newcommand{\sans}[1]{\textsf{#1}}
\newcommand{\mono}[1]{\texttt{#1}}
\newcommand{\slab}[1]{{\sbfamily{}#1}}