我正在用經典論文寫我的論文。可以包含章節標題,但前提是其中包含圖表給 lof?
在 KOMA 選項中使用 listof = Chapterentry 也包括沒有數字的章節,我會避免這些。
謝謝你!
微量元素
\documentclass[10pt, a4paper, twoside, openright, titlepage, fleqn, headinclude, footinclude, BCOR5mm, numbers=noenddot, cleardoublepage=empty,
listof = withchapterentry]{scrbook}
%classic thesis template
\usepackage[eulerchapternumbers, eulermath, pdfspacing, listings, floatperchapter,parts]{classicthesis}
\begin{document}
\listoffigures
\chapter{Introduction with no Figures}
\chapter{Test Chapter with Figures}
\begin{figure}
\caption{caption text}
\end{figure}
\begin{figure}
\caption{caption text}
\end{figure}
\chapter{Test Chapter with no Figures}
\chapter{Another Test Chapter with Figures}
\begin{figure}
\caption{caption text}
\end{figure}
\end{document}
正如您在圖片中看到的那樣,介紹和第一章也列出了,但不包含任何圖片。我會避免列出沒有數字的章節。
答案1
\documentclass[10pt, a4paper, twoside, openright, titlepage, fleqn, headinclude, footinclude, BCOR5mm, numbers=noenddot, cleardoublepage=emptyast]{scrbook}
%classic thesis template
\usepackage[eulerchapternumbers, eulermath, pdfspacing, listings, floatperchapter,parts]{classicthesis}
\makeatletter
\newcommand{\chapterwithfigures}{\addxcontentsline{lof}{chapteratlist}[{\thechapter}]{\scr@ds@tocentry}}%
\makeatother
\begin{document}
\listoffigures
\chapter{Introduction with no Figures}
\chapter{Test Chapter with Figures}
\chapterwithfigures
\begin{figure}
\caption{caption text}
\end{figure}
\begin{figure}
\caption{caption text}
\end{figure}
\chapter{Test Chapter with no Figures}
\chapter{Another Test Chapter with Figures}
\chapterwithfigures
\begin{figure}
\caption{caption text}
\end{figure}
\end{document}