保存笔记问题

保存笔记问题

我使用tikz-boxes 和tcolorbox我希望脚注位于页面底部的方框之外,并与其他脚注的编号相同。总而言之,我希望 tikz 或 tcolorbox 脚注与其他的脚注没有区别(见这里)。

所以我尝试了 Martin Scharrer 的解决方案这个问题,使用savenotes环境。我把savenotes环境包裹起来tikzpicturetcolorbox。代码如下:

\documentclass{article}

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

\usepackage[most]{tcolorbox}

\usepackage{environ}

\renewcommand{\thefootnote}{[\Roman{footnote}]}

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

}

\NewEnviron{Tbox}{
        \begin{savenotes}% I add this!!!
    \begin{tcolorbox}[enhanced,
        breakable]
        \BODY
    \end{tcolorbox}
\end{savenotes}% I add this!!!

}


\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, at the bottom of the page 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, at the bottom of the page and with number [IV].}
\end{Tbox}

\end{document}

问题是我收到一条错误消息,而不是我预期的结果。奇怪的是,Martin Scharrer 的代码(复制粘贴)运行良好。这里log-file。

先谢谢了!!!

相关内容