1 cask "mactex-no-gui" do
3 sha256 "c1793a3ceca2c4317ca22536c887e18b3c17be0f4baaa199735e9d6a692e57dc"
5 url "https://mirror.ctan.org/systems/mac/mactex/mactex-#{version.no_dots}.pkg",
6 verified: "mirror.ctan.org/systems/mac/mactex/"
8 desc "Full TeX Live distribution without GUI applications"
9 homepage "https://www.tug.org/mactex/"
15 conflicts_with cask: [
19 depends_on formula: "ghostscript"
20 depends_on macos: ">= :mojave"
22 pkg "mactex-#{version.no_dots}.pkg",
26 "choiceIdentifier" => "org.tug.mactex.ghostscript10.03.0",
27 "choiceAttribute" => "selected",
28 "attributeSetting" => 0,
31 # Ghostscript Dynamic Library
32 "choiceIdentifier" => "org.tug.mactex.ghostscript10.03.0-libgs",
33 "choiceAttribute" => "selected",
34 "attributeSetting" => 0,
38 "choiceIdentifier" => "org.tug.mactex.ghostscript10.03.0-mutool",
39 "choiceAttribute" => "selected",
40 "attributeSetting" => 0,
44 "choiceIdentifier" => "org.tug.mactex.gui#{version.major}",
45 "choiceAttribute" => "selected",
46 "attributeSetting" => 0,
50 "choiceIdentifier" => "org.tug.mactex.texlive#{version.major}",
51 "choiceAttribute" => "selected",
52 "attributeSetting" => 1,
56 uninstall pkgutil: "org.tug.mactex.texlive#{version.major}",
58 "/etc/manpaths.d/TeX",
61 "/usr/local/texlive/#{version.major}",
64 zap trash: "/usr/local/texlive/texmf-local",
65 rmdir: "/usr/local/texlive"
68 You must restart your terminal window for the installation of MacTeX CLI
71 Alternatively, Bash and Zsh users can run the command:
73 eval "$(/usr/libexec/path_helper)"