-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.tex
More file actions
128 lines (93 loc) · 3.09 KB
/
template.tex
File metadata and controls
128 lines (93 loc) · 3.09 KB
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
\documentclass[10pt,statementpaper]{memoir}
\setstocksize{9in}{6in}
\usepackage{tgpagella}
\usepackage{enumitem}
\setlrmarginsandblock{0.5in}{0.5in}{*}
\setulmarginsandblock{0.6in}{0.6in}{*}
\checkandfixthelayout
\usepackage{etoolbox}
\patchcmd{\quote}{\rightmargin}{\leftmargin 1em \rightmargin}{}{}
\AtBeginEnvironment{quote}{\itshape}
\chapterstyle{southall}
\setlist[enumerate]{leftmargin=2em}
\setlist[itemize]{leftmargin=2em}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
\usepackage[utf8]{inputenc}
\else % if luatex or xelatex
\ifxetex
\usepackage{mathspec}
\else
\usepackage{fontspec}
\fi
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
\fi
% use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
\IfFileExists{microtype.sty}{%
\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
\usepackage[unicode=true]{hyperref}
\hypersetup{
pdfborder={0 0 0},
breaklinks=true}
\urlstyle{same} % don't use monospace font for urls
\usepackage{graphicx,grffile}
\makeatletter
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
\makeatother
% Scale images if necessary, so that they will not overflow the page
% margins by default, and it is still possible to overwrite the defaults
% using explicit options in \includegraphics[width, height, ...]{}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
% set default figure placement to htbp
\makeatletter
\def\fps@figure{htbp}
\makeatother
\begin{document}
\pagestyle{empty}
{\begingroup
\raggedleft
\vspace*{\baselineskip}
{\Huge\itshape How to Teach Programming \\ (And Other Things)}\\[\baselineskip]
{\large\itshape
what everyone in tech ought to know\\ about teaching and learning
}\\[0.2\textheight]
{\large Edited by Greg Wilson}\par
\vfill
{\large Copyright {\copyright} 2017}
\vspace*{\baselineskip}
{\small
Licensed under the Creative Commons - Attribution license (CC-BY-3.0).
\\
See \texttt{https://github.com/gvwilson/teaching} for the source,\\
and \texttt{http://third-bit.com/teaching/} for the online version.
}
\vspace*{4\baselineskip}
\includegraphics{isbn-barcode.pdf}
\endgroup}
\newpage
\pagestyle{empty}
~
\newpage
\addtocontents{toc}{\protect\thispagestyle{empty}}
\tableofcontents
\newpage
\pagestyle{empty}
~
\newpage
\pagestyle{plain}
\pagenumbering{arabic}
$body$
\end{document}