Compare commits

..

No commits in common. "f7fa6cbea3881ce07098e62c1277ca29c9bae63d" and "ff1c84f1f3d8ec4d349d4285818385d94eee725e" have entirely different histories.

158
lbol.tex
View File

@ -1,7 +1,4 @@
\documentclass[twoside, 9pt]{extreport}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{extsizes}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
@ -17,45 +14,40 @@
\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
\graphicspath{{./images/},{./standalone/build/}} % Where are our images?
\counterwithout{footnote}{chapter} % Stop resetting the footnote count after each chapter
% Easiest tables ever, plus custom table themes
\usepackage{tabularray}
\NewTblrTheme{custom1}{
\SetTblrStyle{contfoot-text}{\small}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Page Set-Up %%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 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
\usepackage[
paperheight=8.5in,
paperwidth=5.5in,
margin=0.5in,
heightrounded,
paperwidth=7.0in,
margin=0.5in
]{geometry}
\addtolength{\topmargin}{0.4in} % Adjust the top margin
\addtolength{\textheight}{-0.5in} % Adjust the bottom margin
\geometry{
% paperheight=8.5in,
% paperwidth=5.5in,
% heightrounded,
% margin=0.5in
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Headers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Adjust the top and bottom margins
\addtolength{\topmargin}{0.4in}
\addtolength{\textheight}{-0.5in}
% Set the header style
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
@ -65,30 +57,10 @@
% \cfoot{Page \thepage}
%\renewcommand{\footrulewidth}{0.5pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Adjust cell spacing in tables
\usepackage{cellspace}
\cellspacetoplimit 6pt
\cellspacebottomlimit 6pt
% 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}}
@ -104,17 +76,74 @@
\noindent\includegraphics[scale=#1]{#2}%
\medskip}
% Include sections and subsections in the TOC
% \setcounter{tocdepth}{1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Chapter Title Spacing %%%%%%%%%%%%%%%%%%
% 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
\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{}} \\
@ -126,9 +155,6 @@
}
\date{{\small \the\year{}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Get it Started %%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle