如何让TColorBox中,标题的脚注和内容的脚注,显示在一起?

发布于 2022-06-11 14:26:04

如下代码中,标题和内容各生成一个脚注,但是分开显示的。

有没有办法将脚注统一在一起显示?

\documentclass[UTF8,11pt,twocolumn]{ctexart}
\usepackage{tcolorbox}
\begin{document}
\begin{tcolorbox}[colbacktitle=black!10!white,
    title=title\footnote{foot1}]
    content\footnote{foot2}
\end{tcolorbox}
\end{document}

期望的结果:

title^a
---
content^b
---
a: foot1
b: foot2

查看更多

关注者
0
被浏览
971
雾月
雾月 2022-06-12
这家伙很懒,什么也没写!

tcolorbox 的每个块默认是单独放在一个 minipage 中的,如果要实现这样的需求,必须使用 \footnotemark\footnotetext 单独设置。

...[title={title\footnotemark}]...

\footnotetext{foot1}

但这样的话标题中的脚注标记与 upper 部分中的标记不同,为此,可以使用 nccfoots 宏包提供的
\Footnotemark\Footnotetext 来设置脚注标记符号。

\documentclass[11pt,twocolumn]{ctexart}
\usepackage{tcolorbox}
\usepackage{nccfoots}
\begin{document}
\begin{tcolorbox}[%colbacktitle=black!10!white,
    title=title\Footnotemark{a}]
\footnotetext[1]{foot1}
    content\footnote[2]{foot2}
\end{tcolorbox}
\end{document}

image.png

1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览