Simple getlatex Shell Script

#!/bin/bash
cd /usr/share/texmf/tex/latex
# On some systems, may have to first install filecontents (see below):
sudo mkdir -p $1
cd $1
sudo wget -nd -r -np http://mirror.unl.edu/ctan/macros/latex/contrib/$1/
sudo rm -f index.* robots.txt
sudo latex $1.ins
sudo chmod a+r *
sudo mktexlsr

Optional filecontents script (put in ~/bin)

pushd /usr/share/texmf/tex/latex
sudo mkdir -p filecontents
cd filecontents
sudo wget -nd -r http://mirror.unl.edu/ctan/macros/latex/contrib/filecontents/filecontents.dtx
sudo wget -nd -r http://mirror.unl.edu/ctan/macros/latex/contrib/filecontents/filecontents.ins
sudo latex filecontents.ins
sudo mktexlsr
popd
Topic revision: r3 - 19 May 2011, FrankHarrell
 

This site is powered by FoswikiCopyright © 2013-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback