[OS X TeX] Listing indentation

David Arnold dwarnold45 at suddenlink.net
Sat Nov 13 20:15:48 EST 2010


All,

See attached:

In this frame, I'm trying to get the listings package to respect the indenting I want:

\begin{lstlisting}[escapeinside=!~]
\begin{tikzpicture}
\draw[help lines] (-5,-5) grid (5,5);
\draw[thick,<->] (-5,0) -- (5,0) node[right] {$x$};
\draw[thick,<->] (0,-5) -- (0,5) node[above] {$y$};
\begin{scope}
	\clip (-5,-5) rectangle (5,5);
	\draw [thick,blue] plot (\x,{\x*(\x+2)*(\x-2)}); 
\end{scope}
\end{tikzpicture}
\end{lstlisting}

However, everything comes out justified against the left margin. Anyone know how I can get those two lines to indent?

David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: query.pdf
Type: application/pdf
Size: 59306 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20101113/9cbbf115/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: query.tex
Type: application/octet-stream
Size: 778 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20101113/9cbbf115/attachment.obj>


More information about the MacOSX-TeX mailing list