forked from bogdanb/hpmor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hp-hacks.tex
177 lines (144 loc) · 5.56 KB
/
hp-hacks.tex
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
\fboxrule=1pt
\fboxsep=-1pt
\newcommand{\letterAddress}[1]{\pagebreak[1]\noindent{}#1\nopagebreak[4]\par}
\newcommand{\letterClosing}[2][\vskip 1\baselineskip]{\nopagebreak[4]#1\par\nopagebreak[5]\noindent#2}
\newenvironment{writtenNote}{%\parindent=1cm%
\vskip 1\baselineskip plus 1\baselineskip minus 1\baselineskip%
\begin{adjustwidth}{\parindent}{\parindent}%
\par\noindent\itshape}
{\end{adjustwidth}\vskip 1\baselineskip plus 1\baselineskip minus 1\baselineskip}
\newcommand{\shout}[1]{{\scshape #1}}
\newcommand{\scream}[1]{\MakeUppercase{#1}}
\newcommand{\abbrev}[1]{{\scshape \MakeLowercase{#1}}}
\newcommand{\headline}[1]{\begin{center}\scshape #1\end{center}}
\newcommand{\inlineheadline}[1]{{\scshape #1}}
\newcommand{\prophecy}[1]{\shout{#1}}
\newenvironment{headlines}{
\newcommand{\header}[1]{\begin{SingleSpace}\upshape ##1\end{SingleSpace}}
\let\hmorSavedLabel\label
\renewcommand{\label}[1]{{\upshape\itshape ##1}}%[1]{\emph{##1})
\begin{Spacing}{0.75}
\begin{center}
\scshape
\nonzeroparskip
}{
\end{center}
\end{Spacing}
\let\label\hmorSavedLabel
%~ \SingleSpacing
}
\newcommand{\accronym}[1]{#1}
\newcommand{\emcap}[1]{#1}
\newcommand{\AM}{{\scshape am}\xspace}
\newcommand{\PM}{{\scshape pm}\xspace}
\def\tq{{\small\raise1ex\hbox{3}\normalsize\kern-.2ex/\small\kern-.45ex\lower.1ex\hbox{4}\normalsize\spacefactor1000 }\xspace}%
%\newcommand{\st}{$^\mbox{st}$\xspace}
\newcommand{\superscript}[1]{\ensuremath{^{\textrm{#1}}}}
\newcommand{\subscript}[1]{\ensuremath{_{\textrm{#1}}}}
%\newcommand{\St}[0]{\superscript{st}\xspace}
%\newcommand{\Nd}[0]{\superscript{nd}\xspace}
%\newcommand{\Rd}[0]{\superscript{rd}\xspace}
%\newcommand{\Th}[0]{\superscript{th}\xspace}
\newcommand{\St}[0]{{st}\xspace}
\newcommand{\Nd}[0]{{nd}\xspace}
\newcommand{\Rd}[0]{{rd}\xspace}
\newcommand{\Th}[0]{{th}\xspace}
\newcommand{\SPHEW}{{\abbrev{SPHEW}}\xspace}
% \partschapter{The Stanford Prison Experiment}{TSPE}{XIII}{Aftermaths}
% TOC: TSPE part XIII: Aftermaths
% Page header: The Stanford Prison Experiment XIII: \\? Aftermaths
% Title: The Stanford Prison Experiment, Part XIII: \\? Aftermaths
\newcommand{\namedpartchapter}[4]{%
\chapter[%
\texorpdfstring{%
\abbrev{#2, part #3}: #4}{%
#2, part #3: #4}][%
\mbox{#1 #3:} \mbox{#4}]{%
#1, Part~#3:\protect\linebreak[1] #4}%
}
\newcommand{\partchapter}[2]{%
\chapter[\texorpdfstring{#1, \abbrev{part #2}}{#1, part #2}]%
[#1 #2]{#1, Part~#2}}
\newcommand{\partschapter}[2]{\chapter[#1, \texorpdfstring{\abbrev{parts #2}}{parts #2}][#1 #2]{#1, Parts~#2}}
% 1 - picture filename
% 2 - arguments for includegraphics
% 3 - text snippet for refererence
% 4 - author’s title
% 5 - author’s name
% 6 - url
\newcommand{\illustration}[6]{%
%~ \begin{center}%
%~ \phantomsection\label{fa:p\thepage}\nopagebreak%
%~ \hyperref[illustrations]{\includegraphics[#2]{#1}}%
%~ \pagenote[#3]{\textit{#4}, by \textsc{#5}, from \protect\par\url{#6}}%
%~ \end{center}
}
%~ \newfontface\miscfont[ExternalLocation]{Miscelanea.ttf}
%~ \def\ztar{\ \kern-.5ex\lower.5ex\hbox{\miscfont\large *}}
% Draws a “magic star”, used as a decoration
\newcommand{\Star}{{\fontspec[ExternalLocation]{Miscelanea.ttf}*}}
% Draws three “magic stars”, used as a decoration everywhere
\def\Stars{{\large\Star\kern-.6ex\lower1.3ex\hbox{\large\Star}\kern-.1ex\raise.2ex\hbox{\tiny\Star}\spacefactor1000}}
% \sbreak makes the text break with centered stars in it, used as a separator in many chapters
\def\sbreakit{\leavevmode\unskip\unskip\unskip\unskip\unskip
\mbox{}\nobreak\hfill\mbox{}\allowbreak\rule{.60\textwidth}{.0pt}\par%
\vskip 0pt plus 2\baselineskip\noindent{%
\parbox[c][0pt][c]{\textwidth}{%
\hfil \hbox{\lower14pt\hbox{\normalsize\Stars}}%
}%
}%
\vskip 0pt plus 2\baselineskip%
\par\rule{.5\textwidth}{.0pt}\vskip1pt\noindent}
\def\sbreak{\unskip\unskip\unskip\unskip\unskip
\mbox{}\nobreak\hfill\mbox{}\allowbreak\rule{.60\textwidth}{.0pt}\par%
\vskip 0pt plus 2\baselineskip\noindent{%
\parbox[c][0pt][c]{\textwidth}{%
\hfil \hbox{\lower14pt\hbox{\normalsize\Stars}}%
}%
}%
\vskip 0pt plus 2\baselineskip%
\par\rule{.5\textwidth}{.0pt}\vskip1pt\noindent}
\newcommand{\hackChXV}{{\centering \MakeUppercase{Transfiguration is not permanent!}}}
\renewcommand{\hackChXV}[1]{
\vskip 0pt plus .5cm
\begin{center}
\Large
\fontspec[ExternalLocation,Color=AA0000]{Whiteboard}
\MakeUppercase{#1}
\settowidth{\versewidth}{\Large \MakeUppercase{Transfiguration is not permanent!}}
\vskip -1ex
\addfontfeature{Color=2020FF}
\resizebox{\versewidth}{.6ex}{\rotatebox{90}{I}}
\end{center}
\vskip 0pt plus .5cm
}
\newcommand{\hackChDXIV}[2]{%
%~ \vskip 0\baselineskip plus 1\baselineskip
\noindent\hfill\scalebox{#2}{#1}\hfill\mbox{}%
\vskip 1\baselineskip plus 1\baselineskip
}
\newlength{\Auxa}
\newcommand{\hackChDXIVa}{
\fontspec[ExternalLocation]{RingBearer}
\settowidth{\versewidth}{\mbox{the}}
Lord\scalebox{.40}{\parbox[b]{\versewidth}{
\centering of\\\nointerlineskip\vskip 4pt the}}Ratîonalît\raisebox{-.32ex}{Y}
}
\newcommand{\hackChDXIVb}{
\fontspec[ExternalLocation]{NarniaBLL}
456}
\newcommand{\hackChDXIVd}{
\fontspec[ExternalLocation]{Thundercats}
ThunderSmarts}
\newcommand{\hackChDXIVh}{
\fontspec[ExternalLocation]{Twilight}
Utilitarian Twilight}
\newenvironment{underfull}{\hbadness=10000}{\hbadness=1000}
\hbadness=10000
%
% In cases where the original text didn’t line-break nicely, I did (minimal) rewordings. This
% macro was used to mark them. The first argument is the original text (ignored), and the
% second holds the replacement.
%
\newcommand{\replacement}[2]{#2}
\newcommand{\splitment}[3]{\discretionary{#1}{#2}{#3}}