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

17
PrimeGeometry.tex Normal file
View File

@@ -0,0 +1,17 @@
\newgeometry{
margin = 1in,
% twoside = true,
% inner = 1in,
% top = 1in,
% marginratio = 2:3,
}
\savegeometry{smallMargin}
\newgeometry{
margin = 0.25in,
% twoside = true,
% inner = 0.25in,
% top = 0.25in,
% marginratio = 2:3,}
}
\savegeometry{tinyMargin}
\restoregeometry

View File

@@ -52,6 +52,9 @@
BoldItalicFont = *-BoldItalic, BoldItalicFont = *-BoldItalic,
] ]
% Page Layout
\RequirePackage[pass]{geometry}
% Title & Heading Options % Title & Heading Options
\RequirePackage[sf,raggedright]{titlesec} \RequirePackage[sf,raggedright]{titlesec}
@@ -59,7 +62,7 @@
\pagestyle{plain} \pagestyle{plain}
% Color import and definition % Color import and definition
\RequirePackage{color} \RequirePackage{xcolor}
\definecolor{PrimeBlue}{RGB}{25,45,145} \definecolor{PrimeBlue}{RGB}{25,45,145}
% Use Hyperref to automatically create links in the document % Use Hyperref to automatically create links in the document
@@ -112,9 +115,13 @@
% Table formatting. % Table formatting.
\renewcommand{\arraystretch}{1.5} \renewcommand{\arraystretch}{1.5}
\RequirePackage{csvsimple}
\RequirePackage{longtable}
\RequirePackage{colortbl}
\RequirePackage{booktabs}
% Glossary formatting. % Glossary formatting.
\RequirePackage[nopostdot,toc]{glossaries} \RequirePackage[nopostdot,toc,sort=standard]{glossaries}
% Index formatting. % Index formatting.
\RequirePackage{makeidx} \RequirePackage{makeidx}
@@ -136,3 +143,30 @@
\margintitle{\Glsentryname{#2}:% Create the title of the margin note. \margintitle{\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.
} }
% 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}
}