Add glossary and index formatting.
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
\newcommand{\sProjectTitle}{\makeatletter{Project \@projectNumber : \@projectDesc}}
|
\newcommand{\sProjectTitle}{\makeatletter{Project \@projectNumber : \@projectDesc}}
|
||||||
\newcommand{\sVersion}{\makeatletter{\@version}}
|
\newcommand{\sVersion}{\makeatletter{\@version}}
|
||||||
|
|
||||||
\RequirePackage[mark]{gitinfo2}
|
%\RequirePackage[mark]{gitinfo2}
|
||||||
|
|
||||||
% Specify Fonts
|
% Specify Fonts
|
||||||
\RequirePackage{fontspec}
|
\RequirePackage{fontspec}
|
||||||
@@ -84,19 +84,20 @@
|
|||||||
{\Huge \sTitle}
|
{\Huge \sTitle}
|
||||||
\vfill
|
\vfill
|
||||||
{\leavevmode
|
{\leavevmode
|
||||||
% Move the graphic to 0.25 in from the left edge of the paper.
|
% Move the rule graphic to 0.25 in from the left edge of the
|
||||||
|
% paper and vertically centered on the heartbeat graphic.
|
||||||
\put(-\oddsidemargin-0.75in,10pt){
|
\put(-\oddsidemargin-0.75in,10pt){
|
||||||
\includegraphics{graphics/prime_rule.pdf}
|
\includegraphics{graphics/prime_rule.pdf}
|
||||||
}
|
}
|
||||||
% The numbers here are just what looks good.
|
% The numbers here are just what looks good.
|
||||||
\put(100,0){
|
\put(100pt,0pt){
|
||||||
\includegraphics{graphics/prime_heartbeat.pdf}
|
\includegraphics{graphics/prime_heartbeat.pdf}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
\sAuthor
|
\sAuthor
|
||||||
|
|
||||||
Revision \gitVtagn %\sVersion
|
Revision \sVersion
|
||||||
|
|
||||||
\sDate
|
\sDate
|
||||||
\vfill
|
\vfill
|
||||||
@@ -112,8 +113,14 @@
|
|||||||
% Table formatting.
|
% Table formatting.
|
||||||
\renewcommand{\arraystretch}{1.5}
|
\renewcommand{\arraystretch}{1.5}
|
||||||
|
|
||||||
|
% Glossary formatting.
|
||||||
\RequirePackage[nopostdot,toc]{glossaries}
|
\RequirePackage[nopostdot,toc]{glossaries}
|
||||||
|
|
||||||
|
% Index formatting.
|
||||||
|
\RequirePackage{makeidx}
|
||||||
|
\RequirePackage{xstring}
|
||||||
|
\newcommand{\idx}[1]{\StrSubstitute{#1}{!}{ }\index{#1}}
|
||||||
|
|
||||||
% Margin Note formatting.
|
% Margin Note formatting.
|
||||||
\RequirePackage{marginnote}
|
\RequirePackage{marginnote}
|
||||||
% -38pt seems to be just the right vertical adjustment to align margin notes
|
% -38pt seems to be just the right vertical adjustment to align margin notes
|
||||||
@@ -122,9 +129,10 @@
|
|||||||
\renewcommand{\marginfont}{\small\color{PrimeBlue}}
|
\renewcommand{\marginfont}{\small\color{PrimeBlue}}
|
||||||
|
|
||||||
\newcommand{\margintitle}[1]{\paragraph{\textbf{#1}}}
|
\newcommand{\margintitle}[1]{\paragraph{\textbf{#1}}}
|
||||||
\newcommand{\margindef}[2][0pt]{\textbf{\gls{#2}}\marginnote{\margintitle{\gls{#2}:} \glsdesc{#2}}[#1]}
|
\newcommand{\margindef}[2][0pt]{%
|
||||||
|
\index{\glsentryname{#2}}% Add a reference to this in the index.
|
||||||
% Quote formatting
|
\textbf{\gls{#2}}% This is the text that appears on the page.
|
||||||
%\RequirePackage[english]{babel}
|
\marginnote{% Create the margin note.
|
||||||
%\RequirePackage[autostyle, english=american]{csquotes}
|
\margintitle{\Glsentryname{#2}:% Create the title of the margin note.
|
||||||
%\MakeOuterQuote{"}
|
} \glsdesc*{#2}}[#1]% Create the text of the margin note.
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user