Browse Source

Added part style

pull/1638/head
Armin Ronacher 15 years ago
parent
commit
aa654128cf
  1. 36
      docs/flaskstyle.sty

36
docs/flaskstyle.sty

@ -70,6 +70,42 @@
\ChNumVar{\raggedleft \bfseries\Large} \ChNumVar{\raggedleft \bfseries\Large}
\ChTitleVar{\raggedleft \rm\Huge} \ChTitleVar{\raggedleft \rm\Huge}
\renewcommand\thepart{\@Roman\c@part}
\renewcommand\part{%
\if@noskipsec \leavevmode \fi
\cleardoublepage
\vspace*{8cm}%
\@afterindentfalse
\secdef\@part\@spart}
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >\m@ne
\refstepcounter{part}%
\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
\else
\addcontentsline{toc}{part}{#1}%
\fi
{\parindent \z@ \center
\interlinepenalty \@M
\normalfont
\ifnum \c@secnumdepth >\m@ne
\rm\Large \partname~\thepart
\par\nobreak
\fi
\MakeUppercase{\rm\Huge #2}%
\markboth{}{}\par}%
\nobreak
\vskip 3ex
\@afterheading}
\def\@spart#1{%
{\parindent \z@ \center
\interlinepenalty \@M
\normalfont
\huge \bfseries #1\par}%
\nobreak
\vskip 3ex
\@afterheading}
% use inconsolata font % use inconsolata font
\usepackage{inconsolata} \usepackage{inconsolata}

Loading…
Cancel
Save