But, when I use the minipage with tufte-handout, and if the minipage has the footnote, the footnote is broken as the attached file.
Is there a way to correct this problem? Is there a way to restore the normal footnote behavior for minipage?
I attach the tufte class just in case.
Code: Select all
\documentclass{tufte-handout}
\usepackage{tikz}
\newcommand{\clj}{\textcolor{blue}{\textsc{clojure}}}
\title{Week 31, August$^{1st}$ 2010}
\newlength{\RoundedBoxWidth}
\newsavebox{\GrayRoundedBox}
\newenvironment{GrayBox}[1][\dimexpr\textwidth-4.5ex]%
{\setlength{\RoundedBoxWidth}{\dimexpr#1}
\begin{lrbox}{\GrayRoundedBox}
\begin{minipage}{\RoundedBoxWidth}}%
{ \end{minipage}
\end{lrbox}
\begin{center}
\begin{tikzpicture}%
\draw node[draw=black,fill=black!10,rounded corners,%
inner sep=2ex,text width=\RoundedBoxWidth]%
{\usebox{\GrayRoundedBox}};
\end{tikzpicture}
\end{center}}
\begin{document}
\vskip2ex
\begin{GrayBox}[1.2\textwidth]
The caller uses `use' to use \verb|CLASSPATH/hello.clj|. Now, it's OK to call
the (hi).\footnote{hello}
\end{GrayBox}
\end{document}