I want to put a graphic and a little linux bash code in a textbox, like the picture blow…
with the follow in problem:
-
all in a textbox with yellow backgroud
-
left part is a graphic (a finger)…
-
right part is the text(annotation), title is “Note” …. bold face…
-
annotation is in form of item (may be could use
\begin{itemize} \item...
) -
annotation may include bash code (may be could user package
listings
orminted
)…
Could any one tell me how to implement this? some one tell me should use tikz/pgf …
I'm a new user, so could not post images, please refer to
http://www.linuxfromscratch.org/lfs/downloads/stable/LFS_BOOK-6.8.pdf
with the top of page 221 and the top page 13。
(included by moderator:)
Best Answer
Here's an example that you could use as a starting point. Please refer to the documentation of the packages involved and, of course, feel free to adapt and improve my example according to your needs:
The framed package was used to create the shaded outter box; the changepage package was used to increase the left margin inside the shaded box; the TikZ package was used to draw the circle with the pointing hand from the bbding package (this can be improved), and the "Note" title; the listings package was used to typeset code inside a framed and colored box.
This is the result: