emphasizing a few additional keyword in a listing
Stefan Kost <[email protected]>
| Newsgroups | gmane.comp.tex.tetex.general |
|---|---|
| Organization | HTWK Leipzig |
| Message-ID | <[email protected]> |
hi all,
I have spend some days already to get a few keyword emphasized by color in a
listing. Here is what I am doing:
\usepackage{color}
\definecolor{Red}{rgb}{1.0,0.0,0.0}
\lstset{
basicstyle=\tiny,
commentstyle=\color{DarkBlue},
stringstyle=\color{DarkGreen},
emphstyle=\color{Red},
showstringspaces=false,breaklines=true,numbers=left
}
...
\lstinputlisting[tabsize=4,language=XML,emph={style}]{./examples/styletheme.xml}
...
\lstinputlisting[tabsize=4,language=XML,emph={icon,fg_color}]{./examples/styledirect.xml}
...
I read the dvi for the listings package (v1.0 here) to no avail.
I've tried all sort of variations:
emphstyle=\underbar
or putting the emphstyle into the \lstset command
or even defining the words in the \lstset command.
Further I've tried putting speces around the word - nothing changes.
I have also grepped the ugly log-dump of the latex run (still wish latex could
do formated = parsable log output some day ;-) ) and there is no error in there.
has anyone ever seen this actually working?
Stefan
--
\|/ Stefan Kost
<@ @> private business
+-oOO-(_)-OOo------------------------------------------------------ - - - - -
| __ Address Simildenstr. 5 HTWK Leipzig, Fb IMN, Postfach 301166
| /// 04277 Leipzig 04251 Leipzig
| __ /// Germany Germany
| \\\/// Phone +49341 2253538 +49341 30766101
| \__/ EMail st_kost_at_gmx.net kost_at_imn.htwk-leipzig.de
| WWW www.sonicpulse.de www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - - - -
kost.vcf
(text/x-vcard, 345 B)
begin:vcard fn:Stefan Kost n:Kost;Stefan org:HTWK Leipzig;FB. IMN adr:;;Postfach 301166;Leipzig;;04251;Germany email;internet:[email protected] title:Dipl. Informatiker tel;work:+49341 30766440 tel;home:+49341 2253538 tel;cell:+49178 3183742 x-mozilla-html:FALSE url:http://www.imn.htwk-leipzig.de/~kost/about.html version:2.1 end:vcard