Permalink
Switch branches/tags
Nothing to show
Find file
9c692f4 Jul 1, 2014
executable file 61 lines (56 sloc) 1.35 KB
#!/bin/bash
# By default, the main CTAN mirror is used to fetch packages from. If this
# is distant from you, or you have a faster local mirror simply override
# this by setting the CTAN_MIRROR_URL environmental variable outside this
# script.
# A list of mirrors can be found at http://ctan.org/mirrors
# e.g. before running this script do:
# export CTAN_MIRROR_URL='http://mirror.aarnet.edu.au/pub/CTAN'
wget \
--continue \
--directory-prefix /tmp \
${CTAN_MIRROR_URL:-'http://mirror.ctan.org'}/systems/texlive/tlnet/install-tl-unx.tar.gz
tar \
--extract \
--gunzip \
--directory /tmp \
--file /tmp/install-tl-unx.tar.gz
# Install texlive using the supplied texlive.profile (this just installs a
# basic LaTeX environment
/tmp/install-tl-*/install-tl \
-repository ${CTAN_MIRROR_URL:-'http://mirror.ctan.org'}/systems/texlive/tlnet \
-no-gui \
-profile texlive.profile
# Install packages required by this style
packages=(
mdframed
preprint
enumitem
etoolbox
titlesec
xmpincl
comment
latexmk
lm
memoir
listings
xcolor
url
l3packages
l3kernel
placeins
microtype
float
latex-bin
fancyhdr
graphics
psnfss
pdftex-def
oberdiek
colortbl
hyperref
)
/usr/local/texlive/bin/x86_64-linux/tlmgr \
-repository ${CTAN_MIRROR_URL:-'http://mirror.ctan.org'}/systems/texlive/tlnet \
install \
${packages[@]}