答案1
基本思想与相同,amsbook
但您需要从中复制相关代码book.cls
:
\documentclass{book}
\usepackage[]{graphicx}
\usepackage{lipsum}
\makeatletter
\def\@partimage{}
\newcommand{\partimage}[2][]{\gdef\@partimage{\includegraphics[#1]{#2}}}
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >-2\relax
\refstepcounter{part}%
\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
\else
\addcontentsline{toc}{part}{#1}%
\fi
\markboth{}{}%
{\centering
\interlinepenalty \@M
\normalfont
\ifnum \c@secnumdepth >-2\relax
\huge\bfseries \partname\nobreakspace\thepart
\par
\vskip 20\p@
\fi
\Huge \bfseries #2\vfil\@partimage\vfil\par}%
\@endpart}
\makeatother
\begin{document}
\partimage[]{example-image-duck.pdf} % same arguments as \includegraphics
\part{Part Title (Figure Below)}
\lipsum[1-2]
\end{document}
如果您希望图像位于标题和页面底部的中心,请将 的两个实例都替换\vfil
为\vfill
。
现在我对这个问题有了三点认识。:)