I'd like to put a background image into a minipage, stretching exactly to the surrounding fbox. What's the best option to do that? (Searching the web, I only found solutions for backgrounding the whole page)
|
You basically need to store the
I added now a
which adds the
which adds the same margin manually, places the background image and then draws a tight frame around it, so that the image is fully shown (and a little bit smaller than before). |
||||
|
|||
|
|
|
EDIT: Here a modification of the package
EDIT 2 Thanks to xport -- I added the option
A possibility is to combine
|
|||||||||||
|
|
Features: The opacity can be adjusted such that it does not distract the foreground texts. Compile the following with either
|
|||||||
|





tabupackage does something like this for table cells. Maybe it can be used otherwise as well or you can create a 1-cell table as workaround. – Martin Scharrer♦ Aug 13 '11 at 16:12