From 79e9dc5c2a8f4cf606b35511907559df93bdab19 Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Mon, 13 Mar 2023 13:38:58 +0000 Subject: [PATCH] Cleanup Crampin's template --- prelude.tex | 46 +++++++++++++++++++++++++++++++++++++ report.tex | 66 ++++------------------------------------------------- 2 files changed, 50 insertions(+), 62 deletions(-) create mode 100644 prelude.tex diff --git a/prelude.tex b/prelude.tex new file mode 100644 index 0000000..634dde7 --- /dev/null +++ b/prelude.tex @@ -0,0 +1,46 @@ +\documentclass[10pt, twocolumn]{article} + +\usepackage[utf8]{inputenc} +\usepackage{fontspec} +%\setmainfont{Georgia} +%\setsansfont{Georgia} +%\setmonofont{Georgia} +%\usepackage[none]{hyphenat} + +\usepackage{geometry} % to change the page dimensions +\geometry{a4paper, left=17.5mm, right=17.5mm, textwidth=85mm,columnsep=5mm, top=32mm} +\setlength{\parindent}{0pt} + +\usepackage{graphicx} % support the \includegraphics command and options + +\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent + +%%% PACKAGES +\usepackage{booktabs} % for much better looking tables +\usepackage{array} % for better arrays (eg matrices) in maths +\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.) +\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim +\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float +% These packages are all incorporated in the memoir class to one degree or another... +\usepackage{lipsum} +%%% HEADERS & FOOTERS +\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry +\pagestyle{fancy} % options: empty , plain , fancy +\renewcommand{\headrulewidth}{0pt} % customise the layout... +\lhead{}\chead{}\rhead{} +\lfoot{}\cfoot{\thepage}\rfoot{} + +%%% SECTION TITLE APPEARANCE +%\usepackage{sectsty} +%\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help) +% (This matches ConTeXt defaults) + +%%% ToC (table of contents) APPEARANCE +\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC +\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents +\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape} +\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold! +\usepackage{authblk} +%%% END Article customizations + +%%% The "real" document content comes below... diff --git a/report.tex b/report.tex index f83bb48..d393f49 100644 --- a/report.tex +++ b/report.tex @@ -1,70 +1,12 @@ % !TEX TS-program = lualatex % !TEX encoding = UTF-8 Unicode -% This is a simple template for a LaTeX document using the "article" class. -% See "book", "report", "letter" for other types of document. +\input prelude.tex -\documentclass[10pt, twocolumn]{article} % use larger type; default would be 10pt - -\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX) -\usepackage{fontspec} -\setmainfont{Georgia} -\setsansfont{Georgia} -\setmonofont{Georgia} -\usepackage[none]{hyphenat} - -%%% Examples of Article customizations -% These packages are optional, depending whether you want the features they provide. -% See the LaTeX Companion or other references for full information. - -%%% PAGE DIMENSIONS -\usepackage{geometry} % to change the page dimensions -\geometry{a4paper, left=17.5mm, right=17.5mm, textwidth=85mm,columnsep=5mm, top=32mm} -\setlength{\parindent}{0pt} -% or letterpaper (US) or a5paper or.... -% \geometry{margin=2in} % for example, change the margins to 2 inches all round -% \geometry{landscape} % set up the page for landscape -% read geometry.pdf for detailed page layout information - -\usepackage{graphicx} % support the \includegraphics command and options - -% \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent - -%%% PACKAGES -\usepackage{booktabs} % for much better looking tables -\usepackage{array} % for better arrays (eg matrices) in maths -\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.) -\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim -\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float -% These packages are all incorporated in the memoir class to one degree or another... -\usepackage{lipsum} -%%% HEADERS & FOOTERS -\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry -\pagestyle{fancy} % options: empty , plain , fancy -\renewcommand{\headrulewidth}{0pt} % customise the layout... -\lhead{}\chead{}\rhead{} -\lfoot{}\cfoot{\thepage}\rfoot{} - -%%% SECTION TITLE APPEARANCE -%\usepackage{sectsty} -%\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help) -% (This matches ConTeXt defaults) - -%%% ToC (table of contents) APPEARANCE -\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC -\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents -\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape} -\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold! -\usepackage{authblk} -%%% END Article customizations - -%%% The "real" document content comes below... - -\title{\textbf{A Title}} -\author{Candidate Number: ?????} +\title{\textbf{An investigation into things}} +\author{Candidate Number: 24829} \affil{Department of Physics, University of Bath} -%\date{} % Activate to display a given date or no date (if empty), - % otherwise the current date is printed +\date{March 21, 2023} % Due Date \begin{document} \twocolumn[