I'm using the package tcolorbox to create a file with examples Latex, I have reviewed the options tcblisting environment and use these:
- text outside listing
- listing outside text
- listing above text
- text above listing
But sometimes I want to show the example does not fit as I desire, and this comes my question: can you use an option to add a graphic instead of formatted text?. Something like "graphic" option from package "showexpl".
regards,
Pablo
EDIT: Like this
Best Answer
Starting with
tcolorbox version 2.71 (2014/02/21)
, all missingcomment outside listing
e.a. options are implemented. A comment is considered as quite anything, especially a picture. For pictures, there is the new optionimage comment
which simply sets a picture as comment.A comment outside a
tcolorbox
(left/right/below/above) is always considered as the lower part of the box content. Thus, in the following example,center lower
is centering a picture which is actually above the listing.