\listoffigures 未生成

\listoffigures 未生成

我对\listoffigures和有疑问\listoftables。它们无法生成。

以下是我目前所掌握的信息:

\documentclass[12pt]{report} 
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{subfig}
\linespread{1.6}
\graphicspath{{Images/}}
\usepackage[a4paper,left=1.5in,top=1in,bottom=1in, right=1in]{geometry}
\usepackage{gensymb}
\usepackage{float}
\usepackage{booktabs}
\usepackage[none]{hyphenat}
\usepackage{tocbibind} 
\usepackage{fancyhdr}
\usepackage[toc,page]{appendix}
\usepackage{array}


\begin{document}


\pagenumbering{roman}

\input{abstract}

\chapter*{Dedication}

\chapter*{Acknowledgment}


\tableofcontents 

\listoffigures

\listoftables

\chapter{Introduction}
\pagenumbering{arabic}
\setcounter{page}{1}
%\input{Chapters/Chapter1}

\end{document}

我是这样画数据的:

\begin{figure}
\centering
\includegraphics[scale=0.4]{Images/P66614NCN2.jpg}
\caption[EAN sample]{EAN after some stuff.}
\label{fig:P66614NCN2}
\end{figure}

但不知何故,我的图表列表和表格列表仍为空白。找不到任何关于如何解决此问题的信息。有什么帮助吗?

这是我的文件长度:

*File List*
report.cls    2014/09/29 v1.4h Standard LaTeX document class
size12.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
inputenc.sty    2015/03/17 v1.2c Input encoding file
utf8.def    2015/09/07 v1.1p UTF-8 support for inputenc
t1enc.dfu    2015/09/07 v1.1p UTF-8 support for inputenc
ot1enc.dfu    2015/09/07 v1.1p UTF-8 support for inputenc
omsenc.dfu    2015/09/07 v1.1p UTF-8 support for inputenc
graphicx.sty    2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
graphics.sty    2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)
trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
subfig.sty    2005/06/28 ver: 1.3 subfig package
caption.sty    2016/02/21 v3.3-144 Customizing captions (AR)
caption3.sty    2016/05/22 v1.7-166 caption3 kernel (AR)
geometry.sty    2010/09/12 v5.6 Page Geometry
ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
ifvtex.sty    2010/03/01 v1.5 Detect VTeX and its facilities (HO)
ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
geometry.cfg
float.sty    2001/11/08 v1.3d Float enhancements (AL)
booktabs.sty    2005/04/14 v1.61803 publication quality tables
hyphenat.sty    2009/09/02 v2.3c hyphenation utilities
tocbibind.sty    2010/10/13 v1.5k extra ToC listings
fancyhdr.sty    
appendix.sty    2009/09/02 v1.2b extra appendix facilities
array.sty    2014/10/28 v2.4c Tabular extension package (FMi)
supp-pdf.mkii
 ***********

答案1

因为我们没有您使用的图像和您\input编辑的其他文件,所以我将您给出的代码片段更改为可编译的 MWE。使用我当前版本的 MiKTeX 2.9,我可以编译 MWE 而不会出现错误。第三次编译运行后,您将看到目录、图片列表(但不是表格列表,因为我没有添加表格)。

使用我添加的命令,\listfiles您会在文件末尾看到一个已用软件包和版本号的列表log。请将此列表与我的列表进行比较。

梅威瑟:

\listfiles
\documentclass[12pt]{report} 

\usepackage[utf8]{inputenc}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\linespread{1.6}
%\graphicspath{{Images/}}
\usepackage[a4paper,left=1.5in,top=1in,bottom=1in, right=1in]{geometry}
%\usepackage{gensymb} % <========================= causes two warnings!
\usepackage{float}
\usepackage{booktabs}
\usepackage[none]{hyphenat} % <============================= Why?
\usepackage{tocbibind} 
\usepackage{fancyhdr}
\usepackage[toc,page]{appendix}
\usepackage{array}


\begin{document}

\pagenumbering{roman}

\chapter*{Dedication}
\chapter*{Acknowledgment}

\tableofcontents 
\listoffigures
\listoftables

\chapter{Introduction}
\pagenumbering{arabic}
\setcounter{page}{1}
\begin{figure}
  \centering
  \includegraphics[scale=0.4]{Images/P66614NCN2.jpg}
  \caption[EAN sample]{EAN after some stuff.}
  \label{fig:P66614NCN2}
\end{figure}

\end{document}

结果如下:

在此处输入图片描述

以及我使用的软件包和版本号的列表:

 *File List*
  report.cls    2014/09/29 v1.4h Standard LaTeX document class
  size12.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
inputenc.sty    2015/03/17 v1.2c Input encoding file
    utf8.def    2016/02/28 v1.1s UTF-8 support for inputenc
   t1enc.dfu    2016/02/28 v1.1s UTF-8 support for inputenc
  ot1enc.dfu    2016/02/28 v1.1s UTF-8 support for inputenc
  omsenc.dfu    2016/02/28 v1.1s UTF-8 support for inputenc
graphicx.sty    2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
graphics.sty    2016/07/10 v1.0t Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg    2016/06/04 v1.11 sample graphics configuration
  pdftex.def    2016/07/10 v0.06j Graphics/color for pdfTeX
infwarerr.sty    2016/05/16 v1.4 Providing info/warning/error messages (HO)
 ltxcmds.sty    2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
  subfig.sty    2005/06/28 ver: 1.3 subfig package
 caption.sty    2016/02/21 v3.3-144 Customizing captions (AR)
caption3.sty    2016/05/22 v1.7-166 caption3 kernel (AR)
geometry.sty    2010/09/12 v5.6 Page Geometry
   ifpdf.sty    2016/05/14 v3.1 Provides the ifpdf switch
  ifvtex.sty    2016/05/16 v1.6 Detect VTeX and its facilities (HO)
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
geometry.cfg
   float.sty    2001/11/08 v1.3d Float enhancements (AL)
booktabs.sty    2005/04/14 v1.61803 publication quality tables
hyphenat.sty    2009/09/02 v2.3c hyphenation utilities
tocbibind.sty    2010/10/13 v1.5k extra ToC listings
fancyhdr.sty    2016/09/06 3.8 Extensive control of page headers and footers
appendix.sty    2009/09/02 v1.2b extra appendix facilities
   array.sty    2014/10/28 v2.4c Tabular extension package (FMi)
supp-pdf.mkii
pdftexcmds.sty    2016/05/21 v0.22 Utility functions of pdfTeX for LuaTeX (HO)
ifluatex.sty    2016/05/16 v1.4 Provides the ifluatex switch (HO)
epstopdf-base.sty    2016/05/15 v2.6 Base part for package epstopdf
  grfext.sty    2016/05/16 v1.2 Manage graphics extensions (HO)
kvdefinekeys.sty    2016/05/16 v1.4 Define keys (HO)
kvoptions.sty    2016/05/16 v3.12 Key value format for package options (HO)
kvsetkeys.sty    2016/05/16 v1.17 Key value parser (HO)
etexcmds.sty    2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
 ***********

 ) 

相关内容