dpfloat 不遵守我的 leftfullpage 和 fullpage 指令

dpfloat 不遵守我的 leftfullpage 和 fullpage 指令

我对较大的图形(或具有大标题的图形)使用 dpfloat,这样我就可以把标题放在左侧,把插图放在右侧。

它一直有效到我的论文的第 50 页左右,然后连续三个图的标题从右侧开始,插图从紧挨着的左侧开始(因此,它们偏移了 +1 页)。

我想我肯定做了一些非常愚蠢的事情才导致它表现出这种行为,但我无论如何也无法弄清楚那是什么。

下面包含图形代码。

%== Figure 2 ==
\begin{figure}[p]% should be left side, but prints on p. 52
  \begin{leftfullpage}
  {\caption[The matrix formalism for calculating phenolog overlaps]{\textbf{The matrix formalism for calculating phenolog overlaps} is
    especially important when predicting between species where large
    gene family expansions have occurred since
    species divergence, such as between \textit{Arabidopsis} and
    humans. The example uses human and mouse to illustrate the orthogroup-based matrix formalism.
    (\textbf{a}) Phenotype associations (colors) are plotted as graphs for
    genes from human (left nodes, subscripted $h$) and mouse (right
    nodes, subscripted $m$), showing genes' orthology relationships (edges radiating from
    orthogroups --- middle nodes, labeled $O$). The orthologies (from INPARANOID), are used
    to ``translate'' phenotype associations
    between species (in the case of the gene-based matrix
    framework in panels (\textbf{b, c})) or into an intermediate collection of
    orthogroup--phenotype associations (for the orthogroup-based
    matrix framework in (\textbf{d})). Orthogroup vertices
    (e.g., $O_A$) connect human and mouse orthologs (such as
    $A_h$, $A'_h$, and $A''_h$, which are paralogs of one another
    relative to the human--mouse divergence, with $A_m$ and $A'_m$. Red vertices within a species are genes
    associated with the phenotype of interest ($\phi_h$ for human and
    $\phi_m$ for the mouse phenotype); orthogroup colors reflect the species data.
    These associations can alternately be captured by representing
    the graphs as matrices (\textbf{b--d}), with bullets indicating an
    association between a given genetic element and a
    phenotype. Specifically, (\textbf{b}) and (\textbf{c}) represent the gene-based
    formalism, and (\textbf{d}) illustrates the orthogroup-based
    formalism. Human and mouse phenotype columns are indicated by
    $\phi_h$ and $\phi_m$, respectively.}\label{fig2}}
  \end{leftfullpage}
\end{figure}
\begin{figure}[p]% right side, but instead prints on p. 53.
  \begin{fullpage}
    {\includegraphics[width=1.0\textwidth]{knn-figs/final_f2.pdf}}
  \end{fullpage}
\end{figure}

有什么想法吗?我甚至不确定要提供什么额外信息。

答案1

默认情况下,链接模板不会设置twoside选项。如果没有该选项,则dpfloat无法选择 aleftfullpage是什么。只需将其添加twoside为选项report即可解决问题。

例如,您可以尝试以下精简版模板,包括带和不带twoside文档类别选项的模板。带选项的twoside模板中,第一个图出现在第 2 页和第 3 页,第二个图出现在第 6 页和第 7 页;不带选项的模板twoside中,第一个图仍然在同一个位置,但第二个图出现在第 5 页和第 6 页。

\documentclass[12pt,twoside]{report}

\usepackage{utdiss2} %Example works also with this package commented out
\usepackage{dpfloat}

\usepackage{amsmath,amsthm,amsfonts,amscd} 
\usepackage{eucal}      
\usepackage{verbatim}       
\usepackage{makeidx}        
%\usepackage{psfig}             % Obselete
\usepackage{graphicx}           % Instead of epsfig
\usepackage{cite}           % Instead of obselete citesort 

\usepackage{lipsum} % For sample text in this example

\begin{document}

\chapter{First chapter}

\lipsum[1]

\begin{figure}[p]
  \begin{leftfullpage}
  {\caption[Left page caption]{Long text.  Long text.  Long text.
  Long text.  Long text.  Long text.  Long text.  Long text.  Long
  text.  Long text.  Long text.  Long text.  Long text.  Long text.
  Long text.  Long text.  Long text.  Long text.  Long text.  Long
  text.  Long text.  Long text.  Long text.  Long text.  Long text.
  Long text.  Long text.  Long text.  Long text.  Long text.  Long
  text.  Long text.  Long text.  Long text.  Long text.  Long text.
  Long text.  Long text.  Long text.  Long text.  Long text.  Long
  text.  Long text.  Long text.  Long text.  Long text.  Long text.
  Long text.  Long text.  Long text.  Long text.  Long text.  Long
  text.  Long text.  Long text.  Long text.  Long text.  Long text.
  Long text.  Long text.  Long text.  Long text.  Long text.  Long
  text.  Long text.  Long text.  Long text.  Long text.  Long text.
  Long text.  Long text.  Long text.  Long text.  Long text.  Long
  text.  Long text.  Long text.  Long text.  Long text.  Long text.
  Long text.  Long text.  Long text.  Long text.  }\label{fig2}} 
  \end{leftfullpage}
\end{figure}
\begin{figure}[p]
  \begin{fullpage}
    {\includegraphics[width=1.0\textwidth]{example-image-a}}
  \end{fullpage}
\end{figure}

\lipsum[2-4]

\begin{figure}[p]
  \begin{leftfullpage}
  {\caption{Left page caption.}\label{fig2}}
  \end{leftfullpage}
\end{figure}
\begin{figure}[p]
  \begin{fullpage}
    {\includegraphics[width=1.0\textwidth]{example-image-a}}
  \end{fullpage}
\end{figure}

\end{document}

模板中的几个包已经过时了,我在上面添加了建议替换的评论。

相关内容