2

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

 File `nag.sty' not found.
Neil G
  • 17,947
  • 2
    I'm guess 'Just use MacTeX' is not the answer you want :-) You might consult http://tex.stackexchange.com/questions/1137/where-do-i-place-my-own-sty-files-to-make-them-available-to-all-my-tex-files, which is basically the same concept. – Joseph Wright Aug 22 '10 at 09:09
  • 1
    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 http://www.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? – Jeremy L Aug 22 '10 at 13:06
  • 2
    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
  • Norman, I totally agree. I chose macports because that's what I use to install svn, gcc44, etc.

    I installed mactex, but I'm not sure how to get at pdflatex from the terminal. Any ideas?

    – Neil G Aug 23 '10 at 01:38
  • Should just work: certainly does for me – Joseph Wright Aug 23 '10 at 07:02
  • 1
    @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

1 Answers1

2

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.