Skip to content
Myr

flaskstyle.sty

This file

Path

docs/flaskstyle.sty

124 lines · 3.3 KiB

Last changed by

Merge branch '0.12-maintenance' into 1.0-maintenanceDavid Lordbefore adoptiona35a97e

History of this file

Take it

1\definecolor{TitleColor}{rgb}{0,0,0}2\definecolor{InnerLinkColor}{rgb}{0,0,0}34% Replace Unicode character 'PARTY POPPER' (U+1F389) with a non-breaking space.5% pdfLaTeX doesn't support Unicode.6\DeclareUnicodeCharacter{1F389}{\nobreakspace}78\renewcommand{\maketitle}{%9  \begin{titlepage}%10    \let\footnotesize\small11    \let\footnoterule\relax12    % Apply following fix only on PDF output, i.e. pdfoutput macro is not 13    % undefined14    \ifx\pdfoutput\undefined\else15      \begingroup16      % This \def is required to deal with multi-line authors; it17      % changes \\ to ', ' (comma-space), making it pass muster for18      % generating document info in the PDF file.19      \def\\{, }20      \pdfinfo{21        /Author (\@author)22        /Title (\@title)23      }24      \endgroup25    \fi26    \begin{flushright}%27      %\sphinxlogo%28      {\center29        \vspace*{3cm}30      	\includegraphics{logo.pdf}31        \vspace{3cm}32	\par33        {\rm\Huge \@title \par}%34        {\em\LARGE \py@release\releaseinfo \par}35        {\large36         \@date \par37         \py@authoraddress \par38        }}%39    \end{flushright}%\par40    \@thanks41  \end{titlepage}%42  \cleardoublepage%43  \setcounter{footnote}{0}%44  \let\thanks\relax\let\maketitle\relax45  %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}46}4748\fancypagestyle{normal}{49  \fancyhf{}50  \fancyfoot[LE,RO]{{\thepage}}51  \fancyfoot[LO]{{\nouppercase{\rightmark}}}52  \fancyfoot[RE]{{\nouppercase{\leftmark}}}53  \fancyhead[LE,RO]{{ \@title, \py@release}}54  \renewcommand{\headrulewidth}{0.4pt}55  \renewcommand{\footrulewidth}{0.4pt}56}5758\fancypagestyle{plain}{59  \fancyhf{}60  \fancyfoot[LE,RO]{{\thepage}}61  \renewcommand{\headrulewidth}{0pt}62  \renewcommand{\footrulewidth}{0.4pt}63}6465\titleformat{\section}{\Large}%66            {\py@TitleColor\thesection}{0.5em}{\py@TitleColor}{\py@NormalColor}67\titleformat{\subsection}{\large}%68            {\py@TitleColor\thesubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}69\titleformat{\subsubsection}{}%70            {\py@TitleColor\thesubsubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}71\titleformat{\paragraph}{\large}%72            {\py@TitleColor}{0em}{\py@TitleColor}{\py@NormalColor}7374\ChNameVar{\raggedleft\normalsize}75\ChNumVar{\raggedleft \bfseries\Large}76\ChTitleVar{\raggedleft \rm\Huge}7778\renewcommand\thepart{\@Roman\c@part}79\renewcommand\part{%80   \pagestyle{plain}81   \if@noskipsec \leavevmode \fi82   \cleardoublepage83   \vspace*{6cm}%84   \@afterindentfalse85   \secdef\@part\@spart}8687\def\@part[#1]#2{%88    \ifnum \c@secnumdepth >\m@ne89      \refstepcounter{part}%90      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%91    \else92      \addcontentsline{toc}{part}{#1}%93    \fi94    {\parindent \z@ %\center95     \interlinepenalty \@M96     \normalfont97     \ifnum \c@secnumdepth >\m@ne98       \rm\Large \partname~\thepart99       \par\nobreak100     \fi101     \MakeUppercase{\rm\Huge #2}%102     \markboth{}{}\par}%103    \nobreak104    \vskip 8ex105    \@afterheading}106\def\@spart#1{%107    {\parindent \z@ %\center108     \interlinepenalty \@M109     \normalfont110     \huge \bfseries #1\par}%111     \nobreak112     \vskip 3ex113     \@afterheading}114115% use inconsolata font116\usepackage{inconsolata}117118% fix single quotes, for inconsolata. (does not work)119%%\usepackage{textcomp}120%%\begingroup121%%  \catcode`'=\active122%%  \g@addto@macro\@noligs{\let'\textsinglequote}123%%  \endgroup124%%\endinput