\listoffigures 和 \listoftables 未填充

\listoffigures 和 \listoftables 未填充

我正在写一本很长的书,里面有很多图和一些表格。我在标签后面放了\listoffiguresand标签,但编译时只得到“图列表”和“表格列表”标题,没有列出任何内容。我的头文件中列出了许多包,所以我想也许其中一个包可能会导致问题。因此,我使用一个简短的单图章节进行了测试,并使用了相同的头文件,以便我可以排除包,直到找到有问题的包。令我惊讶的是,它成功了……我使用的包没有干扰。那么,问题的原因可能是什么?\listoftables\begin{document}

这是头文件:

\RequirePackage[l2tabu, orthodox]{nag}
\documentclass[draft,12pt]{book}
\setlength{\parskip}{8pt}
\setlength{\parindent}{0pt}

% packages used
%\usepackage{geometry}
%\usepackage[margin=1in, paperwidth]{geometry}
\usepackage{color}
\usepackage{csquotes}
\usepackage{hhline}
\usepackage[arrowdel]{physics}
\usepackage{esint}
\usepackage{amssymb,amsfonts,amsbsy,textcomp}
\usepackage[letterpaper]{geometry}
\usepackage[pdftex,final]{graphicx}
\usepackage{makeidx}
\usepackage[table]{xcolor}
%\usepackage{supertabular}
\usepackage{tabu}
\usepackage{multicol}
\usepackage{microtype}
%\usepackage[utf8]{inputenc}
\usepackage{cleveref}
\usepackage[toc,page]{appendix}
\usepackage{biblatex}
\usepackage{float}
\usepackage[hang,flushmargin]{footmisc}
%\usepackage{showframe}

% aliases, new commands and macros here
%\newcommand\textsubscript[1]{\ensuremath{{}_{\text{#1}}}}
\newcommand\textstyleEmphasis[1]{\textit{#1}}
\newcommand\arraybslash{\let\\\@arraycr}
\newcommand\captionof[1]{\def\@captype{#1}\caption}
\newcommand\boldsubformula[1]{\text{\mathversion{bold}$#1$}}
\newcommand{\mop}[1]{\ensuremath{\mathbf{\hat #1}}}            %mop - matrix operator
\newcommand{\tens}[1]{\ensuremath{\mathbf{\overset{\sim} #1}}} %tens - tensor
\renewcommand{\familydefault}{\sfdefault}

\title{Essential Mathematics\\for NMR Spectroscopists}
\author{K.C. Brown\\Department of Chemistry\\University of Saskatchewan}
\date{\today\\[3pt]
Copyright \copyright\ K.C. Brown 2015}

\graphicspath{ {Figures/} }
\makeindex
\geometry{top=0.75in,left=0.80in,bottom=0.75in,right=0.80in}
\everymath{\displaystyle}

这是主文件:

\include{header}

\begin{document}
\maketitle
\frontmatter
\include{preface}

\tableofcontents
\listoffigures
\listoftables

\mainmatter
\fontsize{12}{14}
%========================================[Complex Numbers]========================================
\include{ComplexNumbers}

%=========================================[Matrices]==============================================
\include{Matrices}

ETC。

相关内容