[provisioning] add TeX packages

This commit is contained in:
Correl Roush 2018-05-02 17:23:12 -04:00
parent baf7391dae
commit 448c587473

View file

@ -11,3 +11,22 @@ case "$(uname -s)" in
_recipe _apt
_apt texlive-full
esac
tlmgr init-usertree 2>/dev/null || true
function _tex {
local pkg=$1
if ! tlmgr --usermode info --only-installed $pkg | grep -i '^installed:.*Yes$' >/dev/null 2>&1; then
_run "[tex] Install $pkg" tlmgr --usermode install $@
else
echo "[tex] $pkg is already installed, skipping."
fi
}
_tex labbook
_tex mdframed
_tex microtype
_tex minted
_tex moderncv
_tex soul
_tex tufte-latex