You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
959 B

#!/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 <option> <target-dir>
Allowed options
a[rticle] get article-template to current dir
b[eamer] get beamer-template to current dir
e[xercise] get exercise-template to current dir
h[andout] get handout-template to current dir
l[etter] get letter-template to current dir
EOF