使用标题包时删除图形列表中的缩进

使用标题包时删除图形列表中的缩进

我正在排版一本书,我不想在标题中添加数字,因此我使用了labelformat=emptycaptions 包。同样,我想隐藏图片列表中的数字,因此我的序言如下所示:

\usepackage[listformat=empty,labelformat=empty,]{caption}

我们假设我的文本中有这张图片:

\begin{figure}[ht]
    \centering
    \includegraphics{example-image-a}
    \caption[\textit{Title of the Work, which can also be a bit longer}, \textsc{Author of the work}, 2010, No Copyright]{Title of the work} \label{fig:some-label}
\end{figure}

当我打印时,\listoffigures出现了缩进。有什么方法可以消除这个问题吗?

平均能量损失(这是一个编辑链接,请随意尝试一下):

\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[belowskip=-11pt,listformat=empty,labelsep=none,labelformat=empty]{caption}
\begin{document}

\begin{figure}[ht]
    \centering
    \includegraphics{example-image-a}
    \caption[\textit{Title of the Work, which can also be a bit longer}, \textsc{Author of the work}, 2010, No Copyright]{Title of the work} \label{fig:some-label}
\end{figure}

\listoffigures

\end{document}

在此处输入图片描述

答案1

基于https://tex.stackexchange.com/a/186844/56823,解决方案如下:

\documentclass{scrbook}
\usepackage[utf8]{inputenc}

\usepackage{graphicx}
\usepackage[belowskip=-11pt,listformat=empty,labelformat=empty]{caption}
\makeatletter
\renewcommand*\l@figure{\@dottedtocline{1}{0em}{0em}}
\makeatother

\begin{document}

\begin{figure}[ht]
    \centering
    \includegraphics{example-image-a}
    \caption[\textit{Title of the Work, which can also be a bit longer}, \textsc{Author of the work}, 2010, No Copyright]{Title of the work} \label{fig:some-label}
\end{figure}

\listoffigures

\end{document}

相关内容