Skip to content
Myr

flaskstyle.sty

This file

Path

docs/flaskstyle.sty

118 lines · 3.0 KiB

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 22af78a point at it.

Removed outdated sentence in the testing docsArmin Ronacherbefore adoption22af78a

lines 1–118why, one step back
1\definecolor{TitleColor}{rgb}{0,0,0}
2\definecolor{InnerLinkColor}{rgb}{0,0,0}34\renewcommand{\maketitle}{%5 \begin{titlepage}%6 \let\footnotesize\small7 \let\footnoterule\relax8 \ifsphinxpdfoutput9 \begingroup10 % This \def is required to deal with multi-line authors; it11 % changes \\ to ', ' (comma-space), making it pass muster for12 % generating document info in the PDF file.13 \def\\{, }14 \pdfinfo{15 /Author (\@author)16 /Title (\@title)17 }18 \endgroup19 \fi20 \begin{flushright}%21 %\sphinxlogo%22 {\center23 \vspace*{3cm}24 \includegraphics{logo.pdf}25 \vspace{3cm}26 \par27 {\rm\Huge \@title \par}%28 {\em\LARGE \py@release\releaseinfo \par}29 {\large30 \@date \par31 \py@authoraddress \par32 }}%33 \end{flushright}%\par34 \@thanks35 \end{titlepage}%36 \cleardoublepage%37 \setcounter{footnote}{0}%38 \let\thanks\relax\let\maketitle\relax39 %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}40}4142\fancypagestyle{normal}{43 \fancyhf{}44 \fancyfoot[LE,RO]{{\thepage}}45 \fancyfoot[LO]{{\nouppercase{\rightmark}}}46 \fancyfoot[RE]{{\nouppercase{\leftmark}}}47 \fancyhead[LE,RO]{{ \@title, \py@release}}48 \renewcommand{\headrulewidth}{0.4pt}49 \renewcommand{\footrulewidth}{0.4pt}50}5152\fancypagestyle{plain}{53 \fancyhf{}54 \fancyfoot[LE,RO]{{\thepage}}55 \renewcommand{\headrulewidth}{0pt}56 \renewcommand{\footrulewidth}{0.4pt}57}5859\titleformat{\section}{\Large}%60 {\py@TitleColor\thesection}{0.5em}{\py@TitleColor}{\py@NormalColor}61\titleformat{\subsection}{\large}%62 {\py@TitleColor\thesubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}63\titleformat{\subsubsection}{}%64 {\py@TitleColor\thesubsubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}65\titleformat{\paragraph}{\large}%66 {\py@TitleColor}{0em}{\py@TitleColor}{\py@NormalColor}6768\ChNameVar{\raggedleft\normalsize}69\ChNumVar{\raggedleft \bfseries\Large}70\ChTitleVar{\raggedleft \rm\Huge}7172\renewcommand\thepart{\@Roman\c@part}73\renewcommand\part{%74 \pagestyle{plain}75 \if@noskipsec \leavevmode \fi76 \cleardoublepage77 \vspace*{6cm}%78 \@afterindentfalse79 \secdef\@part\@spart}8081\def\@part[#1]#2{%82 \ifnum \c@secnumdepth >\m@ne83 \refstepcounter{part}%84 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%85 \else86 \addcontentsline{toc}{part}{#1}%87 \fi88 {\parindent \z@ %\center89 \interlinepenalty \@M90 \normalfont91 \ifnum \c@secnumdepth >\m@ne92 \rm\Large \partname~\thepart93 \par\nobreak94 \fi95 \MakeUppercase{\rm\Huge #2}%96 \markboth{}{}\par}%97 \nobreak98 \vskip 8ex99 \@afterheading}100\def\@spart#1{%101 {\parindent \z@ %\center102 \interlinepenalty \@M103 \normalfont104 \huge \bfseries #1\par}%105 \nobreak106 \vskip 3ex107 \@afterheading}108109% use inconsolata font110\usepackage{inconsolata}111112% fix single quotes, for inconsolata. (does not work)113%%\usepackage{textcomp}114%%\begingroup115%% \catcode`'=\active116%% \g@addto@macro\@noligs{\let'\textsinglequote}117%% \endgroup118%%\endinput