mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-11-03 22:11:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			959 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			959 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/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
 |