投影机中的脚注引用与消失的图像

投影机中的脚注引用与消失的图像

我正在使用 beamer 准备我的硕士论文的演示文稿。

在框架中,我有一个项目列表,其中有一个我想使用 隐藏在第二张幻灯片中的图像\only<1>。但是,第一项包含我使用 插入的引文\footcite。起初,我用 包围了所有内容overlayarea,但生成的脚注与其他脚注不对齐,并且脚注标记不一致。

下列的这个 SE 问题,我将其移动到顶部对齐的框架,结果看起来更好。无论如何,尽管有标记,但脚注并未显示在第一个幻灯片中(当图像可视化时),我不明白为什么。

我的幻灯片

有人知道我该如何修复它,在第一张幻灯片中也显示脚注吗?提前谢谢!


以下是我使用的代码:

\begin{frame}[t]{Method}
    \framesubtitle{Adapting the Feature Pyramid Network}
    
    \begin{itemize}
        \item<1-> \alert{FPN}\footfullcite{lin2017feature} is widely used for object detection:
        \begin{itemize}
            \item Extract feature maps at multiple levels from a single image
            \item Sequence of convolutional layers, size divided by two at consecutive stages, with top-down connections
            \item Increases detection performances, but adversarial domain alignment is non-trivial
        \end{itemize}
        \only<1>{
            \begin{center}
                \item[]
                \fbox{\includegraphics[width=.5\textwidth]{imgs/fpn.png}}
            \end{center}
        }
        \item<2-> Tested approaches:
        \begin{itemize}
            \item Align levels of extracted feature pyramid
            \item Align layers of the \alert{ResNet} feature extractor, input for FPN
        \end{itemize}
        \item<2-> Extracted representation is meaningful and independent of input domain
    \end{itemize}
\end{frame}

我正在使用pdflatexbiblatex

\usepackage[backend=biber]{biblatex}
...
\addbibresource{my_biblio.bib}

并且引用包含在my_biblio.bib

@misc{lin2017feature,
      title={Feature Pyramid Networks for Object Detection}, 
      author={Tsung-Yi Lin and Piotr Dollár and Ross Girshick and Kaiming He and Bharath Hariharan and Serge Belongie},
      year={2017}
}

答案1

由于缺少 MWE 和fpn.png您正在导入的本地图像,我无法准确重现您的输出,但以下自制的 MWE 似乎复制了您的问题:

\begin{filecontents}{mybib.bib}
@misc{lin2017feature,
      title={Feature Pyramid Networks for Object Detection}, 
      author={Tsung-Yi Lin and Piotr Dollár and Ross Girshick and Kaiming He and Bharath Hariharan and Serge Belongie},
      year={2017}
}
\end{filecontents}

\documentclass{beamer}
\usepackage[backend=biber]{biblatex}
\addbibresource{mybib.bib}

\begin{document}
\begin{frame}[t]{Method}
    \framesubtitle{Adapting the Feature Pyramid Network}
    \begin{itemize}
        \item<1-> \alert{FPN}\footfullcite{lin2017feature} is widely used for object detection:
        \begin{itemize}
            \item Extract feature maps at multiple levels from a single image
            \item Sequence of convolutional layers, size divided by two at consecutive stages, with top-down connections
            \item Increases detection performances, but adversarial domain alignment is non-trivial
        \end{itemize}
        \only<1>{
            \begin{center}
                \item[]
                \fbox{\rule{.5\textwidth}{.3\textwidth}}% a box in the approx size of your image
            \end{center}
        }
        \item<2-> Tested approaches:
        \begin{itemize}
            \item Align levels of extracted feature pyramid
            \item Align layers of the \alert{ResNet} feature extractor, input for FPN
        \end{itemize}
        \item<2-> Extracted representation is meaningful and independent of input domain
    \end{itemize}
\end{frame}
\end{document}

两个 beamer 框架,第一个缺少页脚

问题似乎是center包含图像的环境占用了太多垂直空间。因此,脚注溢出了底部页边距。它在那里,但却不可见。相比之下,“较短”的图像允许打印脚注:

\fbox{\rule{.5\textwidth}{.1\textwidth}}

较短的图片意味着页脚有足够的空间

在你发布的图片中,问题来了并非来自实际图片,但由于过多的空格在下面。可以牺牲其中的一部分而不会影响可读性或美观性。

因此,我建议采取以下快速而粗略的修复方法:在环境末尾减去一些垂直空间center,为页脚留出足够的空间。脚注会弹出到预期的位置。

\only<1>{
            \begin{center}
                \item[]
                \fbox{\rule{.5\textwidth}{.3\textwidth}}
            \end{center}
            \vspace{-2.5\baselineskip}
        }

选择一个负值vspace,允许脚注而不会干扰其余布局,记住\baselineskip= 两行连续文本的基线之间的距离。

在 \end{center} 之后带有一些负 \vspace 的框架

相关内容