Putting "Appendix Figure" instead of "Figure" at top of pages
April 24, 2010
Mark Senn

Putting "Appendix Figure" instead of "Figure" at top of pages.

1. Put

% Change \listoffigures to print "Figure" or "Appendix Figure"
% on each page as appropriate.  Put
%
%     \addcontentsline{lof}{\def\prefix{Appendix }}
%     \newpage
%
% (with a totally blank line above and below) right after your
% \appendices command in your thesis.tex file.
\makeatletter
\def\prefix{}
\renewcommand{\listoffigures}{
  \@@nonchapter{next}{LIST OF FIGURES}{y}{0pt}
  {\leftskip=0pt \noindent\hbox to\textwidth{\prefix Figure\hfil Page}\par}
  {%
    \output={
      \let \par \@@par
      \ifnum \outputpenalty<-\@M
        \@specialoutput
      \else
        \@makecol
        \@opcol
        \@startcolumn
        \@whilesw \if@fcolmade \fi
          {%
           \@opcol\@startcolumn}%
      \fi
      \ifnum \outputpenalty>-\@Miv
        \ifdim \@colroom<1.5\baselineskip
          \ifdim \@colroom<\textheight
            \@latex@warning@no@line{Text page \thepage\space
              contains only floats}%
            \@emptycol
          \else
            \global \vsize \@colroom
          \fi
        \else
          \global \vsize \@colroom
        \fi
      \else
        \global \vsize \maxdimen
      \fi
      {\leftskip=0pt \noindent\hbox to\textwidth{\prefix Figure\hfil Page}\par}
    }
    \renewcommand{\baselinestretch}{1}\reset@font
    \@starttoc{lof}
  }
}
\makeatother
followed by a blank line immediately before your \listoffigures command in your front.tex file.

2. Right before your first figure in the first or only appendix put

    \addtocontents{lof}{\protect\def\protect\prefix{Appendix }}
    \addtocontents{lof}{\vskip 12pt}
    \addtocontents{lof}{\noindent Appendix Figure\hfill Page}
to start appendix figures on this list of figures page, or put
    \addtocontents{lof}{\protect\def\protect\prefix{Appendix }}
    \addtocontents{lof}{\protect\newpage}
to start appendix figures on the next list of figures page.

Thanks to Nico Gross for pointing out problems with these instructions that have now been corrected.

Revised: April 24, 2010
Created: July 25, 2007