diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-12-05 20:04:16 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-12-05 20:04:16 -0600 |
commit | c74ec211065d0bb98a3e9c80dfe7673c40417d48 (patch) | |
tree | 4c897a3885d63ca81b6f65a556db2b449e39b211 /docs/report/styles | |
parent | f005c0c5a1d559ca19aad455792a74aeb2c6df80 (diff) | |
parent | 0fcc18e191ede94347e740a8cbda087c367f3427 (diff) |
Diffstat (limited to 'docs/report/styles')
-rw-r--r-- | docs/report/styles/header.sty | 35 | ||||
-rw-r--r-- | docs/report/styles/packages.sty | 12 | ||||
-rw-r--r-- | docs/report/styles/section.sty | 35 | ||||
-rw-r--r-- | docs/report/styles/title.sty | 29 |
4 files changed, 111 insertions, 0 deletions
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} +} |