install texlive from gist
This commit is contained in:
parent
57ff4e1fcb
commit
63f5a8ddbe
@ -1,37 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Install minimal TeXLive 2016 for How-to-Write-Makefile
|
|
||||||
#
|
|
||||||
#REMOTE=http://mirrors.ustc.edu.cn/CTAN/systems/texlive/tlnet
|
|
||||||
REMOTE=http://ctan.sharelatex.com/tex-archive/systems/texlive/tlnet/
|
|
||||||
TEXBIN=/usr/local/texlive/2016/bin/x86_64-linux
|
|
||||||
PACKAGES="titlesec fandol ctex threeparttable framed wrapfig upquote capt-of needspace multirow eqparbox environ trimspaces zhnumber zapfding latexmk fncychap tabulary"
|
|
||||||
|
|
||||||
# install TeXLive
|
|
||||||
mkdir -p /tmp/install-texlive
|
|
||||||
cd /tmp/install-texlive/
|
|
||||||
curl -sSL $REMOTE/install-tl-unx.tar.gz | tar -xz -C ./ --strip-components=1
|
|
||||||
|
|
||||||
cat << EOF > texlive.profile
|
|
||||||
selected_scheme scheme-minimal
|
|
||||||
TEXMFHOME ~/.texmf
|
|
||||||
TEXMFCONFIG ~/.texlive/texmf-config
|
|
||||||
TEXMFVAR ~/.texlive/texmf-var
|
|
||||||
collection-basic 1
|
|
||||||
collection-genericrecommended 1
|
|
||||||
collection-latex 1
|
|
||||||
collection-latexextra 0
|
|
||||||
collection-latexrecommended 1
|
|
||||||
collection-xetex 1
|
|
||||||
collection-langchinese 0
|
|
||||||
option_autobackup 0
|
|
||||||
option_doc 0
|
|
||||||
option_src 0
|
|
||||||
EOF
|
|
||||||
|
|
||||||
sudo ./install-tl -profile texlive.profile -repository $REMOTE
|
|
||||||
sudo $TEXBIN/tlmgr update --self --all --repository $REMOTE
|
|
||||||
sudo $TEXBIN/tlmgr install $PACKAGES --repository $REMOTE
|
|
||||||
|
|
||||||
cd -
|
|
||||||
echo export PATH=$TEXBIN:'$PATH' > srcfile
|
|
@ -12,8 +12,13 @@ branches:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- bash ./.texlive-minmal-installer.sh
|
# Install TeXLive
|
||||||
- source ./srcfile
|
- curl -sSL https://gist.githubusercontent.com/seisman/ad00252a9f03fc644146a11e6983d9c5/raw/install-tl.sh -o install-tl.sh
|
||||||
|
- sudo bash install-tl.sh
|
||||||
|
- source ~/.bash_profile
|
||||||
|
- export TLMGR=`which tlmgr`
|
||||||
|
# update texlive
|
||||||
|
- sudo $TLMGR update --self --all -repository http://ctan.sharelatex.com/tex-archive/systems/texlive/tlnet/
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make html
|
- make html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user