Generalfancyhdr and APA format

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pepperedmoth
Posts: 9
Joined: Sun Nov 16, 2008 5:32 am

fancyhdr and APA format

Post by pepperedmoth »

Hey all-

I'm trying to get running page numbers in the upper right corner of my document. No problem, right? Just use fancyhdr. BUT when I use this to include the title page in my page numbers, I get two page #1's. This is unclear, so I attach my code output.

Code:

Code: Select all

\usepackage{setspace}
\usepackage{natbib}
\bibpunct{(}{)}{;}{a}{,}{,}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{\textsc{Professional Autonomy} ~~~~~ \thepage}
\lfoot{}
\cfoot{}
\rfoot{}

\begin{document}
\begin{doublespace}

\begin{titlepage}
\thispagestyle{fancy}
\flushleft{\textsc{Running Header: Professional Autonomy}} \\[5cm]
\begin{center}
\Huge{Refusal to Provide Care}\\
\Large{S. Rosemary Waggoner\\College of Nursing\\University of Vermont}
\end{center}
\end{titlepage}

(a) incorporates concepts discussed and learned in this course, 
(b) has a moral/ethical and theoretical foundation, 
(c) uses research findings and other evidence to support your arguments, 
(d) demonstrates your ability to communicate effectively to a professional audience, 
(e) includes critical analysis and, 
(f) explores questions of professional leadership. 

\bibliographystyle{apa}
\bibliography{refs}
\end{doublespace}

\end{document}
As seen below, this labels both my title page and the first page of my document as page #1. So far, no anal-retentive professor has marked me off for this (they're all obsessive about APA format), but I know it's coming. How do I fix this problem?

By the way, I figured out my tables problem of my last posting, for those who read it. Thanks!
Attachments
final_paper.pdf
(22.15 KiB) Downloaded 236 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

fancyhdr and APA format

Post by localghost »

The document class as the most relevant part is missing. Please supplement your code and you will (almost) have created a minimal working example (MWE).


Best regards
Thorsten¹
pepperedmoth
Posts: 9
Joined: Sun Nov 16, 2008 5:32 am

fancyhdr and APA format

Post by pepperedmoth »

Whoops. That was a mistake in the copy paste.

Here again, also with irrelevant packages edited out. I kept the sample text, just for clarity, and the title page, for the same purpose.

Code: Select all

\documentclass{report}
\usepackage{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{\textsc{Professional Autonomy} ~~~~~ \thepage}
\lfoot{}
\cfoot{}
\rfoot{}

\begin{document}


\begin{titlepage}
\thispagestyle{fancy}
\flushleft{\textsc{Running Header: Professional Autonomy}} \\[5cm]
\begin{center}
\Huge{Refusal to Provide Care}\\
\Large{S. Rosemary Waggoner\\College of Nursing\\University of Vermont}
\end{center}
\end{titlepage}

(a) incorporates concepts discussed and learned in this course, 
(b) has a moral/ethical and theoretical foundation, 
(c) uses research findings and other evidence to support your arguments, 
(d) demonstrates your ability to communicate effectively to a professional audience, 
(e) includes critical analysis and, 
(f) explores questions of professional leadership. 

\end{document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

fancyhdr and APA format

Post by localghost »

I can only give you the advice to leave the title page unnumbered. One reason is that this page actually doesn't really belong to the document itself hence it normally gets no number. The other reason is that it just looks bad (in my opinion). If you insist on that, just increase the page counter directly after the titlepage environment.

Code: Select all

\stepcounter{page}
pepperedmoth
Posts: 9
Joined: Sun Nov 16, 2008 5:32 am

Re: fancyhdr and APA format

Post by pepperedmoth »

Thank you! That will solve my problem nicely.

I agree that it looks bad, but it is a requirement. I've lost points on papers for even pettier things. Ugh.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

fancyhdr and APA format

Post by localghost »

pepperedmoth wrote:[...] I agree that it looks bad, but it is a requirement. I've lost points on papers for even pettier things. Ugh.
Perhaps the persons in charge should better think about those things before establishing such rules.
Post Reply