我正在使用 WinEdt7 并以报告类的形式编写我的论文。我需要添加\listoffigures
,但每当我\listoffigures
在中写入时.tex
,程序都会给我一个错误,提示
“..丢失的 }”
在我的一个图形代码中。但是当我删除时\listoffigures
,它工作正常。当然没有“图形列表”页面。
这里是我的主要代码,展示了我如何编写图形代码:
\documentclass[12pt,oneside]{report}
\usepackage{listings}
\usepackage{tocloft}
\usepackage{setspace}
\usepackage[left=1.5in, right=1in, top=1in, bottom=1in, includefoot, headheight=13.6pt]{geometry}
\usepackage{parskip}
\usepackage{graphicx}
\usepackage{graphics}
\setlength{\parskip}{12pt}
\usepackage{tocloft}
\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}} % for parts
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
\begin{document}
\setlength{\parskip}{12pt}
\doublespacing
\titlepage{\textbf{\centerline {THE "... MODES"}
\centerline {OF A THREE .. LATTICE}}}
\noindent\rule{15cm}{0.4pt}\\
\centerline {A Dissertation}
\centerline {Submitted to}
\centerline {the AAAA University Graduate Board}
\noindent\rule{15cm}{0.4pt}\\
\centerline {In Partial Fulfillment}
\centerline {of the Requirements for the Degree of}
\centerline {Doctor of Philosophy}
\noindent\rule{15cm}{0.4pt}\\
\centerline {by}
\centerline {AAAA}
\centerline {August 2014}
someone,department
\addcontentsline{toc}{chapter}{ABSTRACT}
\pagenumbering{roman}
\doublespacing
\chapter*{\center ABSTRACT}
In this thesis...
\addcontentsline{toc}{chapter}{ACKNOWLEDGEMENTS}
\chapter*{\center ACKNOWLEDGEMENTS}
.....
\newpage
\addcontentsline{toc}{chapter}{DEDICATION}
\chapter*{\large To my family}
\newpage
\addcontentsline{toc}{chapter}{TABLE OF CONTENTS}
\renewcommand\contentsname{\centerline {TABLE OF CONTENTS}}
\tableofcontents
\listoffigures
\renewcommand{\cfttabfont}{Table }
\listoftables
%
\begin{figure}[!h]
\centering
\includegraphics[width=0.6\textwidth]{NeutronAAA}
\caption{(Color on line) Summary of lattice dynamics measured in NaI along the [111] direction, showing the phonon dispersion curves measured at 90 K (dashed lines) and 555 K (red lines), including a dispersionless local mode (ILM) that appears in the gap between the branches of acoustic and optic phonons. [From AAA {\it et al.} (2013).]\label{BBBB}}
\end{figure}
%
\end{document}
我正在将我的整个论文章节写在一个.tex
文件中(我知道这很可耻),所以我尝试复制第一行主要内容。
错误信息是:
“[3] [4] [5] [6](C:\Users\pc-f\Desktop\Thesis\AAThesis.toc)
(C:\Users\pc-f\Desktop\Thesis\AAThesis.lof)
!缺少}插入。
1.4 ...这是布里渊区的一角。}}{20}
“?”
这是我的嫌疑人形象代码;
%
\begin{figure}[!ht]
\centering
\includegraphics[width=1.\textwidth]{DOSQ}
\doublespacing
\caption{The frequency dependence of the two-phonon creation density of states $\rho^{(+,+)}_{\underline{Q}}(\omega)$ (in units of $\omega_0^{-1}$), for various values of the center of mass momentum $\underline{Q}$, (in units of $\pi/a$). (Top Left Panel) For momentum $\underline{Q}$ along the x-axis. (Top Right Panel) For momentum transfers $\underline{Q}$ along the (1,1,0) axis. (Bottom Panel) For $\underline{Q}$ along the diagonal of the Brillouin zone. It is seen that the density of states peaks up at the upper edge of the two-phonon creation continuum as the center of mass momentum $\underline{Q}$ approaches the corner of the Brillouin zone.}\label{DOSQ}
\end{figure}
%
你觉得有什么不对吗?