奇怪的行为:“\listoffigures”显示在最首页

奇怪的行为:“\listoffigures”显示在最首页

我有一些类似以下的数字

\begin{figure}[htbp]
\includegraphics[width=\textwidth, keepaspectratio=true]{img/test_example.png}
\caption{Auszug aus dem Integritätstest}
\label{Integritätstest}
\end{figure}

图形本身和图形列表都正确呈现,但不知何故,所有标题都打印在文档的最开头。但没有 \listoffigures 命令或类似命令。我对 LaTeX 还不太熟悉,所以我不知道分析这个问题需要哪些信息。这是我的主文件,其中包含使用过的软件包和那些东西,希望对您有所帮助。

\documentclass[ a4paper, 12pt, twoside, openany, parskip, final, 11pt, appendixprefix, chapterprefix ]{scrreprt}
%-------------------%
% include packages  %
%-------------------%
\usepackage[twoside,width=14cm, height=24cm,right=3.25cm, left=2.5cm]{geometry} %zweiseitig
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{color}
\usepackage{amsbsy}
\usepackage{mdwlist}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{graphicx}   %including images
\usepackage{fancyhdr}   %for editiable headers and footers
\usepackage{setspace}   %for 1,5times row space
\usepackage[colorlinks,pdfpagelabels,pdfstartview = FitH,bookmarksopen = true,bookmarksnumbered = true,linkcolor = black,plainpages = false,hypertexnames = false,citecolor = black, linkcolor=black, menucolor=black, pagecolor=black, urlcolor=black] {hyperref}  
\usepackage{multirow}   %linebreak in Table
\usepackage{enumerate}
\usepackage{float}
\usepackage{colortbl}   %colorTables
\usepackage{framed}   %begin{framed}
\usepackage{longtable} %begin{longtable}
\usepackage{makeidx}
\usepackage[square]{natbib}
\usepackage{epigraph}
\include{helpers/include-syntax-php}    % PHP Syntax-Highlighting
\usepackage{listings}
\usepackage{caption}
\usepackage{epigraph}
\usepackage[dvipsnames]{xcolor}

%------------------%
% config document  %
%------------------%

\pdfcompresslevel0
\lstset{%
basicstyle=\ttfamily\footnotesize\color{black},
commentstyle = \ttfamily\color{gray},
keywordstyle=\ttfamily\color{blue},
stringstyle=\color{red},
showspaces=false,               % show spaces adding particular underscores
showstringspaces=false, 
frame=single
}

% spaces
\parskip 5pt           % sets spacing between paragraphs
\parindent 0pt  
%\vspace*{2.3\baselineskip} = ORIGINAL 
\renewcommand*{\chapterheadstartvskip}{\vspace*{0\baselineskip}}

%headers/footers
\pagestyle{fancy}
\renewcommand{\sectionmark}[1]{\markboth{\thesection\ #1}{}}
\renewcommand{\subsectionmark}[1]{\markright{\thesubsection\ #1}}
\lhead[ \leftmark   ]{\textbf{\paperTitle}}
\rhead[\textbf{\workingTitle}]{\leftmark}
\lfoot[\thepage    ]{\scriptsize \textcopyright\the\year, \paperAuthor}
\cfoot[]{}
\rfoot[\scriptsize \textcopyright\the\year, \paperAuthor]{\thepage}

%macros
\renewcommand{\footrulewidth}{0.5pt}
 %\newcommand{\cbox}{\includegraphics[width=0.2cm]{material/cbox.png} \ }
\definecolor{Gray}{rgb}{0.85,0.85,0.90}
 %\setcounter{tocdepth}{2}  %kleineres TOC
\newcommand{\arr}{$ \Longrightarrow$}

\makeindex  %start index

\date{\today}
\onehalfspacing

\setlength{\epigraphwidth}{.8\textwidth}

%-----------------%
% start document  %
%-----------------%

\begin{document}
 %includes...
\end{document}

答案1

我发现这个\label{}命令是造成这种奇怪行为的原因。但我不知道为什么。删除它可以解决问题。

相关内容