On Fri, Aug 02, 2002 at 08:19:08PM +0100, Angus Leeming wrote:
> I'd like to add a frame around my figures. However, I find that this works 
> only so long as I position the figure Here, definitely. Anything else and 
> LaTeX complains.
> Ideally, I'd like to renew the figure environment, but again this is beyond 
> my skills. I've read Herbert's tip 

\usepackage{framed}
\renewenvironment{figure}[1][tbp]
               {\@float{figure}[#1]\begin{framed}}
               {\end{framed}\end@float}


> Centering all floats
> If you want to center for example all of your uncentered figures, you can 
> do this with 
> 
> \renewenvironment{figure}[1][\fps@figure]{%
>       \@float{figure}[#1]%
>     \centering
>   }{%
>     \end@float
>   }

BTW, this is wrong. The \fps@figure should be replaced by tbp.




Reply via email to