]> code.communitydata.science - cdsc_tex.git/blob - new_tex_document
tweaked it so that the abstract display a bit more cleanly
[cdsc_tex.git] / new_tex_document
1 #!/bin/sh
2
3 # Helper script to export LaTeX templates for new documents
4 # Copyright (c) 2009 Benjamin Mako Hill <mako@atdot.cc>
5 # Released under the GPLv3 or later.
6
7 CURDIR=`pwd`
8
9 if test $1
10 then
11     cd $HOME/tex/latex_mako
12     git checkout-index -f --prefix=$CURDIR/$1/ paper_template/*
13     cd $CURDIR
14
15     # get rid of paper_template subdir
16     mv $1/paper_template/* $1
17     rm -rf $CURDIR/$1/paper_template
18
19     mv $1/text.tex $1/$1.tex
20 else
21     echo "specifiy a directory where the template should go";
22 fi

Community Data Science Collective || Want to submit a patch?