在投影机中水平放置脚注

在投影机中水平放置脚注

你好,我想知道是否可以将投影仪脚注放入多列或显示为水平而不是垂直。

\documentclass{beamer}
\usepackage{booktabs}
\begin{document}

\begin{frame}
\begin{table}[htbp]
  \centering
%  \caption{Add caption}
            \resizebox{\textwidth}{!}{%
    \begin{tabular}{rrr}
    \toprule
    \centering
    Animal estimated by tracking  & \textbf{2 Equation approach} & 1 Equation \\
    50\%   & $\frac{\partial C\footnote{dye }(t,\vec{x})}{}$      &  \\
     &  $\frac{\partial \alpha\footnote{age }(t,\vec{x})}{}$     & $\frac{\partial A\footnote{A refers to "animal"}}{}$ \\
    \bottomrule
    \end{tabular}}%
%  \label{tab:addlabel}%
\end{table}%
\end{frame}
\end{document}

如果有人能向我解释如何获取水平脚注,我将不胜感激。

答案1

标准 LaTeX 包(例如footmiscbigfoot或 )manyfoot在此无法使用beamer(它们要么不兼容,要么产生不良影响)。

这里有一种方法可以实现多列(嗯,在本例中是两列)脚注;需要对一些内部命令进行重新定义(新代码标记为%NEW):

\documentclass{beamer}
\usepackage{multicol}

\makeatletter
% All the following is NEW
\renewcommand{\@makefntext}[1]%
{\parindent 0em\everypar={\hangafter 1\hangindent  0em}\raggedright
\noindent\@makefnmark\hskip 1em\ignorespaces#1}
%%%%%%%%%%%%%%%%%%%%
\renewcommand<>\beamer@framefootnotetext[1]{%
  \global\setbox\beamer@footins\vbox{%
    \hsize0.5\framewidth%NEW
    \textwidth\hsize
    \columnwidth\hsize
    \unvbox\beamer@footins
    \reset@font\footnotesize
    \@parboxrestore
    \protected@edef\@currentlabel
         {\csname p@footnote\endcsname\@thefnmark}%
    \color@begingroup
      \uncover#2{\@makefntext{%
        \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}}%
    \color@endgroup}}
\def\beamer@autobreakframebox{%
  \global\setbox\beamer@splitbox=\box\voidb@x%
  \ifbeamer@autobreak%
    % Ok, frame was overful -> split it!
    \setbox\@tempboxa=\vsplit\beamer@framebox to\beamer@autobreakfactor\textheight%
    \global\setbox\beamer@splitbox=\box\beamer@framebox%
    \@tempdima=\ht\beamer@splitbox%
    \ifdim\@tempdima<\beamer@autobreaklastheight%
      \global\beamer@autobreaklastheight=\@tempdima\relax%
    \else%
      \setbox\@tempboxa=\vbox{\unvbox\@tempboxa\unvbox\beamer@splitbox}%
      \global\setbox\beamer@splitbox=\box\voidb@x%
    \fi%
    \setbox\beamer@framebox=\vbox to\textheight{\unvbox\@tempboxa%
      \vskip\beamer@framebottomskipautobreak%
      \ifvoid\beamer@splitbox%
        \ifvoid\beamer@footins%
        \else%
          \begingroup
            \usebeamercolor*[fg]{footnote}%
            \footnoterule %
\setlength{\multicolsep}{0pt}%NEW
\begin{multicols}{2}%NEW
            \unvbox \beamer@footins%
\end{multicols}%NEW
            \global\setbox\beamer@footins=\box\voidb@x%
          \endgroup  
        \fi%
      \fi%
      \beamer@exitcode%
    }%
  \else%
    \setbox\beamer@framebox=\vbox to\textheight{\unvbox\beamer@framebox%
      \vskip\beamer@framebottomskip%
      \ifvoid\beamer@footins%
      \else%
        \begingroup
          \usebeamercolor*[fg]{footnote}%
          \footnoterule %
\setlength{\multicolsep}{0pt}%NEW
\begin{multicols}{2}%NEW
          \unvbox \beamer@footins %
\end{multicols}%NEW
          \global\setbox\beamer@footins=\box\voidb@x%
        \endgroup 
      \fi%
      \beamer@exitcode}%
    \global\setbox\beamer@footins=\box\voidb@x%
  \fi%
  }
\makeatother
\setbeamertemplate{navigation symbols}{}

\begin{document}

\begin{frame}
\frametitle{Multicolumn footnotes}
Some\footnote{A first footnote with some additional text just for the example; and now I add some more text and perhaps some additional text to see if it works as intended} test text\footnote{A second footnote}
\end{frame}

\end{document}

在此处输入图片描述

就个人观点而言,我不喜欢太多标准脚注,也不喜欢多列脚注。

答案2

parnotespackage 可以帮你完成这个。只需添加包并使用\parnote代替\footnote,然后\parnotes在你想要打印的地方发布。

\documentclass{beamer}
\usepackage{booktabs}
\usepackage{parnotes}
\begin{document}

\begin{frame}
\begin{table}[htbp]
  \centering
%  \caption{Add caption}
            \resizebox{\textwidth}{!}{%
    \begin{tabular}{rrr}
    \toprule
    \centering
    Animal estimated by tracking  & \textbf{2 Equation approach} & 1 Equation \\
    50\%   & $\frac{\partial C\parnote{dye }(t,\vec{x})}{}$      &  \\
     &  $\frac{\partial \alpha\parnote{age }(t,\vec{x})}{}$     & $\frac{\partial A\parnote{A refers to "animal"}}{}$ \\
    \bottomrule
    \end{tabular}}%
%  \label{tab:addlabel}%
\end{table}%
%\vfill % <-- compare difference
\parnotes
\end{frame}
\end{document}

我认为这个软件包可以让你轻松地在幻灯片中添加段落脚注。你应该问自己,这些脚注是否有必要,或者是否有更聪明、更不分散注意力的方式来传达这些信息。

相关内容