Preamble cleanup
This commit is contained in:
parent
ff1c84f1f3
commit
e72629122b
147
lbol.tex
147
lbol.tex
@ -1,4 +1,7 @@
|
|||||||
\documentclass[twoside, 9pt]{extreport}
|
\documentclass[twoside, 9pt]{extreport}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%% Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\usepackage{extsizes}
|
\usepackage{extsizes}
|
||||||
\usepackage[utf8]{inputenc}
|
\usepackage[utf8]{inputenc}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
@ -14,23 +17,34 @@
|
|||||||
\usepackage{quoting}
|
\usepackage{quoting}
|
||||||
\usepackage{wrapfig}
|
\usepackage{wrapfig}
|
||||||
\usepackage{pifont}
|
\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
|
\raggedbottom
|
||||||
|
\graphicspath{{./images/},{./standalone/build/}} % Where are our images?
|
||||||
% Easiest tables ever, plus custom table themes
|
\counterwithout{footnote}{chapter} % Stop resetting the footnote count after each chapter
|
||||||
\usepackage{tabularray}
|
|
||||||
\NewTblrTheme{custom1}{
|
|
||||||
\SetTblrStyle{contfoot-text}{\small}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
% Where are our images?
|
%% Page Set-Up %%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\graphicspath{{./images/},{./standalone/build/}}
|
|
||||||
|
|
||||||
% Include bibliography in TOC without numbering
|
|
||||||
\usepackage[nottoc]{tocbibind}
|
|
||||||
|
|
||||||
% Let's set this as a half-letter sized sheet
|
|
||||||
\usepackage[
|
\usepackage[
|
||||||
paperheight=8.5in,
|
paperheight=8.5in,
|
||||||
paperwidth=7.0in,
|
paperwidth=7.0in,
|
||||||
@ -42,12 +56,11 @@
|
|||||||
% heightrounded,
|
% heightrounded,
|
||||||
% margin=0.5in
|
% 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}
|
%% Headers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\addtolength{\textheight}{-0.5in}
|
|
||||||
|
|
||||||
% Set the header style
|
|
||||||
\usepackage{fancyhdr}
|
\usepackage{fancyhdr}
|
||||||
\pagestyle{fancy}
|
\pagestyle{fancy}
|
||||||
\fancyhf{}
|
\fancyhf{}
|
||||||
@ -57,10 +70,30 @@
|
|||||||
% \cfoot{Page \thepage}
|
% \cfoot{Page \thepage}
|
||||||
%\renewcommand{\footrulewidth}{0.5pt}
|
%\renewcommand{\footrulewidth}{0.5pt}
|
||||||
|
|
||||||
% Adjust cell spacing in tables
|
|
||||||
\usepackage{cellspace}
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\cellspacetoplimit 6pt
|
%% Tables %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\cellspacebottomlimit 6pt
|
\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
|
% 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}}
|
||||||
@ -76,74 +109,17 @@
|
|||||||
\noindent\includegraphics[scale=#1]{#2}%
|
\noindent\includegraphics[scale=#1]{#2}%
|
||||||
\medskip}
|
\medskip}
|
||||||
|
|
||||||
% Include sections and subsections in the TOC
|
|
||||||
% \setcounter{tocdepth}{1}
|
|
||||||
|
|
||||||
% We will probably want some two- or three-column sections
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\usepackage{multicol}
|
%% Chapter Title Spacing %%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
% 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}
|
\usepackage{titlesec}
|
||||||
\titleformat{\chapter}[display]
|
\titleformat{\chapter}[display]
|
||||||
{\normalfont\LARGE\bfseries}{\chaptertitlename\ \thechapter}{10pt}{\Huge}[{\vspace{2mm}\titlerule[0.8pt]\vspace{0.5mm}\titlerule[0.3pt]}]
|
{\normalfont\LARGE\bfseries}{\chaptertitlename\ \thechapter}{10pt}{\Huge}[{\vspace{2mm}\titlerule[0.8pt]\vspace{0.5mm}\titlerule[0.3pt]}]
|
||||||
\titlespacing*{\chapter}{0pt}{0pt}{30pt}
|
\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}}
|
\author{{\small Kenneth John Odle}}
|
||||||
\title{
|
\title{
|
||||||
{\Huge the little book of \LaTeX{}} \\
|
{\Huge the little book of \LaTeX{}} \\
|
||||||
@ -155,6 +131,9 @@
|
|||||||
}
|
}
|
||||||
\date{{\small \the\year{}}}
|
\date{{\small \the\year{}}}
|
||||||
|
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%% Get it Started %%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\maketitle
|
\maketitle
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user