Add config for layout, tables, and cross references.

This commit is contained in:
2025-07-01 17:05:58 -05:00
parent 65ef946340
commit eef58f70af
2 changed files with 53 additions and 2 deletions

View File

@@ -52,6 +52,9 @@
BoldItalicFont = *-BoldItalic,
]
% Page Layout
\RequirePackage[pass]{geometry}
% Title & Heading Options
\RequirePackage[sf,raggedright]{titlesec}
@@ -59,7 +62,7 @@
\pagestyle{plain}
% Color import and definition
\RequirePackage{color}
\RequirePackage{xcolor}
\definecolor{PrimeBlue}{RGB}{25,45,145}
% Use Hyperref to automatically create links in the document
@@ -112,9 +115,13 @@
% Table formatting.
\renewcommand{\arraystretch}{1.5}
\RequirePackage{csvsimple}
\RequirePackage{longtable}
\RequirePackage{colortbl}
\RequirePackage{booktabs}
% Glossary formatting.
\RequirePackage[nopostdot,toc]{glossaries}
\RequirePackage[nopostdot,toc,sort=standard]{glossaries}
% Index formatting.
\RequirePackage{makeidx}
@@ -135,4 +142,31 @@
\marginnote{% Create the margin note.
\margintitle{\Glsentryname{#2}:% Create the title of the margin note.
} \glsdesc*{#2}}[#1]% Create the text of the margin note.
}
% Cross references
\newcommand{\refGeneral}[3][]{
\if\relax\detokenize{#1}\relax % Check if #1 is empty string.
#3{#2}\label{ch:#2}
\else
#3{#2}\label{ch:#1}
\fi
}
\newcommand{\refChapter}[2][]{
\refGeneral[#1]{#2}{\chapter}
}
\newcommand{\refSection}[2][]{
\refGeneral[#1]{#2}{\section}
}
\newcommand{\refSubsection}[2][]{
\refGeneral[#1]{#2}{\subsection}
}
\newcommand{\refSubsubsection}[2][]{
\refGeneral[#1]{#2}{\subsubsection}
}
\newcommand{\refParagraph}[2][]{
\refGeneral[#1]{#2}{\paragraph}
}
\newcommand{\refSubparagraph}[2][]{
\refGeneral[#1]{#2}{\subparagraph}
}