TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How do I install an individual package on a Linux system?

I'm very new to Latex and have understood basic concepts. Now I would like to get syntax highlighting. minted seems to be best choice according to Google but I you don't find detailed instructions on how to install it on a Ubuntu machine (and it is not included in any package).
I'm a bit stuck after generating the minted.sty file. What steps to take next?

share|improve this question

marked as duplicate by Joseph Wright Sep 18 '12 at 14:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

See perhaps tex.stackexchange.com/questions/28528/… – Joseph Wright Jan 4 '12 at 22:01
Did you notice the documentation file? It contains a fairly detailed installation instruction. If you’ve got stuck at a particular command, we can certainly help. – Konrad Rudolph Jan 4 '12 at 23:31
If you installed LaTeX from the repositories (e.g., using apt-get), then it is quite likely that you could copy the file to /usr/share/texmf-texlive/tex/latex/ and then run the command sudo texhash in a terminal. (Note that I've neither installed nor used minted.) I recommend you look at the FAQ for better/fuller advice. – jon Jan 5 '12 at 2:02
Closed as a 'reverse dupe': we've now got a proper answer for the general case. – Joseph Wright Sep 18 '12 at 14:34
more hints. minted is inside package "texlive-latex-extra" in Ubuntu version - Quantal (12.10), while it doesn't exist in previous ubuntu release. Which you need install .sty directly – larrycai Oct 20 '12 at 7:10
up vote 8 down vote accepted

Once you have minted installed (which comes by default with TeXLive), you'll need python-pygments

sudo apt-get install python-pygments

If you want to run your file with pdflatex, then you need to so with shell-escape

pdflatex -shell-escape myfile.tex

The documentation has this, and more information.

texdoc minted
share|improve this answer
In addition to @jon 's comment it did the trick. – phineas Jan 5 '12 at 13:29
@phineas Glad it worked :) The TeXLive in the repositories is out of date- best to go with the instructions in the linked question. – cmhughes Jan 5 '12 at 16:47

Not the answer you're looking for? Browse other questions tagged or ask your own question.