I used \hline for the purpose, but I get the following error.
Code: Select all
! Misplaced \noalign.
<recently read> \noalign
l.29 \vskip0.3em\hline
\vskip1em
?
Code: Select all
\documentclass{article}
\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}
hello\footnote{experiment}
%\newcounter{\myfootnote}
%\setcounter{\myfootnote}{\value{footnote}}
\vskip2ex
\begin{GrayBox}[1.2\textwidth]
{\LARGE How to use external \clj\ code}
\vskip0.3em\hline\vskip1em
The caller uses `use' to use \verb|CLASSPATH/hello.clj|. Now, it's OK to call
the (hi).%\footnotemark[\value{\myfootnote}]
\end{GrayBox}
hello\footnote{experiment again}
\end{document}