Doug Fir
Doug Fir

Reputation: 21212

apt-get: command not found in mac osx even after installing homebrew

I am trying to run a r markdown file but got an error message

"! LaTeX Error: File `titling.sty' not found."

From googling around, the internet is telling me to do this in the terminal:

sudo apt-get install texlive-latex-extra

Tried that and got:

apt-get: command not found

More googling around told me to install hombrew, which I already have. Nevertheless I uninstalled and re-installed homebrew but same error was shown afterwards.

I found anoter post that told me to do this:

brew install wget

That installed correctly.

But then when I run sudo apt-get install texlive-latex-extra again I get the same apt-get not found message.

I'm on Osx 10.9

Upvotes: 2

Views: 11394

Answers (1)

Doug Fir
Doug Fir

Reputation: 21212

I installed the "light" version of mactex in Thomas' link above since the regular one is 2.7gb. That Gave me the same errors. I found this page and from ran the following two commands in terminal:

sudo tlmgr install framed

and

sudo tlmgr install titling

Did the trick

Upvotes: 1

Related Questions