Skip to content

Commit

Permalink
fix headers in the myriad option
Browse files Browse the repository at this point in the history
  • Loading branch information
kjhealy committed Feb 15, 2017
1 parent 97a76c9 commit 8994a19
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions templates/dataviz-booktemplate-xelatex.tex
Expand Up @@ -146,17 +146,19 @@
\setmonofont[Scale=MatchLowercase]{Input Mono Condensed}

% Change running heads

% Define a new pagestyle
\newfontfamily{\runheadfont}{Myriad Pro Light SemiCondensed}
\DeclareTextFontCommand{\textrunheadfont}{\runheadfont}

\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}

\fancypagestyle{dataviz}{
\fancyhf{}
%\fancyhead[LE]{\runheadfont\thepage\quad{\newlinetospace{\plainauthor}}}
%\fancyhead[RO]{\runheadfont\newlinetospace{\plaintitle}\quad\thepage}
\fancyhead[RE,RO]{\runheadfont\newlinetospace{\plaintitle}\quad\thepage}
\fancyhf{}
\fancyhead[LE]{\runheadfont\thepage\quad{\newlinetospace{\leftmark}}}
\fancyhead[RO]{\runheadfont\newlinetospace{\rightmark}\quad\thepage}
%\fancyhead[RE,RO]{\runheadfont\newlinetospace{\plaintitle}\quad\thepage}
}

\pagestyle{dataviz}
Expand Down

0 comments on commit 8994a19

Please sign in to comment.