linux-dictionary/linux-dictionary.tex

166 lines
3.4 KiB
TeX

\documentclass[9pt,letterpaper,twoside]{extreport}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{lastpage}
% page size
\usepackage[
paperheight=8.5in,
paperwidth=5.5in,
left=1cm,
right=1cm,
top=2cm,
bottom=2cm]
{geometry}
% fancy headers
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RO]{\textit{A Linux Dictionary}}
\fancyhead[LE]{1\textsuperscript{st} Edition}
\cfoot{Page \thepage}
\renewcommand{\footrulewidth}{0.5pt}
% multicolumns
\usepackage{multicol}
\setlength{\columnsep}{0.25in}
\setlength{\columnseprule}{0.1pt}
% hanging indents; we need it for the bibliography
\usepackage{hanging}
% Use definition lists
\usepackage{enumitem}
% Do not insert space between items in list
% We will space between items when we create the definition list
\setlist{noitemsep}
% Use tab stops when we need to
\usepackage{tabto}
\TabPositions{5mm}
% 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}
\raggedbottom
% Add URLS
\usepackage[hidelinks]{hyperref}
\author{Kenneth John Odle}
\begin{document}
\tableofcontents
\medskip
\begin{small}
Pages 1-40 are in volume 1. Pages 41-\pageref*{LastPage} are in volume 2.
\end{small}
\bigskip
\hrule
\begin{center}
\section{The Introduction}
\end{center}
\input{parts/intro.tex}
\hrule
\begin{center}
\section{The Abbreviations}
\end{center}
\input{parts/abbrev.tex}
\hrule
\begin{center}
\section{The Words}
\end{center}
\bigskip
% {\parskip=2pt % Add parskip if needed
% Begin listing
\begin{multicols}{2}
\begin{small}
\begin{description}[leftmargin=4mm,labelsep=3mm,itemindent=0mm,itemsep=1mm,style=nextline]
% First section : A-F
\begin{centering}
\subsection{alias -- fsck}
\end{centering}
\input{include/1.tex}
% Second section : G-M
\medskip
\hrule
\begin{centering}
\subsection{gedit - mv}
\end{centering}
\input{include/2.tex}
% Third section : N-S
\medskip
\hrule
\begin{centering}
\subsection{nano -- sys}
\end{centering}
\input{include/3.tex}
% Fourth section : T-Z
\medskip
\hrule
\begin{centering}
\subsection{tail -- zip}
\end{centering}
\input{include/4.tex}
% End listings
\end{description}
\end{small}
\end{multicols}
\hrule
\begin{center}
\section{The Sources}
\end{center}
\input{parts/sources}
\end{document}