Cleaned up the preamble finally

This commit is contained in:
Kenneth John Odle 2024-06-30 18:53:07 -04:00
parent 3700b7095e
commit 53bd2f9099

View File

@ -1,5 +1,7 @@
\documentclass[twoside]{report} \documentclass[twoside]{report}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} \usepackage[T1]{fontenc}
\usepackage{amsmath} \usepackage{amsmath}
@ -14,11 +16,32 @@
\usepackage{gensymb} % Just for the degree symbol \usepackage{gensymb} % Just for the degree symbol
\usepackage{ccicons} % Creative Commons icons; now we can delete an image \usepackage{ccicons} % Creative Commons icons; now we can delete an image
\usepackage{lettrine} % Drop caps \usepackage{lettrine} % Drop caps
\usepackage{wrapfig} % Let's wrap some images
\usepackage{hanging} % For hanging indents in a script
\usepackage{fancyvrb} % Use line numbers with code samples
\usepackage{fvextra} % Break lines inside Verbatim environment:
\usepackage{enumitem} % Control spacing in lists
\usepackage{setspace} % Better control over line-spacing
\usepackage{nicefrac} % Use nice fractions
\usepackage[bottom]{footmisc} % Keep the footnotes at the bottom of the page
\usepackage{tabto} % Use tab stops when we need to (especially in footnotes)
\usepackage{microtype} % Make things neater. Thanks /u/-LeopardShark-
\usepackage{tabularray} % Easy tables
% Where are our images?
\graphicspath{{images/}}
% Let's set this as a half-letter sized sheet %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Commands %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\graphicspath{{images/}} % Where are our images?
\usepackage{multicol} % Include two- or three-column sections
\counterwithout{footnote}{chapter} % Stop resetting the footnote count after each chapter
\NumTabs{18} % Define 18 tab stops (at 1/4" intervals) [tabto package]
\raggedbottom % Don't force text to fill page
\setlength{\belowcaptionskip}{4pt} % Adjust space between caption and figure
\renewcommand*\contentsname{In This Issue…} % Change the name of the TOC
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Document Setup%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{geometry} \usepackage{geometry}
\geometry{ \geometry{
paperheight=8.5in, paperheight=8.5in,
@ -27,11 +50,12 @@
margin=0.5in margin=0.5in
} }
% Adjust the top and bottom margins \addtolength{\topmargin}{0.4in} % Adjust and bottom margin
\addtolength{\topmargin}{0.4in} \addtolength{\textheight}{-0.75in} % Adjust the bottom margin
\addtolength{\textheight}{-0.75in}
% Set the header style
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Page Headers%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr} \usepackage{fancyhdr}
\pagestyle{fancy} \pagestyle{fancy}
\fancyhf{} \fancyhf{}
@ -40,21 +64,10 @@
\cfoot{Page \thepage} \cfoot{Page \thepage}
\renewcommand{\footrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0.5pt}
% Include two- or three-column sections
\usepackage{multicol}
% Stop resetting the footnote count after each chapter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\counterwithout{footnote}{chapter} %% Chapter Title Spacing %%%%%%%%%%%%%%%%%%%%
% Let's wrap some images
\usepackage{wrapfig}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Adjust spacing before chapter titles
% See https://tex.stackexchange.com/a/488653/245702
% and https://tex.stackexchange.com/a/40001/245702
\usepackage{titlesec} \usepackage{titlesec}
\titleformat{\chapter}[display] \titleformat{\chapter}[display]
{\normalfont\huge\bfseries} {\normalfont\huge\bfseries}
{\chaptertitlename\ \thechapter} {\chaptertitlename\ \thechapter}
@ -62,16 +75,9 @@
{\Huge} {\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{40pt} \titlespacing*{\chapter}{0pt}{0pt}{40pt}
% Use tab stops when we need to (especially in footnotes)
\usepackage{tabto}
% Define 18 tab stops (at 1/4" intervals)
\NumTabs{18}
% Make things neater. Thanks /u/-LeopardShark- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{microtype} %% Custom Macros %%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Easy tables
\usepackage{tabularray}
% Make a nice border and box for the tops of our examples % Make a nice border and box for the tops of our examples
\newcommand\klab[3]{\vspace{#1}\noindent{}\hrulefill\fbox{\texttt{~#2~}}\hrulefill\vspace{#3}} \newcommand\klab[3]{\vspace{#1}\noindent{}\hrulefill\fbox{\texttt{~#2~}}\hrulefill\vspace{#3}}
@ -103,45 +109,20 @@
\medskip \medskip
} }
% Delete later
\usepackage{lipsum}
% For hanging indents in a script %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{hanging} %% Just for Issue #005 %%%%%%%%%%%%%%%%%%%%%%
% Use line numbers with code samples
% \begin{Verbatim}...\end{Verbatim} <-- Note the capitalization!
\usepackage{fancyvrb}
% Break lines inside this environment:
\usepackage{fvextra}
% Control spacing in lists
\usepackage{enumitem}
% Don't force text to fill page
\raggedbottom
% Better control over line-spacing
\usepackage{setspace}
% Use nice fractions
\usepackage{nicefrac}
% Keep the footnotes at the bottom of the page
\usepackage[bottom]{footmisc}
% Do we want to include URLs?
% Yes, but we also want to hide the big red box it puts around them in the pdf. Thanks /u/0b0101011001001011
\usepackage[hidelinks]{hyperref}
% Adjust space between caption and figure
% https://tex.stackexchange.com/questions/45990/how-can-i-modify-vertical-space-between-figure-and-caption
\setlength{\belowcaptionskip}{4pt}
% Just for issue #005 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Document Information %%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Include URLS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Be sure to load this package last
% [hidelinks option to hide big red box. Thanks /u/0b0101011001001011
\usepackage[hidelinks]{hyperref} % Inlcude URLs, but load this package last
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Document Information %%%%%%%%%%%%%%%%%%%%%
\author{Kenneth John Odle} \author{Kenneth John Odle}
\title{ \title{
{\Huge the codex} \\ {\Huge the codex} \\
@ -152,8 +133,9 @@
} }
\date{\begin{small}\today{}\end{small}} \date{\begin{small}\today{}\end{small}}
% Change the name of the TOC
\renewcommand*\contentsname{In This Issue…} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Let's get it started %%%%%%%%%%%%%%%%%%%%%
\begin{document} \begin{document}
\maketitle \maketitle