mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-18 03:00:11 +00:00
[provisioning] add TeX packages
This commit is contained in:
parent
baf7391dae
commit
448c587473
1 changed files with 19 additions and 0 deletions
19
recipes/tex
19
recipes/tex
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue