2

After looking at this Post I am still wondering how can I change the footnote in a shade box. The code is shown below:

\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}

the result would be a footnote with letter "a" in my texLive.

How can I change it to an ordinary number footnote and specially how can I make it continue from the last footnote? {I mean, if I have footnote number 2 as the last footnote, it show me the footnote number 3 and the other footnotes after it continue as usual.

I took a look at this Post but doesn't look promising.

2

minipages have its own counter

\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}
  • How about continuing from the last footnote? Should I actually hardcode the number of the footnote and set the footnote counter after this box? Do we have any kind of box around text that the counter is as usual and does not need any extra command or at least with the help of command the footnote to be assumed as an ordinary one? – Yasser Sobhdel Dec 29 '10 at 19:38
  • sorry, forgot it. I edit the code – user2478 Dec 29 '10 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.