- 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:
44
Fonts.sty
44
Fonts.sty
@@ -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}}
|
||||
Reference in New Issue
Block a user