Tagged Questions
1
vote
1answer
111 views
Highlighting a Chunk of Code within a lstlisting by specifying the line number
This question in somehow related to http://stackoverflow.com/questions/1304315/highlighting-a-chunk-of-code-within-a-lstlisting but not exactly the same.
I want to make some slides with animation ...
1
vote
1answer
118 views
How can I highlight Java bytecode?
I usually use minted to display highlighted source code. But it seems as if minted would not support Java bytecode (see list of supported languages).
How can I insert highlighted java bytecode?
(Is ...
4
votes
1answer
443 views
Highlight certain texts in listings or minted [duplicate]
Possible Duplicate:
Manual highlight of TeX code in a verbatim environment
I want to highlight certain parts of a program output listing which represent user input. For example I want to ...
1
vote
0answers
108 views
Print programs with its proper syntax by minted [closed]
I have post a question several weeks ago: Print programs with its proper syntax, and I finally decided to use the package minted.
I summarize a little bit my needs here: the language I define has its ...
2
votes
1answer
206 views
Force minted to insert new space in code that won't fit on the page
Essentially I would like to have listings' breaklines option on minted. I can't seem to find it. I could manually insert new lines but it becomes difficult when the code comes from an external file.
3
votes
0answers
310 views
Syntax highlighting blocks of code with LaTeX and literate programming tools [closed]
Using packages like minted (thanks to Pygments), LaTeX can generate beautifully highlighted/colored source code. Literate programming tools such as noweb and cweb can generate beautifully typeset and ...
3
votes
1answer
200 views
Loading babel with the 'hungarian' (magyar) option breaks 'pygments' code highlighting
Given the following TeX file everything works as expected: the (Hungarian) text Árvíztűrő Tükörfúrógép typesetted as expected and the code snippet also formatted brilliantly.
\documentclass{article}
...
6
votes
2answers
558 views
Red box drawn around question-mark operator in minted Erlang code
I'm trying to include some Erlang code samples in a document using the minted package which include the ? operator to denote a message being received from a process. The code
\documentclass{minimal}
...
15
votes
2answers
2k views
Code spanning over two pages with minted, inside listing with caption
I am trying using minted to display some code in my document, but the code is long and spans over two pages, this works fine, however when I place my code inside
\begin{listing}
...
4
votes
2answers
521 views
pass “global” options to minted/fancyvrb
Is there a way to override default options for the minted environment, rather than having to specify them for each and every snippet of code ?
In other words, is there an equivalent to listings's ...
43
votes
6answers
7k views
Syntax Coloring in LaTeX
Is there any way to include Python code in a LaTeX file and automatically color its syntax? Is it possible to do syntax coloring with any other language? If yes what packages can I use to do that?