From 5cb64e38c38655ae322643ce379738bca8fa97d1 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Sun, 5 Dec 2021 20:03:00 -0600 Subject: wrote report Co-authored-by: Neil Kollack --- docs/report/styles/header.sty | 35 +++++++++++++++++++++++++++++++++++ docs/report/styles/packages.sty | 12 ++++++++++++ docs/report/styles/section.sty | 35 +++++++++++++++++++++++++++++++++++ docs/report/styles/title.sty | 29 +++++++++++++++++++++++++++++ 4 files changed, 111 insertions(+) create mode 100644 docs/report/styles/header.sty create mode 100644 docs/report/styles/packages.sty create mode 100644 docs/report/styles/section.sty create mode 100644 docs/report/styles/title.sty (limited to 'docs/report/styles') diff --git a/docs/report/styles/header.sty b/docs/report/styles/header.sty new file mode 100644 index 0000000..b86e98e --- /dev/null +++ b/docs/report/styles/header.sty @@ -0,0 +1,35 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{styles/header}[2021/09/29 Header style] + +% ┌───────────────────────────────────┐ +% │ Title: Subtitle │ ──┬─ [Header] +% │ Author │ ──┘ +% │ Title │ ──┬─ Title +% │ Subtitle │ ──┘ +% │ │ +% │ A Section │ ──┬─ Sections +% │ ... │ │ +% │ 1.1 A Subsection │ ──┤ +% │ ... │ │ +% │ Another Section │ ──┤ +% │ ... │ │ +% │ 2.1 A Subsection │ ──┤ +% │ ... │ │ +% │ 2.2 Another Subsection │ ──┘ +% │ ... │ +% │ │ +% │ │ +% └───────────────────────────────────┘ + +\pagestyle{myheadings} + +\newsavebox{\headingbox} +\sbox{\headingbox}{% + \begin{minipage}[b]{0.5\textwidth} + \begin{flushright} + \@title \\ + \@subtitle \\ + \@author \\ + \end{flushright} + \end{minipage}} +\markright{\hfill\usebox{\headingbox}} diff --git a/docs/report/styles/packages.sty b/docs/report/styles/packages.sty new file mode 100644 index 0000000..262b9d1 --- /dev/null +++ b/docs/report/styles/packages.sty @@ -0,0 +1,12 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{styles/packages}[2021/09/29 Package imports] + +\RequirePackage[english]{babel} +\RequirePackage[letterpaper,top=2.54cm,bottom=2.54cm,left=2.54cm,right=2.54cm,marginparwidth=1.75cm]{geometry} +\RequirePackage{lipsum} +\RequirePackage{array} +\RequirePackage[colorlinks=true, allcolors=blue]{hyperref} +\RequirePackage[autostyle, english = american]{csquotes} + +% Styles +\MakeOuterQuote{"} \ No newline at end of file diff --git a/docs/report/styles/section.sty b/docs/report/styles/section.sty new file mode 100644 index 0000000..ed4d606 --- /dev/null +++ b/docs/report/styles/section.sty @@ -0,0 +1,35 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{styles/section}[2021/09/29 Section style] + +% ┌───────────────────────────────────┐ +% │ Title: Subtitle │ ──┬─ Header +% │ Author │ ──┘ +% │ Title │ ──┬─ Title +% │ Subtitle │ ──┘ +% │ │ +% │ A Section │ ──┬─ [Sections] +% │ ... │ │ +% │ 1.1 A Subsection │ ──┤ +% │ ... │ │ +% │ Another Section │ ──┤ +% │ ... │ │ +% │ 2.1 A Subsection │ ──┤ +% │ ... │ │ +% │ 2.2 Another Subsection │ ──┘ +% │ ... │ +% │ │ +% │ │ +% └───────────────────────────────────┘ + +\RequirePackage{indentfirst} +% \RequirePackage{titlesec} +% \titlespacing*{\section}{0pt}{1.1\baselineskip}{\baselineskip} + +% Paragraph spacing +\setlength{\parskip}{1em} + +\RedeclareSectionCommand[ + afterindent=false, + beforeskip=.5\baselineskip, + afterskip=.5\baselineskip +]{section} \ No newline at end of file diff --git a/docs/report/styles/title.sty b/docs/report/styles/title.sty new file mode 100644 index 0000000..fdeabbe --- /dev/null +++ b/docs/report/styles/title.sty @@ -0,0 +1,29 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{styles/title}[2021/09/29 Title style] + +% ┌───────────────────────────────────┐ +% │ Title: Subtitle │ ──┬─ Header +% │ Author │ ──┘ +% │ Title │ ──┬─ [Title] +% │ Subtitle │ ──┘ +% │ │ +% │ A Section │ ──┬─ Sections +% │ ... │ │ +% │ 1.1 A Subsection │ ──┤ +% │ ... │ │ +% │ Another Section │ ──┤ +% │ ... │ │ +% │ 2.1 A Subsection │ ──┤ +% │ ... │ │ +% │ 2.2 Another Subsection │ ──┘ +% │ ... │ +% │ │ +% │ │ +% └───────────────────────────────────┘ + +\renewcommand{\maketitle}{ + \begin{flushleft} + {\Huge \bfseries \sffamily \@title }\\[2ex] + {\Large \sffamily \@subtitle }\\[4ex] + \end{flushleft} +} -- cgit v1.2.3-70-g09d2