3 \usepackage[left=2.5cm,right=2.5cm,top=3cm,bottom=3cm]{geometry}
11 \renewcommand\thepage{\roman{page}}
12 \newcommand\pagefoot{\thepage}
14 %% Set various lengths.
15 \setlength{\parskip}{\medskipamount}
16 \setlength{\parindent}{0pt}
18 %% Set section numbering depth.
19 \setcounter{secnumdepth}{0}
21 %% Set up headers and footers.
25 \renewcommand{\headrulewidth}{0.0pt}
26 \renewcommand{\footrulewidth}{0.0pt}
28 %% Revert to original table of contents.
30 \renewcommand{\tableofcontents}{\py@OldTableofcontents}
37 \textbf{\Huge ${title}}\par
39 \textbf{\LARGE ${author}}\par
41 \includegraphics[width=\textwidth]{${image}}\par
43 \textit{\large ${edition}}\par
45 \textbf{\large ${extra}}\par
53 \fancyfoot[C]{\pagefoot}
56 Authors: ${author}\par
59 Cover: \textit{${imagetitle}} ${imageinfo}
67 \fancyfoot[C]{\pagefoot}
73 \fancyfoot[C]{\pagefoot}
74 \pagenumbering{arabic}
75 \renewcommand\thepage{\arabic{page}}
79 %% Start the main chapter text.
81 \setcounter{secnumdepth}{1}
84 %% Start the appendices
86 \setcounter{secnumdepth}{0}
89 %% Disable standard title (but keep PDF info).
90 \renewcommand{\maketitle}{
93 % These \defs are required to deal with multi-line authors; it
94 % changes \\ to ', ' (comma-space), making it pass muster for
95 % generating document info in the PDF file.
106 %% Fix up index and references.
109 \renewcommand{\theindex}{
113 \addcontentsline{toc}{section}{Index}
116 \renewcommand{\thebibliography}[1]{
119 \py@OldThebibliography{1}
120 \addcontentsline{toc}{section}{References}