From 0bc6f686791b33c5e97f9d1a6cc9a005446d60c8 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Sat, 2 Feb 2013 14:21:21 -0500 Subject: [PATCH] add new creation script --- new_beamer_presentation | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 new_beamer_presentation diff --git a/new_beamer_presentation b/new_beamer_presentation new file mode 100755 index 0000000..ebba317 --- /dev/null +++ b/new_beamer_presentation @@ -0,0 +1,22 @@ +#!/bin/sh + +# Helper script to export LaTeX templates for new documents +# Copyright (c) 2009 Benjamin Mako Hill +# Released under the GPLv3 or later. + +CURDIR=`pwd` + +if test $1 +then + cd $HOME/tex/beamer-mako + git checkout-index -f --prefix=$CURDIR/$1/ $(find template -not -type d) + cd $CURDIR + + # get rid of paper_template subdir + mv $1/template/* $1 + rm -rf $CURDIR/$1/template + + mv $1/example.tex $1/$1.tex +else + echo "specifiy a directory where the template should go"; +fi -- 2.39.5