Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (18 sloc) 567 Bytes
#!/bin/bash
#create png graphics of the title page based on metadata parameters
# usage: makecover.sh silp 41 "Ben Derek" "What about Nouns?" "An investigation"
series=$1
number=$2
author=$3
title=$4
subtitle=$5
# cp localmetadata.tex localmetadata.tex~
echo "\author{$3}"> localmetadata.tex
echo "\title{$4}">> localmetadata.tex
echo "\subtitle{$5}">> localmetadata.tex
echo "\renewcommand{\lsSeries}{$1}">> localmetadata.tex
echo "\renewcommand{\lsSeriesNumber}{$2}">> localmetadata.tex
rm main.pdf
make pdf
make cover
mv localmetadata.tex~ localmetadata.tex