move from work dir
This commit is contained in:
50
clade/includes/pagelayout.tex
Normal file
50
clade/includes/pagelayout.tex
Normal file
@ -0,0 +1,50 @@
|
||||
%%% Headers and page styles
|
||||
\usepackage[pagestyles]{titlesec}
|
||||
\usepackage{fancyhdr}
|
||||
\setlength{\headheight}{15.2pt}
|
||||
|
||||
% ourbook style with fancy headers and chapter headings
|
||||
\fancypagestyle{ourbook}{
|
||||
% headers
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
\renewcommand{\printchaptername}{}
|
||||
\renewcommand{\chapternamenum}{}
|
||||
\renewcommand{\printchapternum}{}
|
||||
\renewcommand{\printchaptertitle}[1]{%
|
||||
\TitleFont\huge ##1}
|
||||
\setsecheadstyle{\TitleFont}
|
||||
\renewcommand{\partnamefont}{\DisplayFont\huge}
|
||||
\renewcommand{\partnumfont}{\DisplayFont\huge}
|
||||
\renewcommand{\parttitlefont}{\DisplayFont\Huge}
|
||||
\renewcommand{\chaptername}{}
|
||||
\renewcommand{\thechapter}{}
|
||||
\setlength{\parskip}{0pt}
|
||||
\fancyhf{}
|
||||
\fancyhf[FRO,FLE]{\thepage}
|
||||
\fancyhf[HRO]{\DisplayFont\leftmark}
|
||||
\fancyhf[HLE]{\DisplayFont\rightmark}
|
||||
}
|
||||
\nopartblankpage
|
||||
\makeatletter
|
||||
\renewcommand*{\beforepartskip}{\null\vfill\thispagestyle{empty}}
|
||||
\renewcommand*{\afterpartskip}{\par\vskip1cm%
|
||||
\@afterindentfalse\@afterheading}
|
||||
\makeatother
|
||||
|
||||
% plain style with only page num
|
||||
\fancypagestyle{plain}{
|
||||
\fancyhf{}
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
\renewcommand{\footrulewidth}{0pt}
|
||||
%\fancyhf[FRO,FLE]{\thepage}
|
||||
}
|
||||
|
||||
% single space after periods
|
||||
\frenchspacing
|
||||
|
||||
% Attempt justification at all costs
|
||||
\sloppy
|
||||
|
||||
% Widows and orphans
|
||||
\widowpenalty=10000
|
||||
\clubpenalty=10000
|
||||
Reference in New Issue
Block a user