Skip to content

Instantly share code, notes, and snippets.

@nikolavojicic
Last active February 2, 2025 02:08
Show Gist options
  • Save nikolavojicic/2ee308dc772c5b03d78a9f21b64deb45 to your computer and use it in GitHub Desktop.
Save nikolavojicic/2ee308dc772c5b03d78a9f21b64deb45 to your computer and use it in GitHub Desktop.
LaTeX Minted on Windows
  • Install Python: https://www.python.org/downloads/windows/
  • Add to Path system environment variable: C:\Users\<USER>\AppData\Local\Programs\Python\Python<VERSION>\Scripts
  • Run in CMD: pip install Pygments
  • Run in CMD: pip install latexminted
  • Be sure to run all MikTex updates
  • Be sure to use: \usepackage[highlightmode=immediate]{minted} (see: gpoore/minted#418 (comment))
  • Be sure to use flag: --shell-escape, e.g. pdflatex --shell-escape some-file.tex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment