#!/bin/sh # copying latex templates from my template repository # (not included in the dotfiles) latexdir=${LATEX_TEMPLATE_DIR:-~/code/main/latextemplates} targetdir=${2:-.} articletemp=${latexdir}/article/* beamertemp=${latexdir}/beamer-minimal/* exercisetemp=${latexdir}/exercise/* handouttemp=${latexdir}/handout/* lettertemp=${latexdir}/letter/* case "$1" in a|article) cp $articletemp $targetdir -r && exit;; b|beamer) cp $beamertemp $targetdir -r && exit ;; e|exercise) cp $exercisetemp $targetdir -r && exit ;; h|handout) cp $handouttemp $targetdir -r && exit ;; l|letter) cp $lettertemp $targetdir -r && exit ;; esac cat << EOF Usage: textemp