附录前的目录中的“章节”一词

附录前的目录中的“章节”一词

我想删除目录中附录列表上方的单词“CHAPTERS:”

MWE 是

\documentclass[ms]{osudissert96}
\usepackage{amssymb,amsfonts,amsmath,amscd,mathrsfs}
\usepackage{url}
\usepackage[dvips]{color}%colortext
\usepackage{longtable}% Using longtable environment
\usepackage{ifthen}% Gives \ifthenelse
\usepackage{graphicx}
\usepackage[labelfont=bf]{caption}
\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{multirow}
\usepackage{tablefootnote}
\graphicspath{{figures/}}% Define the path to the figures colorlinks,
\usepackage[]{mcode}
\usepackage{subcaption}
%\usepackage[toc,page]{appendix}
\usepackage[titletoc,toc,page]{appendix}
\newtheorem{mydef}{Definition}
\usepackage{acronym}
\usepackage{booktabs}


% Fix referencing of nested enumerations (put a dot between counters)
\makeatletter
\renewcommand{\theenumii}{\arabic{enumii}}
\renewcommand{\labelenumii}{\theenumi.\theenumii}
\renewcommand{\p@enumii}{\theenumi.}
\makeatother


\makeatletter \@addtoreset{footnote}{chapter} \makeatother % Clear the footnote counter at every new chapter

% The following adds the hyperlinks and makes the page navigator in the pdf viewer cool
\usepackage[breaklinks, hyperindex,pdfborder={0 0 0}]{hyperref}

% This will make chapter titles show up in uppercase (however, they will be normal case in the TOC)
\renewcommand\typesetChapterTitle[1]{\uppercase{#1}}

% Notation:
%\def\listofnotation{\input symbols.tex \clearpage}
%\def\addnotation #1 #2#3{#1\> \parbox{5in}{#2 \dotfill  \pageref{#3}}\\}
%\def\newnot#1{\label{#1}}





%% To speed up compilation, you can comment all commands that include chapters you're interested in till you finish each chapter separately, or use the includeonly command
%\includeonly{ch1-intro}

\include{commands}


\begin{document}

\setcounter{tocdepth}{3}

\tableofcontents
\listoffigures
\listoftables
\newpage


\chapter{CH1}

\renewcommand\pagenumbering[1]{}
\begin{appendices}

\chapter{MATLAB Code}\label{App:Matlab_Code}
\end{appendices}
\end{document}

答案1

我已下载以下文件以便能够编译您的 MWE:

  1. http://www2.ece.ohio-state.edu/ips/home/resources/osudissert96.cls
  2. http://www2.ece.ohio-state.edu/ips/home/resources/osudissert96-mods.sty
  3. http://web.mit.edu/~paul_s/www/14.170/matlab/mcode.sty

\@chapter问题出在文件中的定义osudissert96-mods.sty

可以在序言中添加以下几行来解决:

\makeatletter
\def\@chapter[#1]#2{
  \refstepcounter{chapter}%
  \renewcommand\thepage{\arabic{page}}

  \ifapp
  \else
    \ifnum\value{chapter}=1
      \pagenumbering{arabic}
    \fi
  \fi
  \pagestyle{headings}

  \ifnum \c@secnumdepth >\m@ne
    \typeout{\@chapapp\space\thechapter.}
    \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter.}#1}%
  \else
    \addcontentsline{toc}{chapter}{#1}
  \fi

  \chaptermark{#1}%

  \if@twocolumn
     \@topnewpage[\@makechapterhead{#2}]%
  \else
     \@makechapterhead{#2}%
  \fi
}
\makeatother

输出:

在此处输入图片描述

相关内容