现在, TeX \TeX TEX已经成为科研人员撰写科技论文的神器之一。在易用性和美观方面,Mac亦是众多科技工作者选择之一。在Mac上,我们通常会使用与TexIive同源的MacTex编写 TeX \TeX TEX文档。本文主要关注如何在MacOS上安装MacTex。
PS:为清晰展示安装过程,大家可以查看MacTex安装视频,清楚的了解MacTex的安装过程。
此外,如何在VS Code中配置使用MacTex请看这里。
1 下载安装文件
1.1 打开网址https://tug.org/,在页面右侧的Software项目中选择MacTex进入MacTex详情页,如下图所示:
1.2 在MacTex详情页中,选择MacTeX Download选项,进入下载页。
1.3 下载MacTex.pkg。
通常情况下,进入下载页后,系统会自动下载安装文件。如果没有自动下载,请手动下载MacTeX.pkg。
注意:MacTex可以在Interl和Arm芯片使用,没有区分版本。
2 安装MacTex
双击安装文件开始安装。
单击“继续“按钮,查询MacTex的基本信息,继续下一步,进入安装类型选择。
无需选择自定安装,直接选择默认安装,点击“安装”按钮,MacTex开始安装,安装结束后,确定安装信息即可完成安装。
3 测试MacTex安装结果
输入tex命令测试安装是否成功。
houor@EricdeiMac ~ % tex -v
TeX 3.141592653 (TeX Live 2022)
kpathsea version 6.3.4
Copyright 2022 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
如果有有效输出,表示MacTex已成功安装。从输出也可以看出,MacTex和TexLive是同出一源的。
另外可以使用latex -v查看latex的安装版本。
houor@EricdeiMac ~ % latex -v
pdfTeX 3.141592653-2.6-1.40.24 (TeX Live 2022)
kpathsea version 6.3.4
Copyright 2022 Han The Thanh (pdfTeX) et al.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.03
PS:为清晰展示安装过程,大家可以查看MacTex安装视频,清楚的了解MacTex的安装过程。