[5daabd2] | 1 | \definecolor{TitleColor}{rgb}{0,0,0} |
---|
| 2 | \definecolor{InnerLinkColor}{rgb}{0,0,0} |
---|
| 3 | \definecolor{OuterLinkColor}{rgb}{1.0,0.5,0.0} |
---|
| 4 | |
---|
[1ea5fb7] | 5 | \newenvironment{underscoresplit}{\let\underscore\_ |
---|
| 6 | \renewcommand{\_}{\discretionary{\underscore}{}{\underscore}}}{} |
---|
| 7 | |
---|
| 8 | \let\oldtabulary\tabulary |
---|
| 9 | \let\endoldtabulary\endtabulary |
---|
| 10 | |
---|
| 11 | \renewenvironment{tabulary}{\underscoresplit\oldtabulary}{\endoldtabulary\endunderscoresplit} |
---|
| 12 | |
---|
| 13 | |
---|
[5daabd2] | 14 | \renewcommand{\maketitle}{% |
---|
| 15 | \begin{titlepage}% |
---|
| 16 | \let\footnotesize\small |
---|
| 17 | \let\footnoterule\relax |
---|
| 18 | \ifsphinxpdfoutput |
---|
| 19 | \begingroup |
---|
| 20 | % This \def is required to deal with multi-line authors; it |
---|
| 21 | % changes \\ to ', ' (comma-space), making it pass muster for |
---|
| 22 | % generating document info in the PDF file. |
---|
| 23 | \def\\{, } |
---|
| 24 | \pdfinfo{ |
---|
| 25 | /Author (\@author) |
---|
| 26 | /Title (\@title) |
---|
| 27 | } |
---|
| 28 | \endgroup |
---|
| 29 | \fi |
---|
| 30 | \begin{flushright}% |
---|
| 31 | %\sphinxlogo% |
---|
| 32 | {\center |
---|
| 33 | \vspace*{3cm} |
---|
| 34 | \includegraphics{logo.pdf} |
---|
| 35 | \vspace{3cm} |
---|
| 36 | \par |
---|
| 37 | {\rm\Huge \@title \par}% |
---|
| 38 | {\em\LARGE \py@release\releaseinfo \par} |
---|
| 39 | {\large |
---|
| 40 | \@date \par |
---|
| 41 | \py@authoraddress \par |
---|
| 42 | }}% |
---|
| 43 | \end{flushright}%\par |
---|
| 44 | \@thanks |
---|
| 45 | \end{titlepage}% |
---|
| 46 | \cleardoublepage% |
---|
| 47 | \setcounter{footnote}{0}% |
---|
| 48 | \let\thanks\relax\let\maketitle\relax |
---|
| 49 | %\gdef\@thanks{}\gdef\@author{}\gdef\@title{} |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | \fancypagestyle{normal}{ |
---|
| 53 | \fancyhf{} |
---|
| 54 | \fancyfoot[LE,RO]{{\thepage}} |
---|
| 55 | \fancyfoot[LO]{{\nouppercase{\rightmark}}} |
---|
| 56 | \fancyfoot[RE]{{\nouppercase{\leftmark}}} |
---|
[a316b1f] | 57 | \fancyhead[LE,RO]{{\@title, \py@release}} |
---|
| 58 | \fancyhead[RE,LO]{{\chaptername\:\thechapter\:Section\:\thesection}} |
---|
[5daabd2] | 59 | \renewcommand{\headrulewidth}{0.4pt} |
---|
| 60 | \renewcommand{\footrulewidth}{0.4pt} |
---|
| 61 | } |
---|
| 62 | |
---|
| 63 | \fancypagestyle{plain}{ |
---|
| 64 | \fancyhf{} |
---|
| 65 | \fancyfoot[LE,RO]{{\thepage}} |
---|
| 66 | \renewcommand{\headrulewidth}{0pt} |
---|
| 67 | \renewcommand{\footrulewidth}{0.4pt} |
---|
| 68 | } |
---|
| 69 | |
---|
| 70 | \titleformat{\section}{\Large}% |
---|
| 71 | {\py@TitleColor\thesection}{0.5em}{\py@TitleColor}{\py@NormalColor} |
---|
| 72 | \titleformat{\subsection}{\large}% |
---|
| 73 | {\py@TitleColor\thesubsection}{0.5em}{\py@TitleColor}{\py@NormalColor} |
---|
| 74 | \titleformat{\subsubsection}{}% |
---|
| 75 | {\py@TitleColor\thesubsubsection}{0.5em}{\py@TitleColor}{\py@NormalColor} |
---|
| 76 | \titleformat{\paragraph}{\large}% |
---|
| 77 | {\py@TitleColor}{0em}{\py@TitleColor}{\py@NormalColor} |
---|
| 78 | |
---|
| 79 | \ChNameVar{\raggedleft\normalsize} |
---|
| 80 | \ChNumVar{\raggedleft \bfseries\Large} |
---|
| 81 | \ChTitleVar{\raggedleft \rm\Huge} |
---|
| 82 | |
---|
| 83 | \renewcommand\thepart{\@Roman\c@part} |
---|
| 84 | \renewcommand\part{% |
---|
[a316b1f] | 85 | \pagestyle{normal} |
---|
[5daabd2] | 86 | \if@noskipsec \leavevmode \fi |
---|
| 87 | \cleardoublepage |
---|
| 88 | \vspace*{6cm}% |
---|
| 89 | \@afterindentfalse |
---|
| 90 | \secdef\@part\@spart} |
---|
| 91 | |
---|
| 92 | \def\@part[#1]#2{% |
---|
| 93 | \ifnum \c@secnumdepth >\m@ne |
---|
| 94 | \refstepcounter{part}% |
---|
| 95 | \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% |
---|
| 96 | \else |
---|
| 97 | \addcontentsline{toc}{part}{#1}% |
---|
| 98 | \fi |
---|
| 99 | {\parindent \z@ %\center |
---|
| 100 | \interlinepenalty \@M |
---|
| 101 | \normalfont |
---|
| 102 | \ifnum \c@secnumdepth >\m@ne |
---|
| 103 | \rm\Large \partname~\thepart |
---|
| 104 | \par\nobreak |
---|
| 105 | \fi |
---|
| 106 | \MakeUppercase{\rm\Huge #2}% |
---|
| 107 | \markboth{}{}\par}% |
---|
| 108 | \nobreak |
---|
| 109 | \vskip 8ex |
---|
| 110 | \@afterheading} |
---|
| 111 | \def\@spart#1{% |
---|
| 112 | {\parindent \z@ %\center |
---|
| 113 | \interlinepenalty \@M |
---|
| 114 | \normalfont |
---|
| 115 | \huge \bfseries #1\par}% |
---|
| 116 | \nobreak |
---|
| 117 | \vskip 3ex |
---|
| 118 | \@afterheading} |
---|
| 119 | |
---|
| 120 | % use inconsolata font |
---|
[7130ed3] | 121 | \usepackage{charter} |
---|
| 122 | \usepackage[defaultsans]{lato} |
---|
[5daabd2] | 123 | \usepackage{inconsolata} |
---|
| 124 | |
---|
| 125 | % fix single quotes, for inconsolata. (does not work) |
---|
| 126 | %%\usepackage{textcomp} |
---|
| 127 | %%\begingroup |
---|
| 128 | %% \catcode`'=\active |
---|
| 129 | %% \g@addto@macro\@noligs{\let'\textsinglequote} |
---|
| 130 | %% \endgroup |
---|
| 131 | %%\endinput |
---|