October 2015
Intermediate to advanced
378 pages
7h 44m
English
You can add a simple frame to an image or to text by using the \frame{...}, \framebox{...}, or \fbox{...} commands. However, this would give a simple box with thin black lines and a certain distance to the content. How about changing the color, line thickness, or distance? The classic way to do the latter is by changing the LaTeX lengths \fboxrule and \fboxsep. It's a bit laborious, especially when the lengths can vary. It can be made easier.
We will load the adjustbox package. It provides several useful commands for modifying boxes. It implicitly loads the graphicx package and exports its own features to the \includegraphics command. Follow these steps:
xcolor package:\usepackage{xcolor}Read now
Unlock full access