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
1017 B

#!/bin/sh
# copying latex templates from my template repository
# (not included in the dotfiles)
[ -z "$LATEX_TEMPLATE_DIR" ] && latexdir="~/code/main/latextemplates" || latexdir="$LATEX_TEMPLATE_DIR"
articletemp=${latexdir}/article/*
beamertemp=${latexdir}/beamer/*
exercisetemp=${latexdir}/exercise/*
handouttemp=${latexdir}/handout/*
cvtemp=${latexdir}/cv/*
lettertemp=${latexdir}/letter/*
case "$1" in
a*) cp $articletemp . -r && exit;;
b*) cp $beamertemp . -r && exit ;;
c*) cp $cvtemp . -r && exit ;;
e*) cp $exercisetemp . -r && exit ;;
h*) cp $handouttemp . -r && exit ;;
l*) cp $lettertemp . -r && exit ;;
esac
cat << EOF
Allowed options
article get article-template to current dir
beamer get beamer-template to current dir
cv get curriculum vitae-template to current dir
exercise get exercise-template to current dir
handout get handout-template to current dir
letter get letter-template to current dir
All of these commands can be truncated to one character.
EOF