[texhax] Numbering/labeling verbatim code segments in a document
Christopher Bourke
cbourke at cse.unl.edu
Sun Feb 15 15:10:50 CET 2009
> Since I am copying these code segments to proper source
> files and testing them, I would like to:
>
> 1) Have them numbered/identified as <chapter>.<segment>
> in the text
> 2) Have them captioned with a short description of what
> they do so that I could have the equivalent of a
> table of figures that meaningfully lists the code
> snippets, where they are in the text and the description
...
> some of the code environments - but none seem to do quite the right
> thing.
When you say some of the code environments, have you also tried using the
listings package? If that's not enough, you may need to define your own
floating body environment.
More information about the texhax
mailing list