mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-09 19:11:15 +02:00
bin structure and vifm preview
This commit is contained in:
27
.local/bin/etc/textemp
Executable file
27
.local/bin/etc/textemp
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env sh
|
||||
# copying tex templates
|
||||
|
||||
[ -z "$2" ] && echo "missing argument: filename (no ending)" && return 1
|
||||
|
||||
articletemp=~/gitrepos/tools/latex_templates/latex_article/article.tex
|
||||
beamertemp=~/gitrepos/tools/latex_templates/latex_beamer/beamer.tex
|
||||
exercisetemp=~/gitrepos/tools/latex_templates/latex_exercise_header/header.tex
|
||||
handouttemp=~/gitrepos/tools/latex_templates/latex_handout/handout.tex
|
||||
|
||||
case "$1" in
|
||||
a*) cp "$articletemp" $2.tex ;;
|
||||
b*) cp "$beamertemp" $2.tex ;;
|
||||
e*) cp "$exercisetemp" $2.tex ;;
|
||||
h*) cp "$handouttemp" $2.tex ;;
|
||||
*) cat << EOF
|
||||
|
||||
Allowed options
|
||||
article NAME get handout-template with given NAME
|
||||
beamer NAME get handout-template with given NAME
|
||||
exercise NAME get handout-template with given NAME
|
||||
handout NAME get handout-template with given NAME
|
||||
|
||||
All of these commands can be truncated,
|
||||
i.e. \`textemp a\` for \`textemp article`\.
|
||||
EOF
|
||||
esac
|
Reference in New Issue
Block a user