Hi all,
I'd like to have my floats framed. Anyone who knows a smart and simple 
solution?

I tried an failed with the following advice, that I found on the web:

--------------------------------------------------------------------
Hi, Philipp. In the past I've added a frame around my floats. Add this
to your preamble and you'll get frames and the caption in italics:

\usepackage{framed}

%% Frame the figures
\renewenvironment{figure}[1][tbph]
               {\ <at> float{figure}[#1]\begin{framed}}
               {\end{framed}\end <at> float}

%% Set the captions to be italic
\newcommand\myCaption[1]{\itshape\refstepcounter{figure}%
   \begin{center}\figurename\ \thefigure :\ #1\end{center}\upshape}
\let\caption\myCaption

-- 
Angus

------------------------------------------------------------------

I am sure this is a good advice, but I fail. I've installed framed.sty 
(in .../texmf/tex/latex/misc) and run mktexlsr (hoping, but not 
knowing that this is the right thing to do).

Latex seems to find the package, but when running latex I get three 
"dirty" errors in front of each figure in the document. They are 
(omitting the comments):

Extra \endgroup.
 \end{figure}

LaTeX Error: \begin{document} ended by \end{figure}.
 \end{figure}

LaTeX Error: \begin{figure} on input line 211 ended by \end{<}.
 \end{figure}


Anybody knows a cure?

-lars

Reply via email to