Lars Risan schrieb:
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
You should replace every " <at> " with "@".
HTH,
Dominik.-