脚注中引用了 tcolorbox 内容

脚注中引用了 tcolorbox 内容

如何将 footcites 放置在幻灯片的底部(见下图)?

在此处输入图片描述

出现了类似的问题这里我尝试去适应带有脚注标签的解决方案其中使用了命令序列:\footnote{\label{name}Some footnote text.} \footnotemark[\ref{name}],但它不是该\footcitetexts命令的解决方案。MWE:

\documentclass{beamer}
\usetheme{Frankfurt}
\usepackage[polish]{babel}
\usepackage{polski}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tcolorbox}
\usepackage[style=verbose-ibid,sortcites]{biblatex}

\setbeamertemplate{navigation symbols}{}    % switch off buttons on the slide bottom

\usepackage{filecontents}
\begin{filecontents}{mylist.bib}
@book{roadrunner,
    author =    {Geococcyx californianus},
    title =     {Gregorian choir}
}
@book{cookiemonster,
    author =    {Blue monster},
    title =     {Astronautics}
}
\end{filecontents}
\addbibresource{mylist.bib}

\begin{document}
\begin{frame}
    \centering
    \begin{tcolorbox}[title=This is tcolorbox]
        Aaa aaa aaa aaa\footcite{roadrunner}.
    \end{tcolorbox}
    \begin{tcolorbox}[title=This is tcolorbox]
        Bbb bbb bbb bbb\footcites[p. 100]{cookiemonster}[p. 200]{roadrunner}.
    \end{tcolorbox}
\end{frame}
\end{document}

顺便问一下:如果需要,是否可以确保\footcites内容自动包装到盒子中?(在上图中,它超出了盒子边界。)

编辑(评论后):如果单个 tcolorbox 中有多个引用,则计数器是错误的(在页面底部)。修改后的 MWE:

\documentclass{beamer}
\usetheme{Frankfurt}
\usepackage[polish]{babel}
\usepackage{polski}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tcolorbox}
\usepackage[style=verbose-ibid,sortcites]{biblatex}

\setbeamertemplate{navigation symbols}{}    % switch off buttons on the slide bottom

\usepackage{filecontents}
\begin{filecontents}{mylist.bib}
@book{roadrunner,
    author =    {Geococcyx californianus},
    title =     {Gregorian choir}
}
@book{cookiemonster,
    author =    {Blue monster},
    title =     {Astronautics}
}
\end{filecontents}
\addbibresource{mylist.bib}

\begin{document}
\begin{frame}
    \centering
    \begin{tcolorbox}[title=This is tcolorbox]
        Aaa aaa aaa aaa\footnotemark

        Ccc ccc ccc ccc\footnotemark.
    \end{tcolorbox}
    \footcitetext{roadrunner}
    \footcitetext{cookiemonster}
    \begin{tcolorbox}[title=This is tcolorbox]
        Bbb bbb bbb bbb\footnotemark.
    \end{tcolorbox}
    \footcitetexts[p. 100]{cookiemonster}[p. 200]{roadrunner}
\end{frame}
\end{document}

该问题与上面链接的问题有点相似。输出:

在此处输入图片描述

答案1

使用\footnotemark\footcitetext

\begin{document}
\begin{frame}
    \centering
    \begin{tcolorbox}[title=This is tcolorbox]
        Aaa aaa aaa aaa\footnotemark.
    \end{tcolorbox}
    \footcitetext{roadrunner}
    \begin{tcolorbox}[title=This is tcolorbox]
        Bbb bbb bbb bbb\footnotemark.
    \end{tcolorbox}
    \footcitetexts[100]{cookiemonster}[200]{roadrunner}
\end{frame}
\end{document}

由于您在使用连续脚注时遇到问题,请获取nextfootnote来自 TeXwelt 的 Ijon Tichy 的软件包并使用

\newcommand*{\mkbibnextfootnotetext}[1]{\nextfootnotetext{\blxmkbibnote{foot}{#1}}}
\DeclareCiteCommand{\footcitetext}[\mkbibnextfootnotetext]
  {\usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \usebibmacro{cite}}
  {\multicitedelim}
  {\usebibmacro{cite:postnote}}

\begin{document}
\begin{frame}
    \centering
    \begin{tcolorbox}[title=This is tcolorbox]
        Aaa aaa aaa aaa\nextfootnotemark\nextfootnotemark
    \end{tcolorbox}
    \footcitetext{roadrunner}\footcitetext{roadrunner}
    \begin{tcolorbox}[title=This is tcolorbox]
        Bbb bbb bbb bbb\nextfootnotemark.
    \end{tcolorbox}
    \footcitetexts[100]{cookiemonster}[200]{roadrunner}
\end{frame}
\end{document}

相关内容