Skip to content

Instantly share code, notes, and snippets.

@mattfoster
Created August 19, 2008 13:23
Show Gist options
  • Save mattfoster/6175 to your computer and use it in GitHub Desktop.
Save mattfoster/6175 to your computer and use it in GitHub Desktop.
\usepackage{fancyhdr} % Go for customized headings
\usepackage{titlesec}
\usepackage{sectsty}
\setlength{\oddsidemargin}{1.4cm}
\setlength{\evensidemargin}{1.4cm}
\setlength{\textwidth}{15cm}
\setlength{\topmargin}{10pt}
% Need these:
\setlength{\headheight}{10pt}
\setlength{\headsep}{20pt}
\setlength{\textheight}{23cm}
\setlength{\parindent}{0pt}
\setlength{\parskip}{\baselineskip}
% Sans section titles
\allsectionsfont{\sffamily}
\pagestyle{fancy}
\fancyhf{}
\lhead{\sffamily{\rightmark}}
\cfoot{\sffamily{\thepage}}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
\titleformat{\chapter}[display]
{\sffamily\bfseries\Large}
{\filleft\ \Huge\thechapter}
{4ex}
{\titlerule
\vspace{2ex}%
\filright}
[\vspace{2ex}%
\titlerule]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment