Add marginfig macro.
This commit is contained in:
@@ -168,7 +168,7 @@
|
|||||||
\renewcommand{\marginfont}{\small\color{PrimeBlue}}
|
\renewcommand{\marginfont}{\small\color{PrimeBlue}}
|
||||||
|
|
||||||
% Title formatting for margin notes.
|
% Title formatting for margin notes.
|
||||||
\newcommand{\margintitle}[1]{\paragraph{\textbf{#1}}}
|
%\newcommand{\margintitle}[1]{\paragraph{\textbf{#1}}}
|
||||||
|
|
||||||
% Put a glossary definition in a margin note.
|
% Put a glossary definition in a margin note.
|
||||||
% Optional parameter is vertical adjustment of the note.
|
% Optional parameter is vertical adjustment of the note.
|
||||||
@@ -176,15 +176,34 @@
|
|||||||
\index{\glsentryname{#2}}% Add a reference to this in the index.
|
\index{\glsentryname{#2}}% Add a reference to this in the index.
|
||||||
\textbf{\gls{#2}}% This is the text that appears on the page.
|
\textbf{\gls{#2}}% This is the text that appears on the page.
|
||||||
\marginnote{% Create the margin note.
|
\marginnote{% Create the margin note.
|
||||||
|
%\marginfont
|
||||||
\textsf{\textbf{
|
\textsf{\textbf{
|
||||||
\Glsentryname{#2}:% Create the title of the margin note.
|
\Glsentryname{#2}:% Create the title of the margin note.
|
||||||
}}
|
}}
|
||||||
\glsdesc*{#2}}[#1]% Create the text of the margin note.
|
\glsdesc*{#2}
|
||||||
|
}[#1]% Create the text of the margin note.
|
||||||
}
|
}
|
||||||
|
|
||||||
% Put a footnote in a margin note.
|
% Put a footnote in a margin note.
|
||||||
% Optional parameter is vertical adjustment of the note.
|
% Optional parameter is vertical adjustment of the note.
|
||||||
\newcommand{\mnote}[2][0pt]{\footnotemark\marginnote{\footnotemark[\value{footnote}]#2}[#1]}
|
\newcommand{\mnote}[2][0pt]{%
|
||||||
|
\footnotemark
|
||||||
|
\marginnote{
|
||||||
|
%\marginfont
|
||||||
|
\footnotemark[\value{footnote}]#2}[#1]
|
||||||
|
}
|
||||||
|
|
||||||
|
\RequirePackage[hypcap=true]{caption}
|
||||||
|
\newcommand{\marginfig}[2]{%
|
||||||
|
\marginnote{
|
||||||
|
%\marginfont
|
||||||
|
\captionsetup{type=figure}
|
||||||
|
\begin{center}
|
||||||
|
\includegraphics{#1}
|
||||||
|
\end{center}
|
||||||
|
\captionof{figure}{#2}
|
||||||
|
}
|
||||||
|
}
|
||||||
%#endregion
|
%#endregion
|
||||||
|
|
||||||
% Cross references
|
% Cross references
|
||||||
|
|||||||
Reference in New Issue
Block a user