Skip to content

Instantly share code, notes, and snippets.

@braised-babbage
Created December 14, 2019 23:25
Show Gist options
  • Save braised-babbage/4c19774504f460f62ed867e516e89562 to your computer and use it in GitHub Desktop.
Save braised-babbage/4c19774504f460f62ed867e516e89562 to your computer and use it in GitHub Desktop.
#!/bin/bash
# install texlive dependencies
yum install -y perl-Tk perl-Digest-MD5
# download texlive installer
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
tar xzf install-tl-unx.tar.gz
# HACK pulling texlive profile from my github
wget https://gist.githubusercontent.com/kilimanjaro/b876f13ffdcd5557aa9fc6660e6fe7b0/raw/4247c52e555190d97e753a9ec7970d933cc898a3/texlive.profile
# install from profile
./install-tl*/install-tl -profile texlive.profile
# install additional tex packages
/usr/local/texlive/2019/bin/x86_64-linux/tlmgr install standalone xkeyval preview caption pgf xcolor quantikz xargs xstring l3packages etoolbox mathtools environ trimspaces tikz-cd
echo export PATH="/usr/local/texlive/2019/bin/x86_64-linux/:$PATH" >> ~/.bash_profile
# extra installation
yum install ImageMagick
yum install ghostscript
# for jupyter, link in existing system path
ln -s /usr/local/texlive/2019/bin/x86_64-linux/pdflatex /usr/bin/pdflatex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment