Beamer 中的左对齐脚注

Beamer 中的左对齐脚注

我怎样才能将脚注左对齐,以便“aligned”中的“a”直接位于“This”中的“T”下方?使用\usepackage[flushmargin]{footmisc}“吃掉”脚注。

\documentclass{beamer}
\begin{document}

\frame{

Some text\footnote{This is a footnote spanning more than one line, that I would like to be aligned left.}

}

\end{document}

投影机

答案1

由于beamer重新定义了许多命令;大多数时候最好不要使用包,而是重新定义内部命令beamer

下面,有一个选项重新定义内部\beamer@framefootnotetext(来自beamerbaseframecomponents.sty)以使用\parbox脚注文本:

\documentclass{beamer}

\makeatletter
\renewcommand<>\beamer@framefootnotetext[1]{%
  \global\setbox\beamer@footins\vbox{%
    \hsize\framewidth
    \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\parbox[t]{.9\textwidth}{#1\@finalstrut\strutbox}\vskip1sp}}%
    \color@endgroup}%
}
\makeatother

\begin{document}

\begin{frame}
Some text\footnote{This is a footnote spanning more than one line, that now after some modifications is aligned left.}
Some other text\footnote{This is another footnote spanning more than one line, that is also aligned left.}
\end{frame}

\end{document}

在此处输入图片描述

相关内容