There are several questions asking how to put a box around an image, such as question 1, question 2 and question 3.


How to create a box that includes the image and the caption both. Something like as shown below:


With the framed package:

enter image description here




| improve this answer | |
  • Thank you, it worked. How can I change the liewidth of this frame? – Neeraj Hanumante May 30 at 10:56
  • 1
    To change the width of the framing rule, you can use \setlength{\FrameRule}{<width>} with a value of your choice. Pleace thic ocmmand in the preamble to influecne all framed environments in the document. Place it inside figure but before framed to only change this specific frame. – leandriis May 30 at 11:44

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.