- add italic shape to slab font.
- add twinfig macro. - add optional arguments to marginalia macros to be passed to the marginalia command.
This commit is contained in:
@@ -31,8 +31,8 @@
|
|||||||
\definecolor{PrimePaleBlue}{RGB}{233,236,251}
|
\definecolor{PrimePaleBlue}{RGB}{233,236,251}
|
||||||
}
|
}
|
||||||
|
|
||||||
\definecolor{WarningBoxBGColor}{RGB}{255,255,128}
|
\definecolor{WarningBoxBGColor}{RGB}{255, 221, 118}
|
||||||
\definecolor{WarningBoxFGColor}{RGB}{255,192,0}
|
\definecolor{WarningBoxFGColor}{RGB}{255, 192, 0}
|
||||||
|
|
||||||
\newcommand{\boxedcolor}[3][white]{
|
\newcommand{\boxedcolor}[3][white]{
|
||||||
\fcolorbox{black}{#2}{\textcolor{#1}{#3}}
|
\fcolorbox{black}{#2}{\textcolor{#1}{#3}}
|
||||||
|
|||||||
@@ -38,10 +38,14 @@
|
|||||||
|
|
||||||
% Headings & Titles font: Roboto Slab
|
% Headings & Titles font: Roboto Slab
|
||||||
\newfontfamily{\sbfamily}{RobotoSlab}[
|
\newfontfamily{\sbfamily}{RobotoSlab}[
|
||||||
Path = {\fontpath/RobotoSlab/},
|
Path = {\fontpath/},
|
||||||
Extension = .ttf,
|
Extension = .ttf,
|
||||||
UprightFont = *-SemiBold,
|
UprightFont = RobotoSlab/RobotoSlab-SemiBold,
|
||||||
BoldFont = *-Black,
|
BoldFont = RobotoSlab/RobotoSlab-Black,
|
||||||
|
% Roboto Slab doesn't have any italic form, so use
|
||||||
|
% the Roboto Serif version.
|
||||||
|
ItalicFont = RobotoSerif/RobotoSerif-SemiBoldItalic,
|
||||||
|
BoldItalicFont = RobotoSerif/RobotoSerif-ExtraBoldItalic,
|
||||||
]
|
]
|
||||||
|
|
||||||
\newcommand{\serif}[1]{\textrm{#1}}
|
\newcommand{\serif}[1]{\textrm{#1}}
|
||||||
|
|||||||
@@ -75,9 +75,36 @@
|
|||||||
}%
|
}%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\newlength{\twinfigwidth}
|
||||||
|
\setlength{\twinfigwidth}{\textwidth / 2 + \bigfloatoverhang}
|
||||||
|
|
||||||
|
\newcommand{\twinfig}[7][\bigfloatoverhang]{%
|
||||||
|
\bigfloat[#1]{figure}{htp}{%begin{table}[htp]%
|
||||||
|
\begin{tabular}{*{2}{p{\twinfigwidth}}}%\begin{tblr}{Q[l,m]Q[l,m]}%
|
||||||
|
\vfill%
|
||||||
|
\captionsetup{type=figure}%
|
||||||
|
\includegraphics[%
|
||||||
|
keepaspectratio,width=\twinfigwidth%
|
||||||
|
]{#2}%
|
||||||
|
\captionof{figure}{#4}%
|
||||||
|
\label{fig:#3}%
|
||||||
|
\vfill%
|
||||||
|
&%
|
||||||
|
\vfill%
|
||||||
|
\captionsetup{type=figure}%
|
||||||
|
\includegraphics[%
|
||||||
|
keepaspectratio,width=\twinfigwidth%
|
||||||
|
]{#5}%
|
||||||
|
\captionof{figure}{#7}%
|
||||||
|
\label{fig:#6}%
|
||||||
|
\vfill%
|
||||||
|
\end{tabular}%\end{tblr}%
|
||||||
|
}%\end{table}%
|
||||||
|
}
|
||||||
|
|
||||||
\newcommand{\wrapfig}[6][0in]{%
|
\newcommand{\wrapfig}[6][0in]{%
|
||||||
% Syntax:
|
% Syntax:
|
||||||
% \wrapfig[
|
% \wrapfig[%
|
||||||
% horizontal_offset
|
% horizontal_offset
|
||||||
% ]{
|
% ]{
|
||||||
% graphic_file
|
% graphic_file
|
||||||
|
|||||||
@@ -19,32 +19,32 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
% Put a glossary definition in a margin paragraph.
|
% Put a glossary definition in a margin paragraph.
|
||||||
\newcommand{\mdef}[2]{%
|
\newcommand{\mdef}[3][]{%
|
||||||
\index{\glsentryname{#1}}% Add a reference to this in the index.
|
\index{\glsentryname{#2}}% Add a reference to this in the index.
|
||||||
\strong{#2{#1}}% This is the text that appears on the page.
|
\strong{#3{#2}}% This is the text that appears on the page.
|
||||||
\marginalia{%
|
\marginalia[#1]{%
|
||||||
\slab{\strong{\Glsentryname{#1}:}} % Create the title of the margin note.
|
\strong{\Glsentryname{#2}:} % Create the title of the margin note.
|
||||||
\glsdesc*{#1}% Create the text of the margin note.
|
\glsdesc*{#2}% Create the text of the margin note.
|
||||||
}%
|
}%
|
||||||
}
|
}
|
||||||
\newcommand{\margindef}[1]{%
|
\newcommand{\margindef}[2][]{%
|
||||||
\mdef{#1}{\gls}%
|
\mdef[#1]{#2}{\gls}%
|
||||||
}
|
}
|
||||||
\newcommand{\Margindef}[1]{%
|
\newcommand{\Margindef}[2][]{%
|
||||||
\mdef{#1}{\Gls}%
|
\mdef[#1]{#2}{\Gls}%
|
||||||
}
|
}
|
||||||
\newcommand{\margindefpl}[1]{%
|
\newcommand{\margindefpl}[2][]{%
|
||||||
\mdef{#1}{\glspl}%
|
\mdef[#1]{#2}{\glspl}%
|
||||||
}
|
}
|
||||||
\newcommand{\Margindefpl}[1]{%
|
\newcommand{\Margindefpl}[2][]{%
|
||||||
\mdef{#1}{\Glspl}%
|
\mdef[#1]{#2}{\Glspl}%
|
||||||
}
|
}
|
||||||
|
|
||||||
% Put a footnote in a margin paragraph.
|
% Put a footnote in a margin paragraph.
|
||||||
\newcommand{\mnote}[1]{%
|
\newcommand{\mnote}[2][]{%
|
||||||
\footnotemark%
|
\footnotemark%
|
||||||
\marginalia{%
|
\marginalia[#1]{%
|
||||||
\footnotemark[\value{footnote}]#1%
|
\footnotemark[\value{footnote}]#2%
|
||||||
}%
|
}%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user