-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·69 lines (58 loc) · 1.64 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env bash
set -ex
# See if there is a cached version of TL available
export TEXPATH=/tmp/texlive/bin/x86_64-linux
export PATH=$TEXPATH:$PATH
## Install Fira Fonts
if [ ! -d $HOME/.fonts ]; then
wget -q https://github.com/mozilla/Fira/archive/4.202.zip
unzip -qq 4.202.zip
mkdir -p $HOME/.fonts
cp Fira*/otf/Fira* $HOME/.fonts
fi
if ! command -v xetex > /dev/null; then
# Obtain TeX Live
wget -q http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
cd install-tl-20*
# Install a minimal system
./install-tl --profile=../.texlive.profile
cd ..
# list: http://ctan.mirrors.hoobly.com/systems/texlive/tlnet/archive/
tlmgr install \
animate \
media9 \
ocgx2 \
appendixnumberbeamer \
beamer \
beamertheme-metropolis \
booktabs \
caption \
ccicons \
collection-mathscience \
collection-xetex \
etoolbox \
fancyvrb \
fontspec \
listings \
mathtools \
microtype \
multirow \
pgfopts \
pgfplots \
shapepar \
translator \
xkeyval
# Update the TL install but add nothing new
tlmgr update --self --all --no-auto-install
# Keep no backups (not required, simply makes cache bigger)
tlmgr option -- autobackup 0
## Install latexmk
wget -q http://mirrors.ctan.org/support/latexmk.zip
unzip -qq latexmk.zip
cp latexmk/latexmk.pl $TEXPATH/latexmk
fi
## Install Metropolis theme
# wget -q https://github.com/matze/mtheme/archive/master.zip
# unzip -qq master.zip
# (cd mtheme-master && make sty && make install)