有没有办法将H
和p
选项组合起来用于figure
环境?我使用dpfloat
包是为了保证某些图形对出现在对开页上;并且文档dpfloat
(https://mirrors.mit.edu/CTAN/macros/latex/contrib/dpfloat/dpfloat.pdf) 告诉我们使用p
选项。但是,虽然要求某些页面对面对面,因此需要选项p
,但我还要求图形出现在文本中的特定位置,因此我需要H
选项或等效选项。
(我正在使用 XeLaTeX。)
\documentclass[11pt]{book}
\usepackage[paperwidth=4.25in, paperheight=5.5in]{geometry}
\usepackage{float}
\usepackage{amsfonts, amssymb, amsmath, mathtools}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{fontspec}
\usepackage[strict]{changepage}
\usepackage{dpfloat}
\setmainfont{Times New Roman}
\setlength{\headheight}{25.1pt}
\fancyhf{}
\pagestyle{fancy}
\renewcommand\headrulewidth{0pt}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\fancyhead[LE]{\iffloatpage{}{\thepage \hspace{1cm} \leftmark}}
\renewcommand\sectionmark[1]{\markboth{#1}{}}
\fancyhead[RO]{\iffloatpage{}{\leftmark \hspace{1cm} \thepage}}
\titleformat{\chapter}[display]
{\normalfont\fillast}
{{\Huge \thechapter}}
{1ex minus .1ex}
{\large \thispagestyle{empty}}
\titlespacing{\chapter}
{3pc}{*3}{*2}[3pc]
\begin{document}
\chapter{Chapter}
Words I wish to have precede the pair of facing pages
\begin{figure}[p]
\begin{leftfullpage}
\newgeometry{top=5mm,bottom=0cm}
\begin{adjustwidth}{-1.5cm}{-1.5cm}
\begin{center}
\includegraphics[width=3.5in]{plate I.jpg}
\end{center}
\end{adjustwidth}
\restoregeometry
\end{leftfullpage}
\end{figure}
\begin{figure}[p]
\begin{fullpage}
\begin{center}
Caption of image on facing page
\end{center}
\end{fullpage}
\end{figure}
Words I wish to have follow the pair of facing pages at the beginning of a new page
\end{document}