[pstricks] Listings in Combination with rput

Christian Häger christianhaeger at me.com
Wed Dec 14 15:50:54 CET 2011


Thanks a lot! 

I actually tried the \lstinline, which I found in the listings package doc, but it gave me another error. The key here seems to be \psverbboxtrue. 

Regards
Christian

Am 14.12.2011 um 14:10 schrieb Herbert Voss:

> Am 14.12.2011 13:39, schrieb Christian Häger:
> 
>> Why does this not compile? Are there any other options to accomplish this?
> 
> \documentclass[]{article}
> \pagestyle{empty}
> \usepackage{pstricks,listings}
> \begin{document}
> 
> \begin{pspicture}[](-4,-4)(4,4)
> \pscircle[linestyle=dotted](0,0){2}
> \psverbboxtrue
> \rput(0,0){\lstinline[basicstyle=\ttfamily]|\pscircle[linestyle=dotted](0,0){2}|}
> \end{pspicture}
> 
> \end{document}
> 
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/




More information about the PSTricks mailing list