有一个 TableOfContent、一个 ListOfFigures 和一个 ListOfTables。
LOF 和 LOT 位于一页的两列中(多列)。它们应该有简短的名称作为标题(“图”和“表”),在目录中,它们应该显示两个条目(“图列表”和“表列表”),因为它们具有相同的页码 ;-) 其页面上的标题应该有描述“图和表列表”
\documentclass[12pt,DIV=10,ngerman,headings = normal,listof = totoc,bibliography = totoc,index = totoc]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{geometry}
\setlength{\topskip}{\ht\strutbox} % behebt Warnung von geometry
\geometry{paper=a4paper,left=30mm,right=30mm,top=35mm,bottom=30mm,headheight=30mm}
\usepackage[automark,headsepline=1pt]{scrlayer-scrpage}
\clearpairofpagestyles
\pagestyle{scrheadings}
\automark{chapter}
\automark*{section}
\ihead{\headmark}
\renewcommand*{\chapterpagestyle}{scrheadings}
\begin{document}
\addcontentsline{toc}{chapter}{Table Of Content}
\tableofcontents{}
\newpage
\begin{multicols}{2}
\addcontentsline{toc}{chapter}{List Of Figures}
\renewcommand{\listfigurename}{Figures}
\label{Figures}
\listoffigures{}
\vfill\null
\columnbreak
\begingroup
\let\clearpage\relax
\addcontentsline{toc}{chapter}{List Of Tables}
\renewcommand{\listtablename}{Tables}
\label{Tables}
\listoftables{}
\endgroup
\end{multicols}
\chapter{Chapter}
\section{Section}
\begin{figure}[h]
\caption{figure ONE}
\end{figure}
\begin{table}[h]
\begin{tabular}{l}
\end{tabular}
\caption{Table ONE}
\end{table}
\end{document}
答案1
对我来说这看起来很奇怪。但您可以删除选项listof=totoc
并使用选项headings=optiontoheadandtoc
并\deftocheading
获得所需的结果。
\documentclass[12pt,headings = normal,bibliography = totoc,index = totoc,
headings=optiontoheadandtoc% <- added
]{scrreprt}
%\usepackage[utf8]{inputenc}% only needed with outdated TeX-distributions
\usepackage{multicol}
\usepackage{geometry}
%\setlength{\topskip}{\ht\strutbox} % behebt Warnung von geometry???
\geometry{paper=a4paper,left=30mm,right=30mm,top=35mm,bottom=30mm,headheight=30mm}
\usepackage[headsepline=1pt]{scrlayer-scrpage}% sets page style scrheadings automatically
\clearpairofpagestyles
\automark{chapter}
\automark*{section}
\ihead{\headmark}
\renewcommand*{\chapterpagestyle}{scrheadings}
\deftocheading{toc}{%
\addchap[tocentry={Table of Contents}]{\contentsname}%
}
\deftocheading{lof}{%
\addchap[tocentry=\listfigurename,head={List of Figures and Tables}]{Figures}%
}
\deftocheading{lot}{%
\addchap[tocentry=\listtablename,head={List of Figures and Tables}]{Tables}%
}
\begin{document}
\tableofcontents
\clearpage
\begin{multicols}{2}
\listoffigures
\vfill
\columnbreak
\begingroup
\let\clearpage\relax
\listoftables
\vfill
\endgroup
\end{multicols}
\chapter{Chapter}
\section{Section}
\begin{figure}[h]
\caption{figure ONE}
\end{figure}
\begin{table}[h]
\begin{tabular}{l}
\end{tabular}
\caption{Table ONE}
\end{table}
\end{document}