Skip to content
This repository
Newer
Older
100644 83 lines (75 sloc) 2.283 kb
3ac4ec67 »
2010-04-25 Beefed up PDF docs. They actually look like something now.
1 \pagenumbering{arabic}
2 \definecolor{TitleColor}{rgb}{0,0,0}
3 \definecolor{InnerLinkColor}{rgb}{0,0,0}
4
5 \renewcommand{\maketitle}{%
6 \begin{titlepage}%
7 \let\footnotesize\small
8 \let\footnoterule\relax
9 \ifsphinxpdfoutput
10 \begingroup
11 % This \def is required to deal with multi-line authors; it
12 % changes \\ to ', ' (comma-space), making it pass muster for
13 % generating document info in the PDF file.
14 \def\\{, }
15 \pdfinfo{
16 /Author (\@author)
17 /Title (\@title)
18 }
19 \endgroup
20 \fi
21 \begin{flushright}%
22 %\sphinxlogo%
23 {\center
24 \vspace*{3cm}
25 \includegraphics{logo.pdf}
26 \vspace{3cm}
27 \par
28 {\rm\Huge \@title \par}%
29 {\em\LARGE \py@release\releaseinfo \par}
30 {\large
31 \@date \par
32 \py@authoraddress \par
33 }}%
34 \end{flushright}%\par
35 \@thanks
36 \end{titlepage}%
37 \cleardoublepage%
38 \setcounter{footnote}{0}%
39 \let\thanks\relax\let\maketitle\relax
40 %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
41 }
42
43 \fancypagestyle{normal}{
44 \fancyhf{}
45 \fancyfoot[LE,RO]{{\thepage}}
46 \fancyfoot[LO]{{\nouppercase{\rightmark}}}
47 \fancyfoot[RE]{{\nouppercase{\leftmark}}}
48 \fancyhead[LE,RO]{{ \@title, \py@release}}
49 \renewcommand{\headrulewidth}{0.4pt}
50 \renewcommand{\footrulewidth}{0.4pt}
51 }
52
53 \fancypagestyle{plain}{
54 \fancyhf{}
55 \fancyfoot[LE,RO]{{\thepage}}
56 \renewcommand{\headrulewidth}{0pt}
57 \renewcommand{\footrulewidth}{0.4pt}
58 }
59
60 \titleformat{\section}{\Large}%
61 {\py@TitleColor\thesection}{0.5em}{\py@TitleColor}{\py@NormalColor}
62 \titleformat{\subsection}{\large}%
63 {\py@TitleColor\thesubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}
64 \titleformat{\subsubsection}{}%
65 {\py@TitleColor\thesubsubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}
66 \titleformat{\paragraph}{\large}%
67 {\py@TitleColor}{0em}{\py@TitleColor}{\py@NormalColor}
68
69 \ChNameVar{\raggedleft\normalsize}
70 \ChNumVar{\raggedleft \bfseries\Large}
71 \ChTitleVar{\raggedleft \rm\Huge}
72
cbcd15c3 »
2010-05-24 Beefed up latex output. Unfortunately parts look ugly.
73 % use inconsolata font
3ac4ec67 »
2010-04-25 Beefed up PDF docs. They actually look like something now.
74 \usepackage{inconsolata}
cbcd15c3 »
2010-05-24 Beefed up latex output. Unfortunately parts look ugly.
75
76 % fix single quotes, for inconsolata. (does not work)
77 %%\usepackage{textcomp}
78 %%\begingroup
79 %% \catcode`'=\active
80 %% \g@addto@macro\@noligs{\let'\textsinglequote}
81 %% \endgroup
82 %%\endinput
Something went wrong with that request. Please try again.