[OS X TeX] Listing indentation
Herbert Schulz
herbs at wideopenwest.com
Sun Nov 14 02:41:59 CET 2010
On Nov 13, 2010, at 7:15 PM, David Arnold wrote:
> 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
Howdy,
Try changing the Tabs to Spaces (I like using 2 Spaces).
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the macostex-archives
mailing list