From fbbce04c6f42a37a8d408b46f73af3be84488f78 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Fri, 2 Mar 2012 12:30:43 +0000 Subject: [PATCH] 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. --- dottes.tex.header | 1 - makeBooke.sh | 12 +++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dottes.tex.header b/dottes.tex.header index d019138..68039c6 100644 --- a/dottes.tex.header +++ b/dottes.tex.header @@ -1,5 +1,4 @@ \documentclass[a5paper,landscape,11pt]{article} -\usepackage{abc} \usepackage{graphicx} \usepackage{helvet} \usepackage{newcent} diff --git a/makeBooke.sh b/makeBooke.sh index c119d5a..bdc1e3c 100755 --- a/makeBooke.sh +++ b/makeBooke.sh @@ -31,17 +31,19 @@ find $booke -name "*.abc" | sort | do title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"` name=`basename $filename .abc` + abcm2ps -j0 +c -n -E -O $builddir/$name.eps $filename + epstopdf --outfile=$builddir/$name.pdf $builddir/${name}001.eps + echo "\\\\begin{center}" >> $builddir/$output + echo "\\\\includegraphics[width=\\\\textwidth]{$name}" >> $builddir/$output echo "\\\\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output - echo "\\\\begin{abc}[options=-j0 +c -n,name=$name]" >> $builddir/$output - cat $filename >> $builddir/$output - echo "\\\\end{abc}" >> $builddir/$output + echo "\\\\end{center}" >> $builddir/$output done cat dottes.tex.footer >> $builddir/$output cd $builddir -pdflatex -shell-escape $output -pdflatex -shell-escape $output +pdflatex $output +pdflatex $output cd $dir pdflatex dottesona4.tex