mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-11-22 07:11:55 +00:00
83 lines
3.1 KiB
TeX
83 lines
3.1 KiB
TeX
\ProvidesPackage{bierbook-style}
|
|
|
|
% Contains generic style information such as font, size, margins, and include{} for the various packages used in the documents
|
|
|
|
|
|
% Increase the margins of the document. J.S. Wilson & sons recommend 20 mm (57 pt) margins on all edges, except 30mm (86 pt) on the binding edges. The vertical margins here are increased to accommodate the header and footer.
|
|
\usepackage[top=92pt,
|
|
bottom=92pt,
|
|
left=86pt,
|
|
right=57pt,
|
|
headheight=15pt,
|
|
headsep=20pt,
|
|
footskip=35pt,
|
|
marginparsep=5pt,
|
|
marginparwidth=47pt]{geometry}
|
|
|
|
\setlength{\parindent}{0pt}
|
|
|
|
% The 'fancyhdr' package is used to typset both headers and footers, and requires that the page style is set to 'fancy'.
|
|
\usepackage{fancyhdr}
|
|
\pagestyle{fancy}
|
|
|
|
% Make the header tall enough for the text
|
|
|
|
% Set line widths for the header and footer.
|
|
\renewcommand{\headrulewidth}{0pt}
|
|
\renewcommand{\footrulewidth}{0pt}
|
|
|
|
% Clear the headers and footers, then add page numbers to the header. These are on the left on even numbered pages, and on the right on odd numbered pages. This is because of the two sided layout.
|
|
\fancyhead{}
|
|
\fancyfoot{}
|
|
\fancyhead[LE,RO]{\small\thepage}
|
|
|
|
% Tikz is a powerful tool for creating diagrams and annotating images. It can be extended to draw 3D images. The spy library allows parts of an image to enlarged in an inset.
|
|
\usepackage{tikz}
|
|
|
|
% The booktabs package is the main source of table formatting commands.
|
|
\usepackage{booktabs}
|
|
|
|
% The longtable environment is similar in most ways to tabular, but is allowed to be broken by LaTeX's standard page-breaking algorithm. It still uses the table counter, so does not interfere with cross-referencing.
|
|
\usepackage{longtable}
|
|
|
|
% Set the default thinknesses of the rules (lines) used in tables. Heavy lines are used for \toprule and \bottomrule, whereas light lines are used for \midrule and \cmidrule, which is the variant for partial horizontal lines.
|
|
\setlength{\heavyrulewidth}{2pt}
|
|
\setlength{\lightrulewidth}{1pt}
|
|
|
|
% Required for cells spanning multiple rows in a table.
|
|
\usepackage{multirow}
|
|
|
|
% The 'tocloft' package is used to typeset the ToC, LoF, LoT, and allows creation of new lists which follow the same format.
|
|
\usepackage{tocloft}
|
|
|
|
% Counter level 0 is chapter, level 1 is section, and level 2 is subsections.
|
|
\setcounter{tocdepth}{2}
|
|
|
|
% Option to change the title of the ToC, and reduces the size of the spaces surrounding the title.
|
|
\renewcommand{\contentsname}{Contents}
|
|
\setlength{\cftbeforetoctitleskip}{10pt}
|
|
\setlength{\cftaftertoctitleskip}{20pt}
|
|
|
|
% Sets the line space above a each type of entry, only put extra space above new chapters.
|
|
\setlength{\cftbeforechapskip}{10pt}
|
|
\setlength{\cftbeforesecskip}{0pt}
|
|
\setlength{\cftbeforesubsecskip}{0pt}
|
|
|
|
% Spacing of the dots that link the entry name to the page number, for all three levels of entry.
|
|
\renewcommand{\cftchapdotsep}{\cftnodots}
|
|
\renewcommand{\cftsecdotsep}{2}
|
|
\renewcommand{\cftsubsecdotsep}{2}
|
|
|
|
% Create a single command to print the ToC on a new page, and include it in itself
|
|
\newcommand{\printtoc}{
|
|
\addcontentsline{toc}{chapter}{\contentsname}
|
|
\tableofcontents
|
|
\clearpage
|
|
}
|
|
|
|
% for the title font
|
|
\usepackage{anyfontsize}
|
|
|
|
% for iteration
|
|
\usepackage{ifthen}
|