如何从附录中删除 minitoc?

如何从附录中删除 minitoc?

我正在写论文,并用minitoc它来获取每章的目录。但是我不想将其用于附录,有没有办法将其从文档的这一部分中删除?

例子:

\documentclass[authoryear,12pt,a4paper ,twoside ]{scrbook} 
\usepackage{subcaption}
\usepackage{graphicx}
\usepackage{capt-of}
\usepackage{subfig}
\usepackage{amssymb}
\usepackage{threeparttable}
\usepackage{lineno}
\usepackage{fullpage}
\usepackage{natbib}
\usepackage{amsmath}
\numberwithin{equation}{section}
\numberwithin{table}{section}
\numberwithin{figure}{section}
\usepackage{fancyhdr}
\pagestyle{plain}
\newenvironment{abstract}%
{\cleardoublepage\null \vfill\begin{center}%
\bfseries \abstractname \end{center}}%
{\vfill\null}
\usepackage[hyphens]{url}
\usepackage{setspace} 
\usepackage{lscape}
\usepackage[]{nomencl}
\makeglossary

\usepackage[T1]{fontenc}          
\usepackage{geometry}
\usepackage[explicit]{titlesec}
\usepackage{titletoc}
\usepackage{blindtext}
\usepackage{color}
\titleformat{name=\chapter}[display]
{\normalfont\Large\filcenter\bfseries}
{\titlerule[4pt]\vspace{2pt}\titlerule[2pt]\vspace{1pc}\LARGE        \MakeUppercase{\chaptertitlename} \thechapter}
{1pc}
{\titlerule[2pt]\vspace{1pc}\LARGE\MakeUppercase{#1}}
[\normalsize\normalfont\vspace*{2pc}%
\hbox{\large\bfseries\contentsname}\vspace{6pt}\titlerule\vspace{3pt}
\startcontents
\printcontents{l}{1}{\setcounter{tocdepth}{2}}\titlerule]

\titleformat{name=\chapter,numberless}[display]
{\normalfont\Large\filcenter\bfseries}
{}
{1pc}
{\titlerule[2pt]\vspace{1pc}\LARGE\MakeUppercase{#1}}

\usepackage{minitoc}    
\usepackage[hidelinks]{hyperref}
\linespread{1.5}

\usepackage{xr}
\begin{document}
\begin{titlepage}
\begin{center}

\tableofcontents
\dominitoc
\listoffigures

\listoftables
\mainmatter
\chapter{chapter1}
\chapter{chapter2}
\appendix
\chapter{appendix} 
Here is appendix
\end{document}

相关内容