-
-
Save barambani/51dcb2a6ec7fc33b42e348cca9c81f20 to your computer and use it in GitHub Desktop.
install and config basicTeX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# A script to help you install and config basictex | |
# https://www.tug.org/mactex/morepackages.html | |
# | |
# References: | |
# - https://gist.github.com/kadrach/6228314 | |
# - https://tex.stackexchange.com/a/304202 | |
# | |
# Requirements: | |
# - homebrew | |
# | |
# Author: | |
# - [email protected] | |
# | |
# Last update: | |
# - 30 Jul 2018 | |
## | |
# Install basictex | |
brew cask install basictex | |
# (optional) Set a CTAN mirror | |
# - list of available CTAN mirrors: https://ctan.org/mirrors?lang=en | |
# sudo tlmgr option repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet | |
# To keep slim, basictex doesn't install package docs and sources by default | |
# (recommended) Config tlmgr to install docs from now on | |
sudo tlmgr option docfiles 1 | |
# (optional) To config tlmgr to install sources from now on, uncomment the following line | |
# sudo tlmgr option srcfiles 1 | |
# Reinstall all packages to get docs | |
sudo tlmgr install --reinstall $(tlmgr list --only-installed | sed -e 's/^i \([^:]*\): .*$/\1/') | |
# Install some usefull packages. The following list is UNMAINTAINED! | |
pkgList=(# | |
# -dev latex formats | |
latex-bin-dev | |
# font | |
fandol lm-math stix2-otf stix2-type1 tex-gyre tex-gyre-math | |
# cli tool | |
texdef texdoc epstopdf latexmk | |
# doc | |
latex2e-help-texinfo texbytopic xetexref | |
# pkg | |
adjustbox bezos chemfig chemgreek collectbox csquotes ctex currfile datetime2 # | |
enumitem environ extarrows fancyvrb framed fvextra ifplatform imakeidx lipsum # | |
marginnote mhchem minted minted multirow mwe newtx pdfcomment printlen simplekv # | |
siunitx soul standalone tabu tcolorbox tracklang trimspaces varwidth xpatch # | |
xstring zhlipsum zhnumber # | |
) | |
sudo tlmgr install "${pkglist[@]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment