Is there is any general command to put a border around any "figure" (pictures, tables, tikz diagrams). In my case I have a document which uses some images and diagrams made using the circuitikz package. I would like to enclose both of them in borders. I have referred to this post which mentions \frame{\includegraphics{image}} but this seems to work only for image files. I was looking for something more general which can be applied to anything that can be considered a figure ie anything that can wrapped in an environment (figure, table, circuitiz, etc). Does such a thing exist ? And if it does, would it be possible to control the thickness of the border ?
Asked
Active
Viewed 262 times
1
First User
- 665
fboxis what you are looking for, altough I don't know if you can control its margin. Also, you will need to wrap each environment individually, as far as I know – Jes Mar 08 '21 at 10:37tcolorboxyou can include into a colored box whatever you want. you can decide background color, frame color and width, margins between borders and contents, ... – Ignasi Mar 08 '21 at 10:59\framewill frame anything, try\frame{hello}– David Carlisle Mar 08 '21 at 12:17\restylefloat(float package) to convert figures and/or tables toboxedstyle. – John Kormylo Mar 08 '21 at 14:45