minitoc 没有出现?

minitoc 没有出现?

我有这个文件

\documentclass [11pt,oneside,final]{book}
\usepackage{minitoc}
\usepackage[round]{natbib}
\usepackage{longtable}
\usepackage[font={footnotesize,it}]{caption}
\usepackage{bookman} 
\usepackage[T1]{fontenc} 
\usepackage{setspace}
\doublespacing 
\usepackage{multirow}

\usepackage[left=30mm,top=30mm,right=30mm,bottom=30mm]{geometry}
\pagenumbering{Roman}
\usepackage[small,compact]{titlesec}
\usepackage[Lenny]{fncychap}
\usepackage{arabtex}
\usepackage{cp1256}
\setcode{cp1256}
\usepackage{float}
\usepackage[final]{graphicx}
\usepackage{epstopdf}
\usepackage{array}
\setarab
\raggedbottom
\title{\center \textbf{AAAAAAAAA}}
\author{
Submitted by AAAAAAA \\

}

\begin{document}

\maketitle

\chapter*{\thispagestyle{empty} Declaration} 


This thesis is an account of research undertaken between February 2004 and 
October 2004 at The Department of Physics, Faculty of Science, 
The Australian National University, Canberra, Australia.

Except where acknowledged in the customary manner, the material 
presented in this thesis is, to the best of my knowledge, original and 
has not been submitted in whole or part for a degree in any 

\chapter*{\thispagestyle{empty} \begin{center} \vspace*{2in}  To my AAAAA \end{center}}
\chapter*{\thispagestyle{empty} Abstract}
\chapter*{\thispagestyle{empty} Acknowledgments}
\dominitoc 
\tableofcontents
\listoffigures \addcontentsline{toc}{chapter}{List of Figures}
\listoftables \addcontentsline{toc}{chapter}{List of Tables}
\clearpage
\pagenumbering{arabic}
\chapter{Introduction}
\minitoc \newpage

章节之后的 minitoc 没有出现!

我错过了什么?

答案1

这是可编译的代码(来自同一用户发布的重复问题:https://tex.stackexchange.com/questions/146925/minitoc-not-working)加上一个解决方案。

您需要在andmtcaddchapter之后添加,如下所示:\listoffigureslistoftables

\documentclass [11pt,oneside,final]{book}
\usepackage{minitoc}
\usepackage[round]{natbib}
\usepackage[font={footnotesize,it}]{caption}
\usepackage[Lenny]{fncychap}
%     \setarab
\raggedbottom
\title{\center \textbf{AAAAAAAAA}}
\author{
Submitted by AAAAAAA}

\begin{document}

\maketitle
\chapter*{\thispagestyle{empty} \begin{center} \vspace*{2in}  To my AAAAA \end{center}}
\chapter*{\thispagestyle{empty} Abstract}
\chapter*{\thispagestyle{empty} Acknowledgments}
\dominitoc
\tableofcontents
\listoffigures \addcontentsline{toc}{chapter}{List of Figures} \mtcaddchapter                     %new code
\listoftables \addcontentsline{toc}{chapter}{List of Tables}   \mtcaddchapter                     %new code
\clearpage
\pagenumbering{arabic}
\chapter{Introduction}
\minitoc \newpage
 \section{AAAAAAA}
 WEFWEFWEFWEFWEF
\end{document}

在此处输入图片描述

或者,您可以添加\mtcaddchapter[List of Tables]代替\addcontentsline{toc}{chapter}{List of Tables}和类似地作为图片列表。有关其他类似情况,请参阅手册第 52 页。

答案2

您的代码暂时无法编译,但我可以为您提供一些入门信息:

  • 作者行对我来说已经失效了。写\author{Submitted by AAAAAAA}
  • 您需要一个\end{document}作为最后一行,但请确保在复制粘贴时将其忽略......
  • 该包caption必须加载到包前面minitoc
  • 该包fncychap必须加载到包前面minitoc
  • 该软件包titlesec与以下软件包不兼容minitoc
  • 软件包加载后,某些东西正在改变你的\chapter命令。不知道是什么原因造成的。请参阅第 175 页minitoc手册

相关内容