Last active
January 4, 2019 13:25
-
-
Save Kenta11/e2dd25bbba42ea5cc2019849b8bac59a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# install tools | |
echo "========== installing tools ==========" | |
sudo apt install texlive-luatex texlive-lang-cjk lmodern texlive-xetex texlive-math-extra nodejs npm -y | |
curl -sSL https://get.haskellstack.org/ | sh | |
# install pandoc | |
# last version(2018/11/13): 2.4 | |
echo "========== installing pandoc ==========" | |
PANDOC_DEB="pandoc-2.4-1-amd64.deb" | |
wget https://github.com/jgm/pandoc/releases/download/2.4/${PANDOC_DEB} | |
sudo apt install ./${PANDOC_DEB} -y | |
# install pandoc-crossref | |
echo "========== installing pandoc-crossref ==========" | |
git clone https://github.com/lierdakil/pandoc-crossref | |
cd pandoc-crossref | |
stack build --allow-different-user | |
stack install --allow-different-user | |
# install pandoc_import_code_filter | |
echo "========== installing pandoc_import_code_filter ==========" | |
cd /opt | |
git clone https://github.com/azu/pandoc_import_code_filter | |
cd pandoc_import_code_filter | |
npm install | |
cd /usr/local/bin | |
echo -e \#!/usr/bin/env bash\\n\ | |
\\n\ | |
nodejs /opt/pandoc_import_code_filter \"\$\@\" > pandoc_import_code_filter | |
chmod 0755 pandoc_import_code_filter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment