Local Latex
Last term I started using latex to make notes for the my masters course. I started with overleaf. Overleaf needs a whole screen to show the code and the output pdf comfortably. So if I'm to look at the lecture slides, latext code, and output pdf I need a second monitor.
But since I prefer writing notes while sitting in a caffe, second monitor is not possible. So I decided to look into another way to write latex.
Quick online search resulted in few articles of people using a mactex
tex engine (I'm using a macbook) and latex-workshop
extension with vscode.
Following one of those articles I installed the basictex
downloaded from here
And installed the latex-workshop extension in vscode. But it couldn't compile my tex code.
Turned out the basictex
doesn't come with latexmk
which is required for compiling the tex code.
To install the latexmk
, first need to run sudo tlmgr update --self
.
Then latexmk
can be installed with sudo tlmgr install latexmk
.
I also had to install following packages to make use some features required for the notes.
sudo tlmgr install blindtext titlesec footmisc