[texhax] listings options
Neal H. Walfield
neal at walfield.org
Tue Jan 3 15:54:20 CET 2012
I'm using the listings package to typeset some code. I have some
short snippets that I'm including inline and some longer examples that
I put in floats. I want to apply different options to each of these.
For instance, I want the floating listings to have line numbers, but
the inline listings shouldn't. Further, the inline listings should be
slightly indented, but the floating listings shouldn't be.
I thought I'd do the following:
% Don't use visible spaces in strings.
But, that doesn't work:
! Package keyval Error: float, numbers=left undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
Any ideas or suggestions for a better approach?
More information about the texhax