[texhax] Re: Formatting XML Code Snippets

Robin Fairbairns Robin.Fairbairns at cl.cam.ac.uk
Mon May 2 16:09:02 CEST 2005


joey coyle writes:

> I have read all of the "listings" documentation, plus the explanation 
> of "listings" in the Latex Companion.  I must be missing something...

the only thing i can see, that you might be missing, is a comment in
the caption for the table of languages available, that says that html
and xml are "preliminary".

> It seems that when using listings, you have to manually type in the 
> amount whitespace of indent for each line of code, which to me totally 
> negates the benefit of using Latex in the first place.  I don't want to 
> have to worry about formating when I am typing in the text.

indeed.  in fact the output one gets seems to me little better than
that from using \verbatiminput.  or perhaps even slightly worse, given
the odd words (random words?) set in boldface...

> Especially 
> something as mind numbingly tedious as the indent formating of XML 
> nesting.

my editor (nothing special, just emacs sgml-mode) does that for me.

it seems that a project to improve the look



More information about the texhax mailing list