change from fancyhdr to titleps

This commit is contained in:
nik gaffney 2015-06-02 14:48:22 +02:00
parent 05e5d8df47
commit b55c36a681

View file

@ -1,6 +1,5 @@
\usepackage{fancyhdr}
\usepackage{fontspec}
\usepackage{titlesec}
\usepackage[pagestyles]{titlesec}
\usepackage{graphicx}
\usepackage{datetime}
@ -36,11 +35,28 @@
%\newfontfamily\sectionfont{Roboto Light}
\newfontfamily\sectionfont{Encode Sans ExtraLight}
\pagestyle{fancy}
\fancyhf{}
\rhead{\sectionfont\small$title-meta$\selectfont}
%\pagestyle{fancy}
%\fancyhf{}
%\rhead{\sectionfont\small$title-meta$\selectfont}
%\lhead{Quattrocento Sans / Encode Sans ExtraLight}
\rfoot{\sectionfont\small{printed: \isodate{\today} \currenttime \selectfont}}
%\rfoot{\sectionfont\small{printed: \isodate{\today} \currenttime \selectfont}}
% convert header to titleps - http://www.tex-tipografia.com/titleps_fancyhdr.html
\newpagestyle{main}[\small]{
\setheadrule{.55pt}%
\sethead[\colorbox{black}{\color{white}{\thepage}}]% even-left
[\chaptertitle]% even-center
[\colorbox{CornflowerBlue}{\thesection}]% even-right
{\colorbox{CornflowerBlue}{\thesection}}% odd-left
{\sectiontitle}% odd-center
{\colorbox{black}{\color{white}{\thepage}}}% odd-right
\setfoot{}{}{\sectionfont\small{printed: \isodate{\today} \currenttime \selectfont}}
}
\pagestyle{main}
%\titleformat*{\subsection}{\sectionfont\fontsize{32}{20}\selectfont}
\titleformat*{\subsubsection}{\sectionfont\fontsize{32}{12}\selectfont}