I am probably trying to do the simplest thing with LaTeX, that is compile my test.tex file that I made in TeXShop into a .pdf so that I can view it as a pdf.

I am running OS X El Capitan, which I downloaded MacTeX on.

After reading a few stackexchange questions I found the terminal command

pdflatex <filename> 

However, this gives me a "command not found" error. Any help would be appreciated. Thanks.

  • 1
    I believe that a correctly installed MacTeX should give you the command. On my computer which pdflatex gives /Library/TeX/texbin/pdflatex – hpekristiansen Jun 3 '16 at 0:02
  • @Hans-PeterE.Kristiansen Is there a way to check if it has installed correctly? I downloaded it from tug.org/mactex and I didn't notice any problems during – ron Jun 3 '16 at 0:10
  • 1
    But did you actually install it? As far as TeXShop is concerned please update it via TeXSop->Check for Updates since newer versions will auto-configure to what is needed under El Capitan. Finally, unless you've changed the path yourself, which pdflatex should return /Library/TeX/texbin/pdflatex; did you set up your own PATH variable? – Herb Schulz Jun 3 '16 at 0:52
  • @HerbSchulz Yup it was installed, also if I type which pdflatex in terminal it doesn't return anything..however I can cd into /textbin and I see /pdflatex within – ron Jun 3 '16 at 0:57
  • 1
    Did you typeset the source file? In TeXShop use Typeset->Typeset (Cmd-T). Also did you update TeXShop? Finally, I want to confirm that you are using Yosemite not El Capitan. Oh, one more thing; what does the command echo $PATH return when run in Terminal? – Herb Schulz Jun 3 '16 at 2:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.