Change italic font to LightItalic, add figure label macro.
This commit is contained in:
@@ -25,22 +25,23 @@
|
|||||||
%\RequirePackage[mark]{gitinfo2}
|
%\RequirePackage[mark]{gitinfo2}
|
||||||
|
|
||||||
% Specify Fonts
|
% Specify Fonts
|
||||||
|
%#region
|
||||||
\RequirePackage{fontspec}
|
\RequirePackage{fontspec}
|
||||||
% Main font: Roboto Serif
|
% Main font: Roboto Serif
|
||||||
\setmainfont{RobotoSerif}[
|
\setmainfont{RobotoSerif}[
|
||||||
Path = ./fonts/RobotoSerif/,
|
Path = ./fonts/RobotoSerif/,
|
||||||
Extension = .ttf,
|
Extension = .ttf,
|
||||||
UprightFont = *-Light,
|
UprightFont = *-Light,
|
||||||
BoldFont = *-Bold,
|
BoldFont = *-SemiBold,
|
||||||
ItalicFont = *-Italic,
|
ItalicFont = *-LightItalic,
|
||||||
BoldItalicFont = *-BoldItalic,
|
BoldItalicFont = *-SemiBoldItalic,
|
||||||
]
|
]
|
||||||
% Headings & Titles font: Roboto Slab
|
% Headings & Titles font: Roboto Slab
|
||||||
\setsansfont{RobotoSlab}[
|
\setsansfont{RobotoSlab}[
|
||||||
Path = ./fonts/RobotoSlab/,
|
Path = ./fonts/RobotoSlab/,
|
||||||
Extension = .ttf,
|
Extension = .ttf,
|
||||||
UprightFont = *-Regular,
|
UprightFont = *-SemiBold,
|
||||||
BoldFont = *-Bold,
|
BoldFont = *-Black,
|
||||||
]
|
]
|
||||||
% Monospace font: Roboto Mono
|
% Monospace font: Roboto Mono
|
||||||
\setmonofont{RobotoMono}[
|
\setmonofont{RobotoMono}[
|
||||||
@@ -51,6 +52,7 @@
|
|||||||
ItalicFont = *-Italic,
|
ItalicFont = *-Italic,
|
||||||
BoldItalicFont = *-BoldItalic,
|
BoldItalicFont = *-BoldItalic,
|
||||||
]
|
]
|
||||||
|
%#endregion
|
||||||
|
|
||||||
% Page Layout
|
% Page Layout
|
||||||
\RequirePackage[pass]{geometry}
|
\RequirePackage[pass]{geometry}
|
||||||
@@ -145,28 +147,38 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
% Cross references
|
% Cross references
|
||||||
\newcommand{\refGeneral}[3][]{
|
%#region
|
||||||
|
\newcommand{\sectionRef}[3][]{#1 \ref{#2:#3}: #3}
|
||||||
|
|
||||||
|
\newcommand{\lblGeneral}[4][]{
|
||||||
\if\relax\detokenize{#1}\relax % Check if #1 is empty string.
|
\if\relax\detokenize{#1}\relax % Check if #1 is empty string.
|
||||||
#3{#2}\label{ch:#2}
|
#3{#2}\label{#4:#2}
|
||||||
\else
|
\else
|
||||||
#3{#2}\label{ch:#1}
|
#3{#2}\label{#4:#1}
|
||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
\newcommand{\refChapter}[2][]{
|
\newcommand{\lblChapter}[2][]{
|
||||||
\refGeneral[#1]{#2}{\chapter}
|
\lblGeneral[#1]{#2}{\chapter}{ch}
|
||||||
}
|
}
|
||||||
\newcommand{\refSection}[2][]{
|
\newcommand{\lblSection}[2][]{
|
||||||
\refGeneral[#1]{#2}{\section}
|
\lblGeneral[#1]{#2}{\section}{sec}
|
||||||
}
|
}
|
||||||
\newcommand{\refSubsection}[2][]{
|
\newcommand{\lblSubsection}[2][]{
|
||||||
\refGeneral[#1]{#2}{\subsection}
|
\lblGeneral[#1]{#2}{\subsection}{subsec}
|
||||||
}
|
}
|
||||||
\newcommand{\refSubsubsection}[2][]{
|
\newcommand{\lblSubsubsection}[2][]{
|
||||||
\refGeneral[#1]{#2}{\subsubsection}
|
\lblGeneral[#1]{#2}{\subsubsection}{sssec}
|
||||||
}
|
}
|
||||||
\newcommand{\refParagraph}[2][]{
|
\newcommand{\lblParagraph}[2][]{
|
||||||
\refGeneral[#1]{#2}{\paragraph}
|
\lblGeneral[#1]{#2}{\paragraph}{par}
|
||||||
}
|
}
|
||||||
\newcommand{\refSubparagraph}[2][]{
|
\newcommand{\lblSubparagraph}[2][]{
|
||||||
\refGeneral[#1]{#2}{\subparagraph}
|
\lblGeneral[#1]{#2}{\subparagraph}{subpar}
|
||||||
}
|
}
|
||||||
|
\newcommand{\lblTable}[2][]{
|
||||||
|
\textbf{\lblGeneral[#1]{#2}{\caption}{tbl}}
|
||||||
|
}
|
||||||
|
\newcommand{\lblFigure}[2][]{
|
||||||
|
\textbf{\lblGeneral[#1]{#2}{\caption}{fig}}
|
||||||
|
}
|
||||||
|
%#endregion
|
||||||
Reference in New Issue
Block a user