23

I'm trying to convert Jupyter notebook to .pdf on Mac.

However, it tells me

nbconvert tailed: pdflatex not found on PATH

So, I went looking around and someone said, "Install mactex because this other way takes days to compile". So I did brew install Caskroom/cask/mactex and it finished without telling me there was a problem, but unfortunately it didn't install pdflatex that I can gather. And 'mac install pdflatex' doesn't bring anything useful up on Google for me maybe my bubble sucks.

How do I install pdflatex on my mac?

16

Yes, same story with my MacOS Sierra:

(1) installed mactex with homebrew cask, but no pdflatex found after that:

$ brew cask install mactex

$ which pdflatex

[no location]

(2) relaunched the terminal app

(3) pdflatex found:

$ which pdflatex

/Library/TeX/texbin/pdflatex

10

It appears that brew does not, technically speaking, install mactex. It just downloads it.

I had to use the quick launch and type in mactex which popped up an installer.

After it finished I pdflatex existed, though I did have to start up a new shell - I'm assuming it did something to my path.

  • 2
    I just tried and installing the cask did install MacTeX. But I had to start a new shell instance for pdflatex to be recognisable. This is because installing MacTeX modifies your PATH by including /Library/TeX/texbin which is where the pdflatex binary lives. – Dennis Feb 2 '17 at 18:42

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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