看完这个之后邮政我仍然想知道如何更改阴影框中的脚注。代码如下所示:
\documentclass[a4paper,12pt]{report}
\usepackage{amsmath}
\usepackage{array}
\usepackage{fancybox}
\begin{document}
\newenvironment{boxedlaw}[1]
{\begin{Sbox}\begin{minipage}{#1}}
{\end{minipage}\end{Sbox}\begin{center}\shadowbox{\TheSbox}\end{center}}
\renewcommand*{\thefootnote}{\fnsymbol{footnote}}
\begin{boxedlaw}{\textwidth}
This is just a simple text to fill in the line. You notice that if I put a footnote here
\footnote{This is the foot note}
the shape or numbering used would be out of my control.How can I control that?
\end{boxedlaw}
\end{document}
结果将是我的 texLive 中的脚注带有字母“a”。
我怎样才能将其更改为普通的数字脚注,特别是怎样才能使其从最后一个脚注继续?{我的意思是,如果我将脚注编号 2 作为最后一个脚注,它会显示脚注编号 3,并且其后的其他脚注将照常继续。
我看了看这个邮政但看上去不太有希望。
答案1
minipages 有自己的计数器
\documentclass[a4paper,12pt]{report}
\usepackage{amsmath}
\usepackage{array}
\usepackage{fancybox}
\newenvironment{boxedlaw}[1]
{\begin{Sbox}\begin{minipage}{#1}\setcounter{mpfootnote}{\value{footnote}}}
{\end{minipage}\end{Sbox}\begin{center}\shadowbox{\TheSbox}
\setcounter{footnote}{\value{mpfootnote}}\end{center}}
\renewcommand*\thempfootnote{\arabic{mpfootnote}}
\begin{document}
foo\footnote{foo}
\begin{boxedlaw}{\textwidth}
This is just a simple text to fill in the line. You notice that if I put a footnote here
\footnote{This is the foot note}
the shape or numbering used would be out of my control.How can I control that?
\end{boxedlaw}
bar\footnote{bar}
\end{document}