We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [pygments]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12
votes
1answer
5k views

Minted Error “Undefined control sequence. \PYG” with TeXmaker

I have a Windows 10 computer and try to use the minted package to insert vhdl code into my LaTeX file. I did install Python and Pygments and added Python/scripts to the path. I also change the command ...
16
votes
2answers
2k views

Showing nice indentation of Python code

I use pythontex to typeset my Python listings. I'd like to have some kind of L-shaped lines, like the ones I added in the image below to clearly exhibit the indentation level of every line of code. ...
7
votes
1answer
9k views

How to install pygments on windows 7

When I run LaTeX file its gives error as "! Package minted Error: You must have pygmentize installed to use this package", you must have pygments installed. when I go through minted documentation ...
5
votes
2answers
7k views

Pygmentize not working properly with minted package in TexShop on OS X

I am using TexShop on mac OS X 10.11.1 and I'm trying to output some Python code inside my LaTeX document. Here is an example of a document I would want to produce : \documentclass[12pt]{article} \...
2
votes
2answers
2k views

Add keyword to language in minted

I use minted to highlight some javascript code. I use \documentclass{article} \usepackage{minted} \begin{document} \begin{minted}{js} const mySchema = new Schema({ name: String, is_true: ...
3
votes
2answers
7k views

How to invoke minted with python3

I have 2 versions of Python on my machine. Version 2.7.10 can be invoked with python, whereas python3 uses 3.5.0 under the hood. I'd like to use minted with python3, which is why I installed Pygments ...
1
vote
1answer
153 views

minted and different coloured pragmas

I try to see if is possible to use minted to colour #pragma statements differently based on what comes after the pragma, omp, acc. I am aware of this Highlight #pragma in code listing using minted ...
1
vote
1answer
370 views

Pygments/pythontex : how to disable red boxes around non usual characters?

Sometimes pygments puts characters in red boxes, and I'd like to disable this feature. In the following example: \documentclass[a4paper,10pt]{report} \usepackage[latin1]{inputenc} \usepackage[...