Skip to content

Instantly share code, notes, and snippets.

Michael Steinkogler michih57

View GitHub Profile
@michih57
michih57 / pygmentize
Created Apr 6, 2012
Ugly wrapper around pygmentize to speed up pdflatex using the minted package for syntax highlighting
View pygmentize
#!/bin/bash
# An ugly hack to speed up pdflatex using the minted package
# place this file with the name 'pygmentize' somewhere on your
# path before the 'real' pygmentize, such that this file gets
# executed and can act as a wrapper around the 'real' pygmentize.
# This script computes a hash-value (md5sum) of the input file
# from minted and caches the output of pygmentize.
# The working directory is used to store the cached files (it's an ugly hack...)
# The real pygmentize command, may need customization to work on your system.
You can’t perform that action at this time.