Compare commits

..

2 Commits

Author SHA1 Message Date
f7fa6cbea3 Return to half-letter size 2024-07-02 13:25:17 -04:00
e72629122b Preamble cleanup 2024-07-02 13:22:53 -04:00

158
lbol.tex
View File

@ -1,4 +1,7 @@
\documentclass[twoside, 9pt]{extreport}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{extsizes}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
@ -14,40 +17,45 @@
\usepackage{quoting}
\usepackage{wrapfig}
\usepackage{pifont}
\usepackage[nottoc]{tocbibind} % Include bibliography in TOC without numbering
\usepackage{multicol}
\usepackage{wrapfig} % Let's wrap some images
\usepackage{ulem} % Use strikethrough
\usepackage{microtype} % Make things neater. Thanks /u/-LeopardShark-
\usepackage{fancyvrb} % \begin{Verbatim}...\end{Verbatim} <-- Note the capitalization!
\usepackage{fvextra} % Break lines inside Verbatim environment:
\usepackage{verbatim} % Actual comment blocks
\usepackage{enumitem} % Control spacing in lists
\usepackage{tikz} % Pictures
\usepackage{cancel} % Cancel units in math mode
\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{array} % Add custom widths to tables
\usepackage{nameref} % Use chapter names in references
\usepackage[hidelinks]{hyperref} % Include URLs, but hide the big red box in the pdf.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Commands %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\raggedbottom
% Easiest tables ever, plus custom table themes
\usepackage{tabularray}
\NewTblrTheme{custom1}{
\SetTblrStyle{contfoot-text}{\small}
}
\graphicspath{{./images/},{./standalone/build/}} % Where are our images?
\counterwithout{footnote}{chapter} % Stop resetting the footnote count after each chapter
% Where are our images?
\graphicspath{{./images/},{./standalone/build/}}
% Include bibliography in TOC without numbering
\usepackage[nottoc]{tocbibind}
% Let's set this as a half-letter sized sheet
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Page Set-Up %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[
paperheight=8.5in,
paperwidth=7.0in,
margin=0.5in
paperwidth=5.5in,
margin=0.5in,
heightrounded,
]{geometry}
\geometry{
% paperheight=8.5in,
% paperwidth=5.5in,
% heightrounded,
% margin=0.5in
}
\addtolength{\topmargin}{0.4in} % Adjust the top margin
\addtolength{\textheight}{-0.5in} % Adjust the bottom margin
% Adjust the top and bottom margins
\addtolength{\topmargin}{0.4in}
\addtolength{\textheight}{-0.5in}
% Set the header style
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Headers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
@ -57,10 +65,30 @@
% \cfoot{Page \thepage}
%\renewcommand{\footrulewidth}{0.5pt}
% Adjust cell spacing in tables
\usepackage{cellspace}
\cellspacetoplimit 6pt
\cellspacebottomlimit 6pt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Tables %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{tabularray}
\NewTblrTheme{custom1}{ % Custom table themes
\SetTblrStyle{contfoot-text}{\small}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Cell Spacing in Table %%%%%%%%%%%%%%%%%%
\usepackage{cellspace}
\cellspacetoplimit 6pt
\cellspacebottomlimit 6pt
%% Tabs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{tabto} % Use tab stops when we need to (especially in footnotes)
\NumTabs{18} % Define 18 tab stops (at 1/4" intervals) [tabto] package
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Macros %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 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}}
@ -76,74 +104,17 @@
\noindent\includegraphics[scale=#1]{#2}%
\medskip}
% Include sections and subsections in the TOC
% \setcounter{tocdepth}{1}
% We will probably want some two- or three-column sections
\usepackage{multicol}
% Stop resetting the footnote count after each chapter
\counterwithout{footnote}{chapter}
% Let's wrap some images
\usepackage{wrapfig}
% Use tab stops when we need to (especially in footnotes)
\usepackage{tabto}
% Define 18 tab stops (at 1/4" intervals)
\NumTabs{18}
% Use strikethrough
\usepackage{ulem}
% Make things neater. Thanks /u/-LeopardShark-
\usepackage{microtype}
% Use line numbers with code samples
% \begin{Verbatim}...\end{Verbatim} <-- Note the capitalization!
\usepackage{fancyvrb}
% Break lines inside this environment:
\usepackage{fvextra}
% Actual comment blocks
\usepackage{verbatim}
% Control spacing in lists
\usepackage{enumitem}
\raggedbottom
% Pictures!
\usepackage{tikz}
% Cancel units in math mode!
\usepackage{cancel}
% Better control over line-spacing
\usepackage{setspace}
% Use nice fractions
\usepackage{nicefrac}
% Keep the footnotes at the bottom of the page
\usepackage[bottom]{footmisc}
% Add custom widths to tables
\usepackage{array}
% Use chapter names in references
\usepackage{nameref}
% Change distance above chapter titles
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Chapter Title Spacing %%%%%%%%%%%%%%%%%%
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\LARGE\bfseries}{\chaptertitlename\ \thechapter}{10pt}{\Huge}[{\vspace{2mm}\titlerule[0.8pt]\vspace{0.5mm}\titlerule[0.3pt]}]
\titlespacing*{\chapter}{0pt}{0pt}{30pt}
% Include URLs, but hide the big red box it puts around them in the pdf.
\usepackage[hidelinks]{hyperref}
%%%% Document Information %%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Document Information %%%%%%%%%%%%%%%%%%%
\author{{\small Kenneth John Odle}}
\title{
{\Huge the little book of \LaTeX{}} \\
@ -155,6 +126,9 @@
}
\date{{\small \the\year{}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Get it Started %%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle