1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-18 18:07:45 +01:00

34 lines
959 B
Plaintext
Raw Normal View History

#!/bin/sh
# copying latex templates from my template repository
# (not included in the dotfiles)
2019-10-16 16:55:09 +02:00
2025-02-17 03:49:58 +01:00
latexdir=${LATEX_TEMPLATE_DIR:-~/code/main/latextemplates}
targetdir=${2:-.}
articletemp=${latexdir}/article/*
2025-02-17 03:49:58 +01:00
beamertemp=${latexdir}/beamer-minimal/*
exercisetemp=${latexdir}/exercise/*
handouttemp=${latexdir}/handout/*
lettertemp=${latexdir}/letter/*
2019-10-16 16:55:09 +02:00
case "$1" in
2025-02-17 03:49:58 +01:00
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
2019-10-16 16:55:09 +02:00
cat << EOF
2025-02-17 03:49:58 +01:00
Usage: textemp <option> <target-dir>
2019-10-16 16:55:09 +02:00
Allowed options
2025-02-17 03:49:58 +01:00
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
2019-10-16 16:55:09 +02:00
EOF