带有 fitimage + textblock + 脚注的幻灯片

带有 fitimage + textblock + 脚注的幻灯片

我想在这里发布一个使用 fitimage + textblock + footnote 的 beamer 冲突。存在冲突。我不确定是什么原因造成的。我尝试了很多方法,但都没有奏效。

这里的帮助非常大。

下面是示例。

谢谢。我期待着您的回复。

\documentclass[12pt,t]{beamer}

\usepackage{url}
\usepackage{hyperref}

\usepackage{grffile}


% %\usetheme{Madrid}
\usetheme{CambridgeUS}
% %gets rid of bottom navigation bars, then reset with {}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{headline}{}{}
\addtobeamertemplate{headline}{}{\textcolor{white}{\rule{\paperwidth}{5pt}}
}



\usepackage{xparse,calc}
\newlength\fitimageht
\newlength\fitotherht
\newsavebox\fitimagebox
\NewDocumentCommand \fitimage { m m O {} }{%
  \sbox\fitimagebox{%
     \parbox{\textwidth}{%
       #1\par
       #3
    }%
  }%
  \settototalheight{\fitotherht}{%
     \usebox\fitimagebox
  }%
  \setlength\fitimageht{\textheight}%
  \addtolength\fitimageht{-\fitotherht-\topskip-\footskip-3\baselineskip}%
  #1\par
   \centering
   \includegraphics[width=\textwidth,height=\fitimageht,keepaspectratio]{#2}\par
  #3}




%\newlength\fitimageht
%\newlength\fitotherht
%\newsavebox\fitimagebox
\NewDocumentCommand \fitimageab { m m m O {} }{%
  \sbox\fitimagebox{%
     \parbox{\textwidth}{%
       #1\par
       #4
    }%
  }%
  \settototalheight{\fitotherht}{%
     \usebox\fitimagebox
  }%
  \setlength\fitimageht{\textheight}%
  \addtolength\fitimageht{-\fitotherht-\topskip-\footskip-3\baselineskip}%
  #1\par
   \begin{columns}[onlytextwidth]
   \column{.48\linewidth}
   \centering
   \includegraphics[width=\textwidth,height=\fitimageht,keepaspectratio]{#2}
   \column{.48\linewidth}
   \centering
   \includegraphics[width=\textwidth,height=\fitimageht,keepaspectratio]{#3}
   \end{columns}\par
   #4}


\usepackage[utf8]{inputenc}

\usepackage[absolute,overlay]{textpos}
\newcommand{\pagemark}{
\begin{textblock*}{0.45\textwidth}(0.95\textwidth,0.05\textheight)
\includegraphics[width=0.20\textwidth]{star.jpg}
\end{textblock*}
}




\begin{document}

%test6
\section{Section}
\begin{frame}
\frametitle{\thesection.~\insertsection}
\begin{itemize}
\item Header
\begin{itemize}
\item this is an example

\end{itemize}
\end{itemize}
\pagemark
\end{frame}



%test
\section{test}
\begin{frame}
\fitimage{
\frametitle{\thesection.~\insertsection}
\begin{itemize}
\item test test
\begin{itemize}
\item test

\end{itemize}
\end{itemize}
\pagemark
}{test.png}[]
\end{frame}



%section281
\section{Section}
\begin{frame}
\frametitle{\thesection.~\insertsection}
\begin{itemize}
\item Header
\begin{itemize}
\item this is an example  \footnote{footnote text}
\end{itemize}
\end{itemize}
\end{frame}



\end{document}

相关内容