我试图将图表列表放入目录中,但我尝试的所有方法都不起作用。
我的 main.tex 文件:
\documentclass[
a4paper,
11pt,
parskip=half-,
oneside,
listof=totoc,
bibtotocnumbered,
headings=big,
appendixprefix=true
]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[ngerman, english]{babel}
% Bearbeitungsdatum
\date{\today}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tocloft}
\usepackage{interfaces}
\usepackage{setspace}
\usepackage[page]{appendix}
\addto\captionsngerman{\let\appendixpagename\appendixname}
\begin{document}
\selectlanguage{ngerman}
\pagenumbering{Roman}
\PartEinleitung
Some beginning text
\tocsetup{
title/font = \huge\color{blue},
part/font = \large\bfseries\color{blue},
part/number/width=8mm,
part/number/after = .,
chapter/number/after = .,
chapter/indent=8mm,
chapter/number/width=8mm,
section/number/after = .,
section/indent = 16mm,
section/number/width=10mm,
subsection/indent=26mm,
subsection/number/after = .,
subsection/number/width=10mm,
subsubsection/indent=36mm,
subsubsection/number/after = .,
subsubsection/number/width=13mm
}
\listofsetup{lot}{
parskip=0cm,
title/font = \huge\color{blue},
table/number/after = .,
table/number/width=13mm,
}
\listofsetup{lof}{
parskip=0cm,
title/font = \huge\color{blue},
figure/number/after = .,
figure/number/width=13mm
}
\renewcommand{\contentsname}{Inhaltsverzeichnis}
\pdfbookmark[0]{Inhaltsverzeichnis}{pdfinhaltsverzeichnis}
\tableofcontents
\label{LastPageEinleitung}
\clearpage
\cleardoublepage
\PartHauptteil
\pagenumbering{arabic}
Some Text included by "include commands"
\listoftables
\listoffigures
\printbibliography
\label{LastPageHauptteil}
\cleardoublepage
\pagenumbering{Alph}
\PartAppendix
\appendix
\begin{appendices}
\label{LastPageAppendix}
\end{appendices}
\end{document}
Bibliograpie 出现在目录中,但没有显示图表列表... \listoffigures 也不会创建章节或类似的东西,因为 \headmark 在带有图表列表的页面上不会发生变化。
答案1
您应该使用软件包titles
的选项tocloft
。它可以一次性解决这两个问题。但是:如果您使用 KOMA 脚本界面设置文档以更改标题格式和目录,效果会更好。这样您就不会遇到这样的问题。
\documentclass[
a4paper,
11pt,
parskip=half-,
oneside,
listof=totoc,
bibtotocnumbered,
headings=big,
appendixprefix=true
]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[ngerman, english]{babel}
% Bearbeitungsdatum
\date{\today}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[titles]{tocloft}
\usepackage{interfaces}
\usepackage{setspace}
\usepackage[page]{appendix}
\addto\captionsngerman{\let\appendixpagename\appendixname}
\usepackage{blindtext}% for dummy text
\begin{document}
\selectlanguage{ngerman}
\pagenumbering{Roman}
Some beginning text
\tocsetup{
title/font = \huge\color{blue},
part/font = \large\bfseries\color{blue},
part/number/width=8mm,
part/number/after = .,
chapter/number/after = .,
chapter/indent=8mm,
chapter/number/width=8mm,
section/number/after = .,
section/indent = 16mm,
section/number/width=10mm,
subsection/indent=26mm,
subsection/number/after = .,
subsection/number/width=10mm,
subsubsection/indent=36mm,
subsubsection/number/after = .,
subsubsection/number/width=13mm
}
\listofsetup{lot}{
parskip=0cm,
title/font = \huge\color{blue},
table/number/after = .,
table/number/width=13mm,
}
\listofsetup{lof}{
parskip=0cm,
title/font = \huge\color{blue},
figure/number/after = .,
figure/number/width=13mm
}
\renewcommand{\contentsname}{Inhaltsverzeichnis}
\tableofcontents
\label{LastPageEinleitung}
\clearpage
\cleardoublepage
\pagenumbering{arabic}
Some Text included by "include commands"
\listoftables
\listoffigures
\label{LastPageHauptteil}
\cleardoublepage
\Blinddocument
\pagenumbering{Alph}
\appendix
\begin{appendices}
\label{LastPageAppendix}
\end{appendices}
\end{document}
如何仅使用 KOMA 脚本完成你的工作:
\documentclass[
a4paper,
11pt,
parskip=half-,
oneside,
listof=totoc,
bibliography=numbered,
headings=big,
appendixprefix=true
]{scrreprt}
\usepackage{xcolor}
\usepackage{blindtext}% for dummy text
\setkomafont{partentry}{\large\bfseries\color{blue}}
\RedeclareSectionCommand
[%
,tocnumwidth=8mm
]{part}
\RedeclareSectionCommand
[%
,tocindent=8mm
,tocnumwidth=8mm
]{chapter}
\RedeclareSectionCommand
[%
,tocindent=16mm
,tocnumwidth=10mm
]{section}
\RedeclareSectionCommand
[%
,tocindent=26mm
,tocnumwidth=10mm
]{subsection}
\RedeclareSectionCommand
[%
,tocindent=36mm
,tocnumwidth=13mm
]{subsubsection}
\DeclareTOCStyleEntry
[%
numwidth=13mm
]{tocline}{figure}
\DeclareTOCStyleEntry
[%
numwidth=13mm
]{tocline}{table}
\BeforeTOCHead{\addtokomafont{chapter}{\huge\color{blue}}}
\begin{document}
\pagenumbering{Roman}
Some beginning text
\renewcommand{\contentsname}{Inhaltsverzeichnis}
\tableofcontents
\cleardoublepage
\part{FOOOBAR}
\pagenumbering{arabic}
Some Text included by "include commands"
\listoftables
\listoffigures
\cleardoublepage
\Blinddocument
\captionof{figure}{foobar}
\captionof{table}{foobar}
\end{document}