刚刚开始使用 TeX,我觉得我遗漏了一些东西......
我已经通过 Homebrew Cask(brew cask install basictex
)安装了 BasicTex,据说它包含 pdfTeX 和一堆其他工具(MetaFont、dips、MetaPost 等),但是当我运行 pdflatex 时出现“未找到命令”。
这里是否需要额外的设置?(tlmgr
?)
(在 Mac OS X 10.11.4 上)
答案1
更新:
正如所指出的多利安,brew cask
现在已经足够智能,可以运行安装程序了:
$ brew install --cask basictex
==> Downloading http://mirror.ctan.org/systems/mac/mactex/mactex-basictex-20180417.pkg
==> Downloading from http://ctan.math.washington.edu/tex-archive/systems/mac/mactex/mactex-basictex-20180417.pkg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'basictex'.
==> Installing Cask basictex
==> Running installer for basictex; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Password: <prompts for password>
installer: Package name is BasicTeX-2018
installer: Installing at base path /
installer: The install was successful.
答案2
我安装了基础Tex但它没有添加到 macOS 中的 PATH 文件中。我使用 zsh,因此我将以下内容添加到~/.zshrc
# pdftex
export PATH=“/Library/TeX/texbin/:$PATH”
答案3
只brew cask install basictex
需要:
==> Satisfying dependencies
==> Downloading http://mirror.ctan.org/systems/mac/mactex/mactex-basictex-201706
######################################################################## 100.0%
==> Verifying checksum for Cask basictex
==> Installing Cask basictex
==> Running installer for basictex; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are i
Password:
==> installer: Package name is BasicTeX-2017
==> installer: Installing at base path /
==> installer: The install was successful.