Books / Setting Up Development Environment on macOS / Chapter 25
LaTeX
LaTeX, which is pronounced «Lah-tech» or «Lay-tech», is a document preparation system for high-quality typesetting. It is most often used for medium-to-large technical or scientific documents but it can be used for almost any form of publishing.
Installation
When installing LaTex, two following options are given to users:
- Install MacTeX with builtin editor (TexLive) - (3.2GB)
- Install BasicTeX only (100MB) + your personal LaTeX editor
MacTeX vs BasicTeX
MacTeX includes additional programs such as an editor and a BibTeX reference manager that help users to work with TeX outside of the command line. BasicTeX does not include these GUI programs. The trade-off that comes with using BasicTeX is that you will have to download and install additional packages and programs as the need arises- and BasicTeX is so basic that the need will arise. So, after installing BasicTeX you will be faced with the tasks of installing additional programs and installing missing packages.
MacTex
Download MacTex, or use brew install --cask mactex
.
You can read more about MacTex in What is installed (pdf).
Since MacTex installs a LaTex editor (TexMaker) already, installing another LaTeX editor is unnecessary.
BasicTeX
Download BasicTeX, or use brew install --cask basictex
. You can read more about BasicTex in BasicTeX (pdf).
You may use tlmgr
to install tools/packages that you need.
Note: You may find CLI tool
tlmgr
cumbersome to use, in that case install GUI fortlmgr
- TeX Live Utility -brew install --cask tex-live-utility
.
Now you should pick a LaTeX editor, here are some to choose from:
- TexMaker
- TeXstudio
- TeXworks
- TeXShop
- LyX
- TeXlipse
- Sublime Text 3 - LaTeXTools
- Visual Studio Code - LaTeX-Workshop
Note: You may want to use a PDF reader that watches your PDF files, like Skim (can be installed by
brew install --cask skim
and Sync feature can be enabled in Preferences -> Sync).