-
Notifications
You must be signed in to change notification settings - Fork 29
/
texlive.sh
95 lines (82 loc) · 1.87 KB
/
texlive.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usr/bin/env sh
# This script is used for testing using Travis
# It is intended to work on their VM set up: Ubuntu 12.04 LTS
# As such, the nature of the system is hard-coded
# A minimal current TL is installed adding only the packages that are
# required
# See if there is a cached version of TL available
export PATH=/tmp/texlive/bin/x86_64-linux:$PATH
if ! command -v texlua > /dev/null; then
# Obtain TeX Live
wget 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 ..
fi
# basics
tlmgr install tex etex luatex xetex texlive-scripts cm knuth-lib latex-bin tex-ini-files unicode-data
# l3build
tlmgr install l3build
## or bleeding edge:
#
#if [ -d "/tmp/l3build/.git" ]; then
# cd /tmp/l3build ;
# git pull --rebase ;
# cd -;
#else
# git clone https://github.com/latex3/l3build.git /tmp/l3build ;
#fi
#(cd /tmp/l3build; texlua build.lua install)
# Dependencies
tlmgr install \
amsmath \
etoolbox \
fontspec \
geometry \
ifluatex \
ifxetex \
graphics \
lualatex-math \
luaotfload \
oberdiek
# Fonts
tlmgr install \
Asana-Math \
firamath \
lm-math \
tex-gyre \
tex-gyre-math \
stix2-otf \
xits
# for documentation
tlmgr install \
booktabs \
caption \
collection-latexrecommended \
dejavu \
enumitem \
fancyvrb \
geometry \
graphics-def \
hyperref \
inconsolata \
iwona \
ltxmisc \
metalogo \
ms \
refstyle \
subfig \
tabu \
titlesec \
tools \
underscore \
url \
varwidth \
xcolor \
zapfding
# Keep no backups (not required, simply makes cache bigger)
tlmgr option -- autobackup 0
# Update the TL install but add nothing new
tlmgr update --self --all --no-auto-install