Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using \includefile{} to add a preliminary literature review to a thesis proposal. The specifications require that "Appendix" be printed in the upper right hand corner. I tried ending my proposal main like this:

\printbibliography
\rhead{Appendix}
\include{literatureReview}
\end{document}

But it doesn't work. The entire literatureReview file has the header "REFERENCES" in the upper left corner. The proposal main uses a plain page style, and the literatureReview currently has no sections in it. Does anyone know the proper way to do this?


EDIT: Here's a minimal compilable version:

\documentclass{test}

\usepackage[american]{babel}
\usepackage[style=apa]{biblatex}
\usepackage{csquotes}
\usepackage{pdfpages}
\usepackage{fancyhdr} 

\DeclareLanguageMapping{american}{american-apa}

\usepackage{hyperref}

\addbibresource{someBib}

    %which contains:
    %@Article{TakeuchiKoichi05,
%   author={Takeuchi Koichi and Inui Kentaro and Fujita Atsushi and Takeuchi Nao and Abe Shuya},
%   title={Construction of Compositional Lexical Database Based on {L}exical {C}onceptual {S}tructure},
%   journal={IPSJ SIG Notes},
%   publisher={Information Processing Society of {J}apan (IPSJ)},
%   year={2005},
%   month=sep,
%   volume={2005},
%   number={94},
%   pages={123-130},
%}

\title{A Title}
\author{Nathan Glenn}
\begin{document}
\begin{refsection}
\maketitle
%\begin{refsection}


Random citation: \parencite{TakeuchiKoichi05}. 

\printbibliography
\end{refsection}
\clearpage
\markboth{Appendix}{}
\begin{refsection}
\include{literatureReview}
\end{refsection}
\end{document}

And here's the class file I used:

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{test}[2011/5/20 BYU Honors Thesis proposal]

\LoadClass[12pt]{article}

\usepackage[margin=1in]{geometry}

\usepackage{setspace}
\doublespace
\pagestyle{myheadings}
\thispagestyle{plain}
\setlength{\parindent}{30pt}

\global\let\@course\@empty
\renewcommand{\maketitle}{
  \begin{flushright}
    \@author\\
    \ifx\@date\@empty
      \today
    \else
      \@date\\
    \fi
  \end{flushright}

  \begin{center}
    \Large{\@title}\\An Honors Thesis Proposal
    \vspace{6 pc}
  \end{center}
}

literatureReview.tex has no preamble, and does not change the page styles in any way.

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

You can use the \markboth command to obtain the desired mark, so you could use

\clearpage
\markboth{Appendix}{}
\include{literatureReview}

Since you are already loading the fancyhdr package, you can add the following lines to the file literatureReview.tex:

\pagestyle{fancy}
\fancyhead[L,C]{}
\fancyhead[R]{Appendix}
share|improve this answer
    
The "REFERENCES" heading is gone, but there is not "Appendix" in the header. –  Nate Glenn May 29 '11 at 1:04
    
@Nate Glenn: I'll need to see a minimal compilable version of your document, showing all the settings involved in the header/footer generation. You can add this minimal version to your question. –  Gonzalo Medina May 29 '11 at 1:14
    
Done. –  Nate Glenn May 29 '11 at 2:54
    
@Nate Glenn: I've updated my answer with another approach using the fancyhdr package. –  Gonzalo Medina May 29 '11 at 14:55
    
Perfect! Thanks. –  Nate Glenn May 29 '11 at 16:09
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.