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

How do I install missing style files with macports' tex install?

 File `nag.sty' not found.
share|improve this question
I'm guess 'Just use MacTeX' is not the answer you want :-) You might consult tex.stackexchange.com/questions/1137/…, which is basically the same concept. – Joseph Wright Aug 22 '10 at 9:09
I agree, I don't think it makes much sense to try to use macports to install texlive even if it is possible. Just go to tug.org/mactex and grab one zip file, and you will have everything you need, much faster. – Jukka Suomela Aug 22 '10 at 12:04
Why's everyone hating on MacPorts? – Nerdling Aug 22 '10 at 13:06
I don't think it's about hating MacPorts. It's just that for this purpose, installing MacTeX is probably a much more straightforward procedure than building TeX from scratch. Also, it's the distribution that 'everyone' uses, so answers will be easier to come by. Myself, I don't like the way that MacPorts wants to build everything for itself, even when a system version exists. I understand the rationale, but it grates nonetheless (I've heard of homebrew as an alternative, but haven't used it) – Norman Gray Aug 22 '10 at 20:05
@Neil G: I've got pdflatex in /usr/texbin, so you'd have to add that directory to the PATH. I think I've got a standard installation of MacTeX; having said that, I think I would have stopped the installer editing my shell *rc files, so I imagine I decided to add that to the path by hand. – Norman Gray Aug 24 '10 at 12:32
up vote 1 down vote accepted

If you are using texlive from the MacPorts, there is a packet manager tlmgr that allows you to install missing packages. If you are using something else, Joseph's comment points in the correct directions.

share|improve this answer
how do I install tlmgr? – Neil G Aug 22 '10 at 22:57
I think it should be part of the texlive install from MacPorts, i.e. sudo port install texlive should do the deal. The program will then be in /opt/local/bin, I presume. Comprehensive information about its usage is available from the MacTex wiki. – Bran the Blessed Aug 23 '10 at 7:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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