[provisioning] Add DND-5e-LaTeX-Template

This commit is contained in:
Correl Roush 2018-05-30 09:45:49 -04:00
parent 68c4ddbd2e
commit 19ef110da5
2 changed files with 19 additions and 0 deletions

View file

@ -13,3 +13,13 @@ case $_PLATFORM in
_apt git _apt git
;; ;;
esac esac
function _git {
local repo=$1
local dest=$2
if ! test -d "$dest"; then
_run "[git] Clone $repo to $dest" git clone --recursive $1 $2
else
echo "[git] $dest already exists, skipping."
fi
}

View file

@ -23,6 +23,12 @@ function _tex {
fi fi
} }
function _tex_git {
local pkg=$1
local repo=$2
_git $2 "$(kpsewhich -var-value TEXMFHOME)/tex/latex/${pkg}"
}
_tex labbook _tex labbook
_tex mdframed _tex mdframed
_tex microtype _tex microtype
@ -30,3 +36,6 @@ _tex minted
_tex moderncv _tex moderncv
_tex soul _tex soul
_tex tufte-latex _tex tufte-latex
_recipe git
_tex_git dnd https://github.com/evanbergeron/DND-5e-LaTeX-Template.git