按字母顺序排列的章节图片列表的间距

按字母顺序排列的章节图片列表的间距

在我的文档末尾,我需要最后一章,并单独编号以添加其他数据。为此,我更改了章节编号以显示A通过\setcounter{chapter}{0} \renewcommand{\thechapter}{\Alph{chapter}} 章节本身仅包含图表,因此我很容易获得像这样的两位数格式A.xx.。在图中,listoffigures图表编号和标题文本之间的空格会因两位数而消失。文档中的其他所有标题(包括两位数的阿拉伯数字标题)都是正常的,因为有一个空格。有没有办法在图号中添加额外的空格?

梅威瑟:

\documentclass[abstracton, listof=totoc, bibliography=totoc, twoside, BCOR=5mm]{scrreprt}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\begin{document}
\listoffigures
\setcounter{chapter}{0}
\renewcommand{\thechapter}{\Alph{chapter}}

\chapter{A Text}

\begin{figure}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\end{figure}

\end{document}

答案1

使用 KOMA-Script 类 scrreprt,您可以使用选项listof=flat来获取

在此处输入图片描述

请注意,这需要额外运行。

代码:

\documentclass[abstract=on, listof=totoc, bibliography=totoc, twoside, BCOR=5mm,
listof=flat% <- added
]{scrreprt}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\begin{document}
\listoffigures
\chapter{A Text}
\begin{figure}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\end{figure}

\appendix% <- instead \setcounter{chapter}{0}\renewcommand{\thechapter}{\Alph{chapter}}

\chapter{A Text}
\begin{figure}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\caption{A Text.}
\end{figure}
\end{document}

另一种可能性是手动更改图形数字的宽度:

\makeatletter
\renewcommand\l@figure{\@dottedtocline{1}{1.5em}{3em}}
\makeatother

第一个参数包含条目的级别,第二个参数设置缩进,第三个参数是数字的宽度。 设置的第三个参数的原始scrreprt值为2.3em

相关内容