forked from CryHavoc/dottes
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.
This commit is contained in:
parent
b2a96046c8
commit
fbbce04c6f
|
@ -1,5 +1,4 @@
|
||||||
\documentclass[a5paper,landscape,11pt]{article}
|
\documentclass[a5paper,landscape,11pt]{article}
|
||||||
\usepackage{abc}
|
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
\usepackage{helvet}
|
\usepackage{helvet}
|
||||||
\usepackage{newcent}
|
\usepackage{newcent}
|
||||||
|
|
12
makeBooke.sh
12
makeBooke.sh
|
@ -31,17 +31,19 @@ find $booke -name "*.abc" | sort |
|
||||||
do
|
do
|
||||||
title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"`
|
title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"`
|
||||||
name=`basename $filename .abc`
|
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 "\\\\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output
|
||||||
echo "\\\\begin{abc}[options=-j0 +c -n,name=$name]" >> $builddir/$output
|
echo "\\\\end{center}" >> $builddir/$output
|
||||||
cat $filename >> $builddir/$output
|
|
||||||
echo "\\\\end{abc}" >> $builddir/$output
|
|
||||||
done
|
done
|
||||||
|
|
||||||
cat dottes.tex.footer >> $builddir/$output
|
cat dottes.tex.footer >> $builddir/$output
|
||||||
|
|
||||||
cd $builddir
|
cd $builddir
|
||||||
pdflatex -shell-escape $output
|
pdflatex $output
|
||||||
pdflatex -shell-escape $output
|
pdflatex $output
|
||||||
|
|
||||||
cd $dir
|
cd $dir
|
||||||
pdflatex dottesona4.tex
|
pdflatex dottesona4.tex
|
||||||
|
|
Loading…
Reference in New Issue