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[width=0.8\textwidth ,font={small,fontstyle},labelfont={color=
{DodgerBlue},bf,up}, labelsep=period, format=plain]{caption}

I hope I was clear enough. Thanks

  • I took the liberty of changing your title to make it more descriptive of your problem. – John Wickerson May 29 '13 at 9:44
  • Has not solved my problem yet. Thanks by the way. – Milad O. May 29 '13 at 9:48

Here you go.









enter image description here

NB. In a previous version of this answer, I defined a shadedfigure environment, which had to be used as an alternative to the figure environment. In this latest version, I use a trick discussed in "Duplicating Environments" to replace the figure environment. Therefore, this solution will now add frames and background colours to all figures throughout the entire document.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.