Tagged Questions
2
votes
1answer
94 views
How to define HTML keywords in \listings
I'm working on the implementation of a HTML5 code style for \listings.
Currently I have the problem that there are different ways to define HTML tags. In my example, I don't get /p in ...
3
votes
1answer
129 views
How to use angle brackets for a keyword in \listings?
I've got a code of a HTML website that I want to show in my LaTeX document. The problem is, that the HTML code has a tag called <canvas> and the JavaScript code inside the HTML document has a ...
10
votes
1answer
434 views
\listings code style for HTML5 (CSS, HTML, JavaScript)
I would like to create a code style for HTML5 that can be used with the \listings package.
An HTML5 document consists of three languages: CSS, HTML and JavaScript. That makes the whole thing a bit ...
2
votes
0answers
44 views
Override properties of a predefined listing style
I use the listings package and I want to override an attribute of the HTML style.
Unfortunately my code overrides the whole HTML style and not just a single property:
\lstloadlanguages{HTML}
...
1
vote
1answer
53 views
How to use listings with multiple languages?
I've got a HTML document with JavaScript inside that I want to show in my article.
For that I would like to use my JavaScript and HTML formatting. How can I get the listings package to use two ...
2
votes
1answer
908 views
How to highlight own keywords in HTML lstlistings?
I would like to highlight some words in a lstlisting. The language is HTML.
However, \emph seems not to be working with HTML.
Any suggestions how I could work around this problem?
Right now I have:
...
4
votes
1answer
329 views
How to get tex4ht to respect listings styling better ?
I've been producing PDFs and HTML from Latex sources, using tex4ht for the HTML (I'm on Debian/Lenny; so whatever versions are default on that).
I'm using the listings package to include source code.
...