- 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,7 +31,7 @@
|
||||
\definecolor{PrimePaleBlue}{RGB}{233,236,251}
|
||||
}
|
||||
|
||||
\definecolor{WarningBoxBGColor}{RGB}{255,255,128}
|
||||
\definecolor{WarningBoxBGColor}{RGB}{255, 221, 118}
|
||||
\definecolor{WarningBoxFGColor}{RGB}{255, 192, 0}
|
||||
|
||||
\newcommand{\boxedcolor}[3][white]{
|
||||
|
||||
@@ -38,10 +38,14 @@
|
||||
|
||||
% Headings & Titles font: Roboto Slab
|
||||
\newfontfamily{\sbfamily}{RobotoSlab}[
|
||||
Path = {\fontpath/RobotoSlab/},
|
||||
Path = {\fontpath/},
|
||||
Extension = .ttf,
|
||||
UprightFont = *-SemiBold,
|
||||
BoldFont = *-Black,
|
||||
UprightFont = RobotoSlab/RobotoSlab-SemiBold,
|
||||
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}}
|
||||
|
||||
@@ -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]{%
|
||||
% Syntax:
|
||||
% \wrapfig[
|
||||
% \wrapfig[%
|
||||
% horizontal_offset
|
||||
% ]{
|
||||
% graphic_file
|
||||
|
||||
@@ -19,32 +19,32 @@
|
||||
}
|
||||
|
||||
% Put a glossary definition in a margin paragraph.
|
||||
\newcommand{\mdef}[2]{%
|
||||
\index{\glsentryname{#1}}% Add a reference to this in the index.
|
||||
\strong{#2{#1}}% This is the text that appears on the page.
|
||||
\marginalia{%
|
||||
\slab{\strong{\Glsentryname{#1}:}} % Create the title of the margin note.
|
||||
\glsdesc*{#1}% Create the text of the margin note.
|
||||
\newcommand{\mdef}[3][]{%
|
||||
\index{\glsentryname{#2}}% Add a reference to this in the index.
|
||||
\strong{#3{#2}}% This is the text that appears on the page.
|
||||
\marginalia[#1]{%
|
||||
\strong{\Glsentryname{#2}:} % Create the title of the margin note.
|
||||
\glsdesc*{#2}% Create the text of the margin note.
|
||||
}%
|
||||
}
|
||||
\newcommand{\margindef}[1]{%
|
||||
\mdef{#1}{\gls}%
|
||||
\newcommand{\margindef}[2][]{%
|
||||
\mdef[#1]{#2}{\gls}%
|
||||
}
|
||||
\newcommand{\Margindef}[1]{%
|
||||
\mdef{#1}{\Gls}%
|
||||
\newcommand{\Margindef}[2][]{%
|
||||
\mdef[#1]{#2}{\Gls}%
|
||||
}
|
||||
\newcommand{\margindefpl}[1]{%
|
||||
\mdef{#1}{\glspl}%
|
||||
\newcommand{\margindefpl}[2][]{%
|
||||
\mdef[#1]{#2}{\glspl}%
|
||||
}
|
||||
\newcommand{\Margindefpl}[1]{%
|
||||
\mdef{#1}{\Glspl}%
|
||||
\newcommand{\Margindefpl}[2][]{%
|
||||
\mdef[#1]{#2}{\Glspl}%
|
||||
}
|
||||
|
||||
% Put a footnote in a margin paragraph.
|
||||
\newcommand{\mnote}[1]{%
|
||||
\newcommand{\mnote}[2][]{%
|
||||
\footnotemark%
|
||||
\marginalia{%
|
||||
\footnotemark[\value{footnote}]#1%
|
||||
\marginalia[#1]{%
|
||||
\footnotemark[\value{footnote}]#2%
|
||||
}%
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user