Set Up LaTeX on Mac in 1 min
$$
\newcommand{\indep}{\mathrel{\perp\mkern-10mu\perp}}
\newcommand{\P}{\mathbb{P}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\Var}{\operatorname{Var}}
\newcommand{\Cov}{\operatorname{Cov}}
\newcommand{\1}[1]{\mathbf{1}\\{#1\\}}
$$
overleaf 在线编译
在Mac上使用LaTeX最快的方法是直接用overleaf在线编译。是的,我不想在安装任何比较大的LaTeX软件包,更别说MacTeX完整版了!RStudio中使用 tinytex 📦 或者用Typora已经足够满足我的日常需要了。
Stand alone App
overleaf 没有在Mac上的独立APP,只能通过浏览器打开,这样cmd+tab切换窗口就玩不转了,不小心还把网页给关了。没关系,我们用nativefier自己做一个APP就完事了(如果你没有安装nativefier,去github看下说明安装一下)。打开iTerm/terminal,输入代码
nativefier --name "overleaf" 'overleaf.com'
完成了!

常用快捷键
-
Cmd+B:粗体 -
Cmd+I:斜体 -
Cmd+/:注释 -
Cmd+Z:撤销 -
Cmd+Y:重做 -
Cmd+F:查找和替换 -
Cmd+Home:到文档顶部 -
Cmd+End:到文档底部 -
Cmd+S:重新编译 -
Cmd+Enter:重新编译
同步dropbox和多人合作
如果需要同步dropbox功能的话,参见https://www.overleaf.com/user/bonus。某宝有该项服务。

更多LaTeX偷懒工具
-
Mathpix Snipping Tool:截屏识别,输出LaTeX。
-
LaTeX公式编辑器:除了编辑之外,也可以截屏识别,输出LaTeX。