-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathpreamble.tex
46 lines (41 loc) · 1.35 KB
/
preamble.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
\usepackage{booktabs}
\hyphenation{thatshouldnot}
\usepackage{makeidx}
\makeindex
\newcommand{\subtitle}[1]{
\gdef\@subtitle{#1}
}
\renewcommand{\maketitlepage}{%
\cleardoublepage%
{%
\sffamily%
\begin{fullwidth}%
\fontsize{18}{20}\selectfont\par\noindent\textcolor{darkgray}{\allcaps{\thanklessauthor}}%
\vspace{7.5pc}%
\fontsize{36}{40}\selectfont\par\noindent\textcolor{darkgray}{\allcaps{Introduction to\break Empirical Bayes}}%
\vspace{5pc}%
\fontsize{18}{20}\selectfont\par\noindent\textcolor{darkgray}{Examples from Baseball Statistics}%
\vspace{6pc}%
\begin{center}
\includegraphics[width=\textwidth]{images/baseball.jpg}
\end{center}
\vfill%
\fontsize{14}{16}\selectfont\par\noindent\allcaps{\thanklesspublisher}%
\end{fullwidth}%
}
\thispagestyle{empty}%
\clearpage%
}
% From "user11232" at:
% http://tex.stackexchange.com/questions/167526/how-to-write-dedication-properly
\newenvironment{dedication}
{%\clearpage % we want a new page %% I commented this
\thispagestyle{empty}% no header and footer
\vspace*{\stretch{1}}% some space at the top
\itshape % the text is in italics
\raggedleft % flush to the right margin
}
{\par % end the paragraph
\vspace{\stretch{3}} % space at bottom is three times that at the top
\clearpage % finish off the page
}