Added and styled TOC
This commit is contained in:
parent
8bb142ede8
commit
b3a0ea1f26
@ -41,12 +41,43 @@
|
||||
% Use tab stops when we need to (especially in footnotes)
|
||||
\usepackage{tabto}
|
||||
|
||||
% Include sections and subsections in the TOC
|
||||
% https://latex-tutorial.com/tutorials/table-of-contents/
|
||||
\setcounter{tocdepth}{2}
|
||||
|
||||
% Turn off section numbering
|
||||
% https://tex.stackexchange.com/questions/246571/table-of-contents-problem
|
||||
% Necessary to create table of contents with unnumbered sections
|
||||
\setcounter{secnumdepth}{0}
|
||||
|
||||
% Use a custom title for the TOC
|
||||
% https://tex.stackexchange.com/questions/35903/formatting-the-title-of-the-toc
|
||||
\AtBeginDocument{\renewcommand\contentsname{The Contents}}
|
||||
|
||||
% Center the TOC title
|
||||
% https://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf
|
||||
% https://tex.stackexchange.com/questions/114709/how-do-i-get-the-table-of-contents-list-of-figures-and-list-of-tables-to-have-t
|
||||
% See Werner's note about the variable 'Z'
|
||||
\usepackage{tocloft}
|
||||
\renewcommand{\cfttoctitlefont}{\hfill\Large\textbf}
|
||||
\renewcommand{\cftaftertoctitle}{\hfill}
|
||||
|
||||
% Change the space above and below the TOC title
|
||||
% https://tex.stackexchange.com/questions/46724/remove-vertical-space-before-table-of-contents-title
|
||||
\setlength{\cftbeforetoctitleskip}{-3em}
|
||||
\setlength{\cftaftertoctitleskip}{1em}
|
||||
|
||||
% Tighten up the typography
|
||||
\usepackage{microtype}
|
||||
|
||||
\author{Kenneth John Odle}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\tableofcontents
|
||||
|
||||
\begin{center}
|
||||
\section*{The Introduction}
|
||||
\section{The Introduction}
|
||||
\end{center}
|
||||
|
||||
\begin{multicols}{2}
|
||||
@ -62,7 +93,7 @@ What follows is a dictionary of various terms related to Linux. It currently res
|
||||
\bigskip
|
||||
|
||||
\begin{center}
|
||||
\section*{The Abbreviations}
|
||||
\section{The Abbreviations}
|
||||
\end{center}
|
||||
|
||||
\begin{multicols}{2}
|
||||
@ -98,7 +129,7 @@ Additional modern abbreviations used include:
|
||||
\bigskip
|
||||
|
||||
\begin{center}
|
||||
\section*{The Words}
|
||||
\section{The Words}
|
||||
\end{center}
|
||||
|
||||
\bigskip
|
||||
@ -110,7 +141,7 @@ Additional modern abbreviations used include:
|
||||
\begin{hangparas}{.3cm}{1}
|
||||
|
||||
\begin{centering}
|
||||
\subsection*{A-F}
|
||||
\subsection{A-F}
|
||||
\end{centering}
|
||||
% Replace the letters with actual words later
|
||||
|
||||
@ -191,7 +222,7 @@ Additional modern abbreviations used include:
|
||||
\textbf{fsck}
|
||||
|
||||
\begin{centering}
|
||||
\subsection*{G-M}
|
||||
\subsection{G-M}
|
||||
\end{centering}
|
||||
|
||||
\textbf{Ghost Script}
|
||||
@ -251,7 +282,7 @@ Additional modern abbreviations used include:
|
||||
\textbf{mv}
|
||||
|
||||
\begin{centering}
|
||||
\subsection*{N-S}
|
||||
\subsection{N-S}
|
||||
\end{centering}
|
||||
|
||||
\textbf{opt}
|
||||
@ -295,7 +326,7 @@ Additional modern abbreviations used include:
|
||||
\textbf{sys}
|
||||
|
||||
\begin{centering}
|
||||
\subsection*{T-Z}
|
||||
\subsection{T-Z}
|
||||
\end{centering}
|
||||
|
||||
\textbf{tail}
|
||||
|
Loading…
Reference in New Issue
Block a user