I want to have all my figure floats framed all through the text something like those in Wikipedia pages. A pale-coloured (grey) frame and very pale background too. I am using caption
package to customize caption fonts as you can see below:
\usepackage[svgnames]{xcolor}
\DeclareCaptionFont{fontstyle}{\fontfamily{phv}\fontseries{mc}\selectfont}
\usepackage[width=0.8\textwidth ,font={small,fontstyle},labelfont={color=
{DodgerBlue},bf,up}, labelsep=period, format=plain]{caption}
I hope I was clear enough.
Thanks
Best Answer
Here you go.
NB. In a previous version of this answer, I defined a
shadedfigure
environment, which had to be used as an alternative to thefigure
environment. In this latest version, I use a trick discussed in "Duplicating Environments" to replace thefigure
environment. Therefore, this solution will now add frames and background colours to all figures throughout the entire document.