-
Notifications
You must be signed in to change notification settings - Fork 151
Home
This is a primer to my LaTeX workflow. It is mostly for myself although I'm glad if others find it useful as well.
- Package manager: Homebrew
- Text editor: MacVim
- TeX distribution: MacTeX
- Compiler: latexmk
- PDF Viewer: Skim
Homebrew makes it easy to manage your commandline packages. For example, you can install MacVim with brew install macvim
. You can also install Cask so you can manage graphical applications too, e.g., brew cask install skim
.
Vim is the best text editor. Period. It has a ton of excellent features which I'll go into later. MacVim is simply a variant which has a GUI and is natively compatible with the general finickiness of Macs.
MacTeX is the standard distribution for Macs.
latexmk compiles and recompiles your document as many times as necessary. It does other intelligent automatic things which you can google.
Skim refreshes your rendered document live after recompilation, without changing its viewing location. This is in contrast to Preview, which sends you back to the top of the document. There are even better Linux alternatives honestly, although I've found Skim to be the best for Macs.
On making bib files
On natbib
On Multiple bibliographies
LaTeX plugins in Vim are bloated. Don't use them.
%!TEX root = main.tex