更新了目录中参考书目的示例

更新了目录中参考书目的示例

我正在尝试添加附录五次论目录。附录和附录已经定义,但我无法将它们添加到目录中。我还想知道如何将我的表格交叉引用到我的图表列表和表格列表中。相应的 CLS、TEX 和 sty 如下。谢谢。

\renewcommand*{\tableofcontents}{
  \@@nonchapter{odd}{TABLE OF CONTENTS}{n}{0pt}
  {\leftskip=0pt \noindent\hbox to\textwidth{\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{\hfil Page}\par}
    }
    \renewcommand{\baselinestretch}{2}\reset@font
    \pagestyle{plain}
    \@starttoc{toc}
  }
}
\def\bigtocskip{0.5\baselineskip plus.2\p@}
\def\smalltocskip{0pt}
\def\@dottedtocline#1#2#3#4#5#6{%
  \ifnum #1>\c@tocdepth
  \else
    \vskip #2
    {%
      \leftskip #3
      \rightskip \@tocrmarg
      \parfillskip -\rightskip
      \parindent #3
      \@afterindenttrue
      \interlinepenalty\@M
      \leavevmode
      \@tempdima #4
      \advance\@tempdima \@@padding
      \advance\leftskip \@tempdima
      \hbox{}\hskip -\leftskip
      #5\nobreak
      \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}\hfill
      \nobreak
      \hbox to\@pnumwidth{\hfil\reset@font\rm #6}\par
    }%
  \fi
}
\renewcommand*{\listoftables}{
  \@@nonchapter{next}{LIST OF TABLES}{y}{0pt}
  {\leftskip=0pt \noindent\hbox to\textwidth{Table\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{Table\hfil Page}\par}
    }
    \renewcommand{\baselinestretch}{1}\reset@font
    \@starttoc{lot}
  }
}
\renewcommand{\listoffigures}{
  \@@nonchapter{next}{LIST OF FIGURES}{y}{0pt}
  {\leftskip=0pt \noindent\hbox to\textwidth{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{Figure\hfil Page}\par}
    }
    \renewcommand{\baselinestretch}{1}\reset@font
    \@starttoc{lof}
  }


\documentclass{wuthesis}

% Put your thesis title below.
%
\title{Sample Thesis in Mathematics Department}

% Put your name here.
% First one is the name you want to put on the cover.
% Second is the one you want to use in abstract.
\author{Steven Xiao}{Xiao, Steven}

% Put your Degree here.
% First is long title of degree (used on cover).
% Second is abbreviation for degree (used in abstract).
% Third is the month the degree was (will be) awarded (used on cover
% and abstract).
% Last is the year the degree was (wlll be) awarded (used on cover
% and abstract).
% The degree title for all doctoral candidates is ``Doctor of Philosophy.''
\wudegree{Doctor of Philosophy}{Doctor of Philosophy}{December}{2006}

% Put your advisor's name here.
\majorprof{Cupples Liu}

% List the names of the members of the committee here.
\committee{Cupples Liu, Chair\\Daniel Scott Klazkin\\Jill Goldberg\\Joshua Glatt\\Willam Maas}

% You may put your own abbreviation here.
\input{mydefs}

\begin{document}

\volume

\include{front}
\include{ch01}
\include{ch02}
\include{ch03}
\include{ch04}
\include{bib}

\end{document}

答案1

wuthesis.cls提供自动将附录添加到目录中的方法。使用包将与中定义的命令appendix发生冲突。但是,可以使用包绕过此问题。\appendiceswuthesis.clssavesym

这些选项tocpage自动为附录添加目录条目,并为附录的开始添加单独的页面。

\documentclass{wuthesis}
\usepackage{savesym}
\savesymbol{appendices}
\usepackage[page,toc]{appendix}%

\begin{document}
\tableofcontents
\chapter{First}


\begin{appendices}%
\chapter{First of Appendix}
\end{appendices}%
\end{document}

在此处输入图片描述

更新了目录中参考书目的示例

\documentclass{wuthesis}
\usepackage{tocbibind}%
\usepackage{savesym}
\savesymbol{appendices}
\usepackage[page,toc]{appendix}%
\begin{document}
\tableofcontents
\chapter{First}

\cite{Lam94}%

\begin{appendices}%
\chapter{First of Appendix}
\end{appendices}%
\bibliography{biblio}%
\end{document}

相关内容