Tagged Questions
2
votes
1answer
66 views
Add keywords to an existing language in listings
I've already read extending a language with additional keywords and I have found kind of a solution, but I'm not quite sure if it's the right way and if I won't have problems in the future.
The ...
4
votes
2answers
104 views
Listing with mixed english and russian symbols in comments
I'm using the listings package for formatting .cpp code in LaTeX. My code needs to have mixed English and Russian words in comments. The font must be monospaced (preffered Courier family).
/* Prints ...
2
votes
0answers
45 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}
...
4
votes
1answer
99 views
Improving the POV definition in the listings package
I'm attempting to create a language definition in the listings package that mimics exactly the syntax highlighting in POV-Ray 3.6 for Windows (http://www.povray.org/download/). Here is a screenshot ...
4
votes
1answer
348 views
Change in \lstdefinelanguage the font?
Im using \lstdefinelanguage to add some new languages. Now everything is fine, I just would like to add another font to my language. I would like to use inconsolata.
I have now this:
%...
...
3
votes
2answers
270 views
Listings package with caption legend in spanish
I'm using the listings package and would like to translate the caption text displayed to Spanish, so instead of Listing 1: Dummy label it will display Listado 1: Dummy label.
This is my code:
...
1
vote
1answer
162 views
Looking for HAML and CoffeeScript support
I need support for HAML and CoffeeScript like other languages already got with the listings package.
Do you know any solutions?
2
votes
1answer
267 views
babel package and lstlisting caption incompatibility
I am using babel package for Turkish language and I also use listings package. A code sample for one of my listings is as follows:
\begin{lstlisting}[label=some-code,caption=Poo Class]
public class ...
11
votes
2answers
953 views
How to automatically include command line session output in documents?
When I write documents that contain source code examples and snippets the listings package is a great solution to include such things. Especially with the \lstinputlisting command and ...
10
votes
2answers
4k views
Extend a language with additional keywords?
I'm using listings and I want to extend a language with additional keywords for highlightning. I know there is an option morekeywords available, but that only works for a particular lstset declaration ...
7
votes
2answers
499 views
Listing language for “screen session”
I am writing a set of tutorial documents on some command-line based tools. This tutorials need to show a "screen session". Something along the lines of:
$ git status
# on branch "master"
I want to ...