mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-18 03:00:11 +00:00
[provisioning] Add beamer-trek
This commit is contained in:
parent
0486e4b753
commit
d6ab090d29
1 changed files with 10 additions and 1 deletions
11
recipes/tex
11
recipes/tex
|
@ -29,7 +29,15 @@ function _tex {
|
|||
function _tex_git {
|
||||
local pkg=$1
|
||||
local repo=$2
|
||||
_git $2 "$(kpsewhich -var-value TEXMFHOME)/tex/latex/${pkg}"
|
||||
local repo_path=$3
|
||||
local clone_path="$(kpsewhich -var-value TEXMFHOME)/git/latex/${pkg}"
|
||||
local install_path="$(kpsewhich -var-value TEXMFHOME)/tex/latex/${pkg}"
|
||||
if [[ ! -d "${install_path}" ]]; then
|
||||
_git $2 "$(kpsewhich -var-value TEXMFHOME)/git/latex/${pkg}"
|
||||
_run "[tex] Install $pkg" ln -s "${clone_path}/${repo_path}" "${install_path}"
|
||||
else
|
||||
echo "[tex] $pkg is already installed, skipping."
|
||||
fi
|
||||
}
|
||||
|
||||
_tex labbook
|
||||
|
@ -42,3 +50,4 @@ _tex tufte-latex
|
|||
|
||||
_recipe git
|
||||
_tex_git dnd https://github.com/evanbergeron/DND-5e-LaTeX-Template.git
|
||||
_tex_git trek https://github.com/lancelet/beamer-trek.git theme
|
||||
|
|
Loading…
Reference in a new issue