Go to file
Geoffrey Poore 5a98eb48ab added note on text lexer to documentation (closes #274) 2023-07-15 14:34:46 -05:00
source added note on text lexer to documentation (closes #274) 2023-07-15 14:34:46 -05:00
tests Test case for issue 51. 2011-09-17 17:15:30 +02:00
CHANGES.md v2.7 2022-12-12 08:44:19 -06:00
README.md updated README 2022-12-12 08:25:25 -06:00


minted — highlighted source code for LaTeX


minted is a LaTeX package that facilitates expressive syntax highlighting using the Pygments library. The package also provides options to customize the highlighted source code output using fancyvrb.

For instance, this code:

string title = "This is a Unicode π in the sky"
Defined as $\pi=\lim_{n\to\infty}\frac{P_n}{d}$ where $P$ is the perimeter
of an $n$-sided regular polygon circumscribing a
circle of diameter $d$.
const double pi = 3.1415926535

will produce the following rendering:


See the documentation for examples and installation instructions.

Notice that minted requires that LaTeX run with the -shell-escape flag. This has security implications; it allows LaTeX to run external programs. -shell-escape should only be used with documents that you trust.


minted is distributed with both TeX Live and MiKTeX. It is also available from CTAN. In any case, Python and Pygments need to be installed separately.


This work may be distributed and/or modified under the conditions of the LaTeX Project Public License (LPPL), version 1.3 or later.

Additionally, the project may be distributed under the terms of the 3-Clause ("New") BSD license.

Please use the project's GitHub site at https://github.com/gpoore/minted for suggestions, feature requests, and bug reports.