Here's an option using the titlesec
package:
I've used the general format of the titleformat
command:
% from the titlesec package
%\titleformat{ command }
% [ shape ]
% { format }{ label }{ sep }{ before-code }[ after-code ]
You can find more information by studying the documentation, and by viewing other similar questions on this site.
Here's a complete MWE to play with:
% arara: pdflatex
\documentclass{report}
\usepackage{lipsum}
\usepackage[explicit]{titlesec}
% title format for the chapter
\titleformat{\chapter}
{\bfseries\large}
{}
{0pt}
{\titlerule[3pt]~\raisebox{-1.5pt}{\sc{\chaptername}~\thechapter}~\titlerule[3pt]%
\\\vspace{.05cm}\titlerule\\\filcenter #1 \\\vspace{.25cm}\titlerule}
\begin{document}
\chapter{First chapter}
\lipsum[1]
\chapter{Second chapter}
\lipsum[2]
\end{document}
You mention that you might like to see other ideas; here's another one, again using the titlesec
package but without the explicit
option - I have used the tcolorbox
package to put a box around the chapter number. I don't know if I'd recommend it for a thesis, but it might give you some further ideas:
Here's the code:
% arara: pdflatex
% !arara: indent: {overwrite: yes}
\documentclass{report}
\usepackage{lipsum}
\usepackage{titlesec}
\usepackage{tcolorbox}
\tcbuselibrary{skins}
% title format for the chapter
% custom chapter
\titleformat{\chapter}
{\normalfont\Large\filleft\bfseries} % format applied to label+text
{} % label
{1pc} % horizontal separation between label and title body
{%
% draw a box around the chapter number
\begin{tcolorbox}[
enhanced,flushright upper,
boxrule=1.4pt,
colback=white,colframe=black!50!yellow,
drop fuzzy midday shadow=black!50!yellow,
width=2.8cm]
\resizebox{2cm}{!}{\color{gray!80}\thechapter}%
\end{tcolorbox}\Huge} % before the title body
[] % after the title body
\begin{document}
\chapter{First chapter}
\lipsum[1]
\chapter{Second chapter}
\lipsum[2]
\end{document}
If you don't set a proper head height, fancyhdr
reports the following:
Package Fancyhdr Warning: \headheight is too small (XX.Xpt):
Make it at least YY.YYYYpt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.
As such, the newly-set \headheight
will be the same throughout the document. To avoid this, I've created the following minimal document that sets a consistent head height, adding a vertical space (gap) on the first page to simulate a larger header:
\documentclass{article}
\usepackage{fancyhdr,datetime,geometry,lipsum,graphicx}
%%%%%%%%%%%%%%%%%%date in format Sunday, October 25, 2011
\usdate
\def\theday {\dayofweekname{\day}{\month}{\year}}
\def\mydate {\theday , \today}
%%%%%%%%%%return address%%%%%%%%%%
\def\myname {Frank Thorne}
\def\mydeptname {Department of Mathematics}
\def\myaffiliation {University of South Carolina}
\def\mystreet {1523 Greene Street}
\def\mycitystatezip {Columbia,~SC \quad 29208}
\def\myphone {\textit{Phone:} (803)404-4057 (home)}
\def\office {(803)777-4224}
\def\fax {\textit{Fax:}(803)777-3783}
\def\email {thorne@math.sc.edu}
\def\url {\texttt{http://www.math.sc.edu/~thornef}} % NOTE: use $\sim$ for tilde
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%margins%%%%%%%%%%%%%%%%%%
\geometry{
margin = 1in,
headheight = 13.5pt
}
\setlength{\parindent}{0pt} %controls how the indentation of new paragraphs behaves
\setlength{\parskip}{6pt} %controls the space between paragraphs
%%%%%%%%%%%%%%%%letterhead%%%%%%%%%%%%%%%%
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\pagestyle{fancy}%
\fancypagestyle{firstpage}{
\fancyhf{}% Clear header/footer
%%%usc logo
\fancyhead[L]{\raisebox{\dimexpr-\height+\baselineskip}[0pt][0pt]{\includegraphics[width=2.5in]{example-image}}}
%%%%%%%%%%return address on right%%%%%%%
\fancyhead[R]{\leavevmode\footnotesize\itshape%
\begin{tabular}[t]{l@{}}
\myname \\ \mydeptname \\
\myaffiliation \\ \mystreet \\
\mycitystatezip \\ \email \\[\normalbaselineskip]
\mydate
\end{tabular}}
}
\begin{document}
\thispagestyle{firstpage}
\vspace*{8\baselineskip}
\lipsum[1-10]
\bigskip
\hspace{.5\textwidth}%
\begin{tabular}{@{}l}
Sincerely, \\[2\normalbaselineskip]
Frank Thorne \\
\textit{Assistant Professor of Mathematics}
\end{tabular}
\end{document}
I've used geometry
to adjust the page layout - it's just easier/more convenient.
Best Answer
fancyhdr has nothing to do with the chapter headings; it controls the typesetting of page header and footer.
In order to change the chapter headers, a good source of examples is the package titlesec
For example:
(slightly modified from your comment).