summaryrefslogtreecommitdiff
path: root/src/_preamble.tex
blob: 013cdf4b877bdd16a2d43ed4775fc1373e465257 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
\documentclass{tufte-book}

\usepackage{tikz}
\usepackage[super]{nth}

% \usepackage{parskip}

\usepackage{listings}

\usepackage{hyperref}

\hypersetup{colorlinks,linkcolor=blue}

\usetikzlibrary{automata,positioning,shapes,arrows}

\topmargin=-0.45in
\evensidemargin=0in
\oddsidemargin=0in
\textheight=9.0in
\headsep=0.25in

\linespread{1.6}

\frenchspacing

\tikzstyle{decision} = [diamond, draw, fill=blue!20, 
    text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=blue!20, 
    text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,
    minimum height=2em]

\titleformat{\section}{\scshape\Large}{\thesection}{1em}{}

\newenvironment{logEntry}[2]{ % Date, heading
  \noindent\textbf{#2}\marginnote{#1}\par}{\vspace{0.5cm}
}

\def\?#1{}

\newcommand{\writetitle}{0}
\newcommand{\mytitle}[2]{
  \ifthenelse{\writetitle=1}{\normalfont{#2:} \textbf{#1}}{}
}

\newcommand{\co}{Computer Organisation}
\newcommand{\gp}{General Psychology}
\newcommand{\da}{Digital Art: Photoshop}
\newcommand{\dd}{Documentation Development}

\newcommand{\hmwkTitle}{Documentation Log Assignment}
\newcommand{\hmwkDueDate}{March 10, 2023}
\newcommand{\hmwkClass}{Documentation Development}
\newcommand{\hmwkClassTime}{Section 01}
\newcommand{\hmwkClassInstructor}{Professor Jessica Scott}
\newcommand{\hmwkAuthorName}{\textbf{Zoltan Szabatin}}

% https://tex.stackexchange.com/a/561151
\renewcommand\allcapsspacing[1]{{\addfontfeature{LetterSpace=15}#1}}
\renewcommand\smallcapsspacing[1]{{\addfontfeature{LetterSpace=10}#1}}

\makeatletter
\newcommand{\plainsubtitle}{}%     plain-text-only subtitle
\newcommand{\subtitle}[1]{%
  \gdef\@subtitle{#1}%
  \renewcommand{\plainsubtitle}{#1}% use provided plain-text title
  \ifthenelse{\isundefined{\hypersetup}}%
    {}% hyperref is not loaded; do nothing
    {\hypersetup{pdftitle={\plaintitle: \plainsubtitle{}}}}% set the PDF metadata title
}
\renewcommand{\maketitlepage}[0]{%
  \cleardoublepage%
  {%
  \sffamily%
  \begin{fullwidth}%
  \fontsize{18}{20}\selectfont\par\noindent\textcolor{darkgray}{\allcaps{\thanklessauthor}}%
  \vspace{11.5pc}%
  \fontsize{36}{40}\selectfont\par\noindent\textcolor{darkgray}{\allcaps{\thanklesstitle}}%
  \vspace{2.5pc} % 5
  \fontsize{24}{28}\selectfont\par\noindent\textcolor{darkgray}{\allcaps{\plainsubtitle}}%
  \vfill%
  \fontsize{14}{16}\selectfont\par\noindent\allcaps{\thanklesspublisher}%
  \end{fullwidth}%
  }
  \thispagestyle{empty}%
  \clearpage%
}
\makeatother

\font\myfont = cmr10 at 25pt
\title{\myfont Documentation Log Assignment}
\subtitle{Documentation Development}
\author{Zoltan Szabatin}
\publisher{Professor Jessica Edwards, PhD Winter 2023}

\fancyhead[LE]{\thepage\quad\smallcaps{\newlinetospace{\leftmark}}}
\fancyhead[RO]{\smallcaps{\newlinetospace{\rightmark}}\quad\thepage}

\newread\mysource

\begin{document}