- Move packages to subfolder.
- Add Prime Controls graphics to this repo. - Expand readme.
This commit is contained in:
53
packages/Fonts.sty
Normal file
53
packages/Fonts.sty
Normal file
@@ -0,0 +1,53 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{PrimeTeX/packages/Fonts}[2025-06-24]
|
||||
|
||||
% Specify Fonts
|
||||
\RequirePackage{fontspec}
|
||||
|
||||
\newcommand{\fontpath}{PrimeTeX/fonts}
|
||||
|
||||
% Main font: Roboto Serif
|
||||
\setmainfont{RobotoSerif}[
|
||||
Path = {\fontpath/RobotoSerif/},
|
||||
Extension = .ttf,
|
||||
UprightFont = *-Light,
|
||||
BoldFont = *-SemiBold,
|
||||
ItalicFont = *-LightItalic,
|
||||
BoldItalicFont = *-SemiBoldItalic,
|
||||
]
|
||||
|
||||
% Sans serif font: Roboto
|
||||
\setsansfont{Roboto}[
|
||||
Path = {\fontpath/Roboto/},
|
||||
Extension = .ttf,
|
||||
UprightFont = *-Regular,
|
||||
BoldFont = *-Bold,
|
||||
ItalicFont = *-Italic,
|
||||
BoldItalicFont = *-BoldItalic,
|
||||
]
|
||||
|
||||
% Monospace font: Roboto Mono
|
||||
\setmonofont{RobotoMono}[
|
||||
Path = {\fontpath/RobotoMono/},
|
||||
Extension = .ttf,
|
||||
UprightFont = *-Regular,
|
||||
BoldFont = *-Bold,
|
||||
ItalicFont = *-Italic,
|
||||
BoldItalicFont = *-BoldItalic,
|
||||
]
|
||||
|
||||
% Headings & Titles font: Roboto Slab
|
||||
\newfontfamily{\sbfamily}{RobotoSlab}[
|
||||
Path = {\fontpath/RobotoSlab/},
|
||||
Extension = .ttf,
|
||||
UprightFont = *-SemiBold,
|
||||
BoldFont = *-Black,
|
||||
]
|
||||
|
||||
\newcommand{\serif}[1]{\textrm{#1}}
|
||||
\newcommand{\sans}[1]{\textsf{#1}}
|
||||
\newcommand{\mono}[1]{\texttt{#1}}
|
||||
\newcommand{\slab}[1]{{\sbfamily{}#1}}
|
||||
\newcommand{\code}[1]{\mono{\small{}#1}}
|
||||
|
||||
\newcommand{\objref}[1]{{\sans{\strong{#1}}}}
|
||||
Reference in New Issue
Block a user