I've used latex a few years ago for creating a report, now I am creating an article. I changed the formatting to remove the contents page and numbering. However, once I created my appendix I lose the "Appendix A" at the top of the page to simply "A". How do I get the prefix "Appendix" back? I must have removed it somehow when I eliminated my contents.
Code 1, appendix file. Code 2, main file.
Thank you.
Code: Select all
\section{Data}
\centerline{\rule{149mm}{.02in}}
\vspace{2cm}
Stuff.
Code: Select all
\documentclass[11pt,a4paper]{article}
% Package for figures
\usepackage{lscape,graphicx}
\usepackage{url}
%\usepackage{times}
\usepackage{alltt}
\usepackage{subfigure}
\usepackage{mathptmx} % if you have maths
\newcommand{\PD} [2]{\frac{\partial #1}{\partial #2}}
\usepackage{blindtext}
% Various parameters
\setlength{\hoffset}{0in}
\setlength{\textheight}{8.75in}
\setlength{\textwidth}{6.25in}
\setlength{\headsep}{0.5in}
\setlength{\footskip}{0.5in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\renewcommand{\baselinestretch}{1.5}
\setlength{\footnotesep}{3ex}
\setcounter{secnumdepth}{-1}
\begin{document}
\thispagestyle{empty}
\include{cover} % This is the front page
\pagestyle{plain}
\pagenumbering{roman}
\setcounter{page}{1}
\addtolength{\parskip}{\baselineskip}
\setlength{\parindent}{0in}
% Set up page numbering
\pagenumbering{arabic}
\setcounter{page}{1}
\include{abstract}
\include{intro}
\include{background}
\include{methods}
\include{results}
% include the bibliography
\addcontentsline{toc}{chapter}{\numberline { }Bibliography}
\bibliographystyle{plain}
\bibliography{refs}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{4}
% include the appendices
\appendix
\include{appendixa}
\end{document}