comparison makeBooke.sh @ 34:80af9457d566

Remove use of abc pacakge and do the graphics outselves. Make book building time a lot quicker, because converting from abc to eps/pdf is done only once.
author Jim Hague <jim.hague@acm.org>
date Fri, 02 Mar 2012 12:30:43 +0000
parents b05fca550d33
children 72b5d67756e1
comparison
equal deleted inserted replaced
33:1676d0842fff 34:80af9457d566
29 find $booke -name "*.abc" | sort | 29 find $booke -name "*.abc" | sort |
30 while read filename 30 while read filename
31 do 31 do
32 title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"` 32 title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"`
33 name=`basename $filename .abc` 33 name=`basename $filename .abc`
34 abcm2ps -j0 +c -n -E -O $builddir/$name.eps $filename
35 epstopdf --outfile=$builddir/$name.pdf $builddir/${name}001.eps
36 echo "\\\\begin{center}" >> $builddir/$output
37 echo "\\\\includegraphics[width=\\\\textwidth]{$name}" >> $builddir/$output
34 echo "\\\\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output 38 echo "\\\\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output
35 echo "\\\\begin{abc}[options=-j0 +c -n,name=$name]" >> $builddir/$output 39 echo "\\\\end{center}" >> $builddir/$output
36 cat $filename >> $builddir/$output
37 echo "\\\\end{abc}" >> $builddir/$output
38 done 40 done
39 41
40 cat dottes.tex.footer >> $builddir/$output 42 cat dottes.tex.footer >> $builddir/$output
41 43
42 cd $builddir 44 cd $builddir
43 pdflatex -shell-escape $output 45 pdflatex $output
44 pdflatex -shell-escape $output 46 pdflatex $output
45 47
46 cd $dir 48 cd $dir
47 pdflatex dottesona4.tex 49 pdflatex dottesona4.tex