[Tex/LaTex] Make all figures and tables framed by default?

floatsframed

Possible Duplicate:
Rounded corner colored box around figure

I'm interested in having all of my \begin{figure} and \begin{table} environments automatically get framed. Is there any way to do this? I know that I can use the solution in Border or frame around figure, but that doesn't change the default behavior. Is there any way to do that?

Best Answer

\documentclass{article}   
\usepackage[framestyle=fbox,framefit=yes,heightadjust=all,framearound=all]{floatrow}    
\begin{document}

\begin{figure}
foo\caption{bar}
\end{figure}

\begin{table}
foo\caption{bar}
\end{table}

\end{document}

enter image description here