Last active
March 7, 2022 16:01
-
-
Save naveen521kk/1a4823938b924b64b5d10fbec0dc9caa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
set -e | |
INSTALLER_URL="http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz" | |
tmpdir=$(mktemp -d) | |
mkdir -pv $tmpdir | |
echo "Cding into temp directory $tmpdir" | |
cd $tmpdir | |
echo "Writing $tmpdir/texlive-profile.txt" | |
cat > $tmpdir/texlive-profile.txt <<EOL | |
selected_scheme scheme-minimal | |
TEXDIR /usr/local/texlive | |
TEXMFCONFIG ~/.texlive/texmf-config | |
TEXMFHOME ~/texmf | |
TEXMFLOCAL /usr/local/texlive/texmf-local | |
TEXMFSYSCONFIG /usr/local/texlive/texmf-config | |
TEXMFSYSVAR /usr/local/texlive/texmf-var | |
TEXMFVAR ~/.texlive/texmf-var | |
option_doc 0 | |
option_src 0 | |
EOL | |
# Check if curl executable is available | |
which curl &> /dev/null || (echo "Curl needs to be installed" && exit 1) | |
echo "Downloading $INSTALLER_URL" | |
curl -OL $INSTALLER_URL | |
mkdir -v $tmpdir/install-tl | |
echo "Extracting ./install-tl-unx.tar.gz to $tmpdir/install-tl" | |
tar -xzf ./install-tl-unx.tar.gz -C $tmpdir/install-tl --strip-components=1 | |
echo "Running installer" | |
$tmpdir/install-tl/install-tl --profile=$tmpdir/texlive-profile.txt | |
export PATH=/usr/local/texlive/bin/armhf-linux:/usr/local/texlive/bin/aarch64-linux:/usr/local/texlive/bin/x86_64-linux:$PATH | |
echo "Running tlmgr path add" | |
tlmgr path add | |
echo "Installing extra packages" | |
tlmgr install \ | |
amsmath babel-english cbfonts-fd cm-super ctex doublestroke dvisvgm everysel \ | |
fontspec frcursive fundus-calligra gnu-freefont jknapltx latex-bin \ | |
mathastext microtype ms physics preview ragged2e relsize rsfs \ | |
setspace standalone tipa wasy wasysym xcolor xetex xkeyval | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment