- Add Roboto as sans serif font and move Roboto Slab to a custom family. - Customize title formatting. - Add boxout macro.
52 lines
1.2 KiB
TeX
52 lines
1.2 KiB
TeX
\NeedsTeXFormat{LaTeX2e}
|
|
\ProvidesPackage{PrimeTeX/Fonts}[2025-06-24]
|
|
|
|
% Specify Fonts
|
|
%#region
|
|
\RequirePackage{fontspec}
|
|
|
|
% Main font: Roboto Serif
|
|
\setmainfont{RobotoSerif}[
|
|
Path = PrimeTeX/fonts/RobotoSerif/,
|
|
Extension = .ttf,
|
|
UprightFont = *-Light,
|
|
BoldFont = *-SemiBold,
|
|
ItalicFont = *-LightItalic,
|
|
BoldItalicFont = *-SemiBoldItalic,
|
|
]
|
|
|
|
% Sans serif font: Roboto
|
|
\setsansfont{Roboto}[
|
|
Path = PrimeTeX/fonts/Roboto/,
|
|
Extension = .ttf,
|
|
UprightFont = *-Regular,
|
|
BoldFont = *-Bold,
|
|
ItalicFont = *-Italic,
|
|
BoldItalicFont = *-BoldItalic,
|
|
]
|
|
|
|
% 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}} |