tikzbox 和 tcolorbox 之外的脚注

tikzbox 和 tcolorbox 之外的脚注

我使用tikztcolorbox来表示定理。此外我希望脚注位于方框之外、页面底部,并且与其他脚注具有相同的编号我想要类似,但编号样式与外面的脚注相同。

有什么解决办法吗?

这是我的代码

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{shapes,snakes}

\usepackage[most]{tcolorbox}

\usepackage{environ}

\renewcommand{\thefootnote}{[\Roman{footnote}]}% Footnote style!!!

\tikzstyle{mybox} = [draw=black, fill=white, very thick,
rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\NewEnviron{tikzbox}{\begin{tikzpicture}
\node [mybox] (box){%
    \begin{minipage}{0.50\textwidth}
            \BODY
    \end{minipage}
};
\end{tikzpicture}%
}

\NewEnviron{Tbox}{
    \begin{tcolorbox}[enhanced,
        breakable]
        \BODY
    \end{tcolorbox}
}


\begin{document}

Some main text Some main text Some main text Some main text Some main text Some main text\footnote{The first footnote.}

Other main text Other main text Other main text Other main text\footnote{The second footnote.}

\begin{tikzbox}
Some tikzboxed text Some tikzboxed text Some tikzboxed text\footnote{I want this footnote outside of the box and with number [III].}
\end{tikzbox}

\begin{Tbox}
Some tcolorboxed text Some tcolorboxed text Some tcolorboxed text Some tcolorboxed text Some tcolorboxed text Some tcolorboxed text\footnote{I want this footnote outside of the box and with number [IV].}
\end{Tbox}

\end{document}

它看起来是这样的:

在此处输入图片描述

提前致谢!!!

答案1

我不确定什么在箱子外面意思是。如果您希望脚注位于框的正下方,您可以尝试使用bicolor脚注位于下部的框。以下不是完美的解决方案,而是一个起点。

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{shapes,snakes}

\usepackage[most]{tcolorbox}

\usepackage{environ}

\renewcommand{\thefootnote}{[\Roman{footnote}]}% Footnote style!!!

\tikzstyle{mybox} = [draw=black, fill=white, very thick,
rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]
\NewEnviron{tikzbox}{\begin{tikzpicture}
\node [mybox] (box){%
    \begin{minipage}{0.50\textwidth}
            \BODY
    \end{minipage}
};
\end{tikzpicture}%
}

\NewEnviron{Tbox}{
    \begin{tcolorbox}[enhanced,
        breakable,
        bicolor,
        colback=white,
        colbacklower=white,
        fontlower=\footnotesize,
        bottom=1mm,
        middle=1mm,
        frame hidden,
        overlay={\draw[rounded corners] (frame.north west) rectangle (segmentation.south east);},
        ]
        \BODY
    \end{tcolorbox}
}

\newcommand{\myfootnote}[1]{\tcblower \footnotemark #1}



\begin{document}

Some main text Some main text Some main text Some main text Some main text Some main text\footnote{The first footnote.}

Other main text Other main text Other main text Other main text\footnote{The second footnote.}

\begin{tikzbox}
Some tikzboxed text Some tikzboxed text Some tikzboxed text\footnote{I want this footnote outside of the box and with number [III].}
\end{tikzbox}

\begin{Tbox}
Some tcolorboxed text Some tcolorboxed text Some tcolorboxed text Some tcolorboxed text Some tcolorboxed text Some tcolorboxed text\myfootnote{I want this footnote outside of the box and with number [IV].}
\end{Tbox}

\end{document}

在此处输入图片描述

如果您希望脚注与常规脚注一样,请遵循 ferahfeza 的建议。

答案2

我找到了 Bernard 的解决方案: 定理环境之外的脚注 很有用。

抱歉,我回答了却没有发表评论,我还不能发表评论 :(

相关内容