Tuesday, September 16, 2014

Fancy Header

Default Template and Make the rule distance larger
http://tex.stackexchange.com/questions/40270/how-do-i-increase-the-spacing-between-header-text-and-the-headrule-line-with-f

Default Template
\documentclass[chapterprefix=false]{scrreprt}
\usepackage{fancyhdr}
\usepackage{lipsum}
\usepackage[textheight=1.618\textwidth,
lmargin=37mm, rmargin=22mm, driver=pdftex,
heightrounded, headsep=7mm,
footskip=11mm, vmarginratio=1:1]{geometry}

\fancypagestyle{plain}{%
  \fancyhf{}
  \fancyhead[L]{\rule[-2ex]{0pt}{2ex}\small Thesis Title} 
  \fancyhead[R]{\small My Name} 
  \fancyfoot[L]{\small Project Name}
  \fancyfoot[C]{-- \thepage\ --}
  \fancyfoot[R]{\small Submission Date} 
  \renewcommand{\headrulewidth}{0.4pt}
  \renewcommand{\footrulewidth}{0.4pt}}
\pagestyle{plain}
\begin{document} \
lipsum \end{document}

First page and second page different
http://latex-community.org/forum/viewtopic.php?f=47&t=9191