From 448c5874739e714501afa2f38e66f4e98bd223cc Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Wed, 2 May 2018 17:23:12 -0400 Subject: [PATCH] [provisioning] add TeX packages --- recipes/tex | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/recipes/tex b/recipes/tex index 2a102fc..4e129bd 100644 --- a/recipes/tex +++ b/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