Thanks for all your help localghost, it looks like this will solve my appendix problem, however, the \newpagestyle stuff seems to have run into a little snag with my fancyhdr...
I have switched to the nccfancyhdr package, but still can't my page numbers to be in the upper left corner. My old code with fancyhdr was:
Code: Select all
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} %delete the current section for header and footer
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0.0pt}
\fancypagestyle{plain}{}
And my new code (page numbers bottom center, not top right where I want them) is:
Code: Select all
\documentclass[12pt,letterpaper]{report}
\usepackage[plain]{nccfancyhdr}
\usepackage[compact]{titlesec}
\usepackage{sectsty}
\sectionfont{\normalsize}%change section font size from \Large to \normalsize
\subsectionfont{\normalsize}
\subsubsectionfont{\normalsize}
\usepackage[total={6.0in,8.625in},
top=1.25in, left=1.5in, headsep=0.25in, headheight=14.5pt]{geometry}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\setlength{\emergencystretch}{5pt}%5pt DO NOT LET WORDS GO INTO MARGIN!!!
\usepackage{setspace}
\usepackage[sort&compress]{natbib} %this stuff
\bibliographystyle{unsrt}
\renewcommand\bibsection{{\noindent\normalfont\bfseries\Large References}}
\newcommand\bibpreamble{\vspace{1.03cm}}
\usepackage{latexsym}%11 extra symbols
\usepackage{rotating}%for sideways tables
\usepackage{times}
%\usepackage[garamond]{mathdesign}
\usepackage{amsmath,bm}
\usepackage{mathbbol}
\usepackage{verbatim}%needed for verbatim environment used in appendicies
\usepackage{moreverb}%needed for listing environment used in appendicies, same as verbatim but with line #s
\pagestyle{fancy}
\titleformat{\chapter}{\normalfont\bfseries\Large}{Chapter \thechapter.}{.7em}{}
%\titleformat{\chapter}{\normalfont\Huge\bfseries}{\thechapter}{20pt}{\Huge}
\newpagestyle{main}{%
\fancyhf{} %delete the current section for header and footer
\fancyhead[r]{\thepage}
\renewcommand{\headrulewidth}{0.pt}
%\fancypagestyle{plain}{}
}
\newpagestyle{appendix}{%
\titleformat{\chapter}{\normalfont\bfseries\Large}{Appendix \thechapter:}{.7em}{}
}
\usepackage{color}
\definecolor{custom}{rgb}{1, 0, 0}%{.290, .463, .431}
\usepackage[
pdftitle={},
pdfauthor={},
pdfkeywords={},
dvips]{hyperref}
\usepackage[all]{hypcap}%this line makes hyperref point to the top of figs and tables
\hypersetup{
letterpaper=true,
colorlinks=TRUE,
linkcolor=custom,
anchorcolor=custom,
filecolor=custom,
urlcolor=custom,
citecolor=custom,
bookmarksnumbered=true,
pdfhighlight=/N
}
\begin{document}
\pagestyle{main}
\doublespacing
% \pagenumbering{roman}
\pagenumbering{arabic}
\chapter{Title}\label{chap:1}
Hello there, see Appendix~\ref{app:A}, see Apendix~\ref{app:B}
\newpage
\appendix
\pagestyle{appendix}
\chapter{Title}\label{app:A}
Appendix text here, see Chapter~\ref{chap:1}, Appendix~\ref{app:B}.
\newpage
\pagestyle{appendix}
\chapter{Title}\label{app:B}
Another appendix
\end{document}