在框外打印脚注

在框外打印脚注

脚注打印在框内。我希望它位于框下方。请参阅我的代码:

\documentclass{beamer}
\usepackage[most]{tcolorbox}
\usepackage{multirow}
\useinnertheme{rounded}

\usetikzlibrary{matrix, arrows.meta, calc, positioning}
\tikzset{myarrow/.style={-Latex, rounded corners},}

\newtcolorbox{mybox}[2][]{%
    colback=bg, 
    colframe=blue!75!black,
    fonttitle=\bfseries,
    coltitle=blue!75!black, 
    colbacktitle=bg,
    enhanced,
    attach boxed title to top left={yshift=-1.2mm, xshift=2mm},
  title=#2,
  #1}

\begin{document}

\begin{frame}{Parameterization of Graph Isomorphism Problem}

\begin{mybox}[colframe=green!75!black,coltitle=green!75!black, ]{GI parameterized by degree}

\begin{itemize}
    \item Given : $G$ and $H$, a parameter $d$ ( maximum degree ) \\~\\
    \item Decide : Is $G \cong H$?\\~\\
    \item $n^{O(d)}$ running time\footnote{This result is taken from paper titled " lsomorphism of Graphs of Bounded Valence Can Be Tested in Polynomial Time" by E M Luks} algorithm by E.M Luks
\end{itemize}
\end{mybox}

\end{frame}
\end{document}

查看编译后的输出: 在此处输入图片描述

答案1

不能直接使用\footnote将其放在盒子外面,但使用\footnotemark和 也after=\footnotetext{...}可以,但远不够方便。

\documentclass{beamer}
\usepackage[most]{tcolorbox}
\usepackage{multirow}
\useinnertheme{rounded}

\usetikzlibrary{matrix, arrows.meta, calc, positioning}
\tikzset{myarrow/.style={-Latex, rounded corners},}

\newtcolorbox{mybox}[2][]{%
    colback=bg, 
    colframe=blue!75!black,
    fonttitle=\bfseries,
    coltitle=blue!75!black, 
    colbacktitle=bg,
    enhanced,
    attach boxed title to top left={yshift=-1.2mm, xshift=2mm},
  title=#2,
  #1}

\begin{document}

\begin{frame}{Parameterization of Graph Isomorphism Problem}

\begin{mybox}[colframe=green!75!black,coltitle=green!75!black,after={\refstepcounter{footnote}\footnotetext{This result is taken from paper titled " lsomorphism of Graphs of Bounded Valence Can Be Tested in Polynomial Time" by E M Luks}}]

\begin{itemize}
    \item Given : $G$ and $H$, a parameter $d$ ( maximum degree ) \\~\\
    \item Decide : Is $G \cong H$?\\~\\
    \item $n^{O(d)}$ running time\footnotemark[\the\numexpr\value{footnote}+1] algorithm by E.M Luks
\end{itemize}
\end{mybox}

\end{frame}
\end{document}

在此处输入图片描述

答案2

您可以使用\footnote[frame]{...}将脚注放在框架的底部:

\documentclass{beamer}
\usepackage[most]{tcolorbox}
\usepackage{multirow}
\useinnertheme{rounded}

\usetikzlibrary{matrix, arrows.meta, calc, positioning}
\tikzset{myarrow/.style={-Latex, rounded corners},}

\newtcolorbox{mybox}[2][]{%
    colback=bg, 
    colframe=blue!75!black,
    fonttitle=\bfseries,
    coltitle=blue!75!black, 
    colbacktitle=bg,
    enhanced,
    attach boxed title to top left={yshift=-1.2mm, xshift=2mm},
  title=#2,
  #1}

\begin{document}

\begin{frame}{Parameterization of Graph Isomorphism Problem}

\begin{mybox}[colframe=green!75!black,coltitle=green!75!black, ]{GI parameterized by degree}

\begin{itemize}
    \item Given : $G$ and $H$, a parameter $d$ ( maximum degree ) \\~\\
    \item Decide : Is $G \cong H$?\\~\\
    \item $n^{O(d)}$ running time\footnote[frame]{This result is taken from paper titled " lsomorphism of Graphs of Bounded Valence Can Be Tested in Polynomial Time" by E M Luks} algorithm by E.M Luks
\end{itemize}
\end{mybox}

\end{frame}
\end{document}

在此处输入图片描述

相关内容