-
Notifications
You must be signed in to change notification settings - Fork 34
/
setup.sh
executable file
·39 lines (31 loc) · 1.06 KB
/
setup.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
#!/bin/bash
# Install tokitex beamer package
theme_path=`kpsewhich -var-value TEXMFLOCAL`/tex/latex/beamer
mkdir -p $theme_path
cp -R beamer-tokitex/beamerthemetokitex.sty beamer-tokitex/tokitex-asset $theme_path/
# Install lstaddons CTAN package
lstaddons_path=`kpsewhich -var-value TEXMFLOCAL`/tex/latex/lstaddons
if [ ! -d $lstaddons_path ]; then
mkdir -p $lstaddons_path
wget http://mirrors.ctan.org/install/macros/latex/contrib/lstaddons.tds.zip
unzip lstaddons.tds.zip -d lstaddons
cp lstaddons/tex/latex/lstaddons/* $lstaddons_path/
rm -rf lstaddons*
fi
# Install qtree package
qtree_path=`kpsewhich -var-value TEXMFLOCAL`/tex/latex/qtree
if [ ! -d $qtree_path ]; then
mkdir -p $qtree_path
wget http://mirrors.ctan.org/macros/latex/contrib/qtree.zip
unzip qtree.zip
cp qtree/* $qtree_path/
rm -rf qtree*
fi
# Install clrscode3e package
clrscode3e_path=`kpsewhich -var-value TEXMFLOCAL`/tex/latex/clrscode3e
if [ ! -d $clrscode3e_path ]; then
mkdir -p $clrscode3e_path
cp ./lib/clrscode3e/* $clrscode3e_path
fi
# Reload
texhash