On 4/30/08, Ludovic Kuty <
mailing@...> wrote:
> Hi,
>
> I would like to be able to draw with pgf/tikz in verbatim environments
> like lstlisting (package listings) to annotate source code with
> graphic elements (rectangle, arrows, ...).
> I tried but without success. The tikz code appears verbatim too. I
> searched through the archive of the mailing list but did not find
> anything allowing me to solve the problem.
>
> Any idea will be useful.
>
In the listings manual, section 4.14, you can find some information on
how to escape to LaTeX in a lstlisting environment:
http://www.ctan.org/tex-archive/macros/latex/contrib/listings/listings.pdfIt should be possible to embed tikz code inside a listing, but
unfortunately I don't have access to tikz at the moment, so I have not
tried it yet. PGF's 'remember picture' feature could be useful too.
Hope this helps!
- Kjell Magne Fauske
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users