From: Kelly <kakearney@nospamgmail.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Publish to latex with syntax highlighting
Message-ID: <ef558a9.-1@webcrossing.raydaftYaTP>
Date: Tue, 1 May 2007 16:02:08 -0400
Lines: 18
NNTP-Posting-Host: 140.180.1.65
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:406291


When I publish a document to html, the blocks of code in the final
document use the colored syntax highlighting corresponding to the
Matlab editor, and are also surrounded by a light gray box. However,
when I publish to Latex, the code remains in black and is not offset
from the rest of the text, making it a little more difficult to
distinguish descriptive text from the code in the final document.

Is there a way to add syntax highlighting to the final Latex
document? There is a small section in the mxdom2latex.xsl file that
seems to have this aim (lines 162 - 180). However, I don't knw much
about Latex coding beyond the very basics, so I may be
misunderstanding it.

For the record, I'm running R2006b beta for Intel Macs on a MacOS X
system.

Thanks,
Kelly