mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-10-30 03:51:15 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			949 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			949 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| # copying latex templates from my template repository
 | |
| # (not included in the dotfiles)
 | |
| 
 | |
| latexdir=~/code/main/latextemplates
 | |
| 
 | |
| 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
 |