aboutsummaryrefslogtreecommitdiffstats
path: root/docs/report/styles
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-12-05 20:04:00 -0600
committerToby Vincent <tobyv13@gmail.com>2021-12-05 20:04:00 -0600
commit0fcc18e191ede94347e740a8cbda087c367f3427 (patch)
tree4c897a3885d63ca81b6f65a556db2b449e39b211 /docs/report/styles
parentf005c0c5a1d559ca19aad455792a74aeb2c6df80 (diff)
parent5cb64e38c38655ae322643ce379738bca8fa97d1 (diff)
Merge branch 'global-min-cut' into develop
Diffstat (limited to 'docs/report/styles')
-rw-r--r--docs/report/styles/header.sty35
-rw-r--r--docs/report/styles/packages.sty12
-rw-r--r--docs/report/styles/section.sty35
-rw-r--r--docs/report/styles/title.sty29
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}
+}