如何为章节/节部分中所述的表格/图形列表创建适当的标题?这是一个产生问题的虚拟示例:
\documentclass[
listof=totoc,bibliography=totoc,
a5paper,
fontsize=7pt,% changed!
%openright,% default
%twoside=true% default
]{scrbook}
\usepackage{blindtext}% only for dummy text
\usepackage[headsepline=true,
%autooneside = false% not needed with the default twoside=true
]{scrlayer-scrpage}% sets page style scrheadings automatically
\usepackage{subfig}
\usepackage{graphicx}
\AfterTOCHead{\pagestyle{plain}}
\AfterStartingTOC{\clearpage}
\automark[chapter]{chapter}
\automark*[section]{}
\begin{document}
\chapter{Test}
\Blindtext[20]
\begin{figure}
\centering
\includegraphics[width=21pc]{example-image-a}
\caption{\Blindtext[20]}
\end{figure}
\listoffigures
\end{document}
先感谢您!
答案1
如果您不想plain
在 LoF、LoT 等中使用页面样式,请从序言中删除以下几行:
\AfterTOCHead{\pagestyle{plain}}
\AfterStartingTOC{\clearpage}
例子:
\documentclass[
listof=totoc,bibliography=totoc,
a5paper,
fontsize=7pt
]{scrbook}
\usepackage{blindtext}% only for dummy text
\usepackage[headsepline=true,
]{scrlayer-scrpage}
%\usepackage{subfig}
\usepackage{graphicx}
%\AfterTOCHead{\pagestyle{plain}}% <- remove this!
%\AfterStartingTOC{\clearpage}% <- remove this!
\automark[chapter]{chapter}
\automark*[section]{}
\begin{document}
\chapter{Test}
\Blindtext[20]
\begin{figure}
\centering
\includegraphics[width=21pc]{example-image-a}
\caption{Caption text}
\end{figure}
\addtocontents{lof}{\Blindtext[20]}% dummy text to get more pages in LoF
\listoffigures
\end{document}