Correct right margin settings, and remove need for pdfcrop.

Also stop keeping EPS files around. We're only using PDF.
This commit is contained in:
Jim Hague 2023-02-28 17:36:06 +00:00
parent 7baeb0a15c
commit 0caa7a5f8f
3 changed files with 10 additions and 24 deletions

View File

@ -11,5 +11,5 @@ musiconly true
scale 0.9 scale 0.9
botmargin 0pt botmargin 0pt
leftmargin 0pt leftmargin 0pt
rightmarin 0pt rightmargin 0pt
topmargin 0pt topmargin 0pt

View File

@ -22,25 +22,16 @@ find $booke -maxdepth 1 -name "*.abc" |
do do
name=`basename $filename .abc` name=`basename $filename .abc`
# Make the tune graphic. # Make the tune graphic PDF.
abcm2ps -E -F singletune -O $graphicsdir/$name.eps $filename abcm2ps -E -F singletune -O $graphicsdir/$name.eps $filename
# Make $name.eps so we can build with LaTeX. epstopdf --outfile=$graphicsdir/$name.pdf $graphicsdir/${name}001.eps
mv $graphicsdir/${name}001.eps $graphicsdir/${name}.eps rm $graphicsdir/${name}001.eps
# And make the corresponding PDF.
epstopdf --outfile=$graphicsdir/$name-tocrop.pdf $graphicsdir/${name}.eps
# And crop it, so the graphic is as big as possible on the page.
pdfcrop $graphicsdir/$name-tocrop.pdf $graphicsdir/$name.pdf
rm $graphicsdir/$name-tocrop.pdf
# and make the first line graphic. # and make the first line graphic.
$dir/abcfirstline.py $filename > firstline.abc $dir/abcfirstline.py $filename > firstline.abc
abcm2ps -E -F firstline -O $graphicsdir/firstline-$name.eps firstline.abc abcm2ps -E -F firstline -O $graphicsdir/firstline-$name.eps firstline.abc
mv $graphicsdir/firstline-${name}001.eps $graphicsdir/firstline-${name}.eps epstopdf --outfile=$graphicsdir/firstline-$name.pdf $graphicsdir/firstline-${name}001.eps
rm firstline.abc rm firstline.abc $graphicsdir/firstline-${name}001.eps
epstopdf --outfile=$graphicsdir/firstline-$name-tocrop.pdf $graphicsdir/firstline-${name}.eps
# And crop it, so the graphic is as big as possible on the page.
pdfcrop $graphicsdir/firstline-$name-tocrop.pdf $graphicsdir/firstline-$name.pdf
rm $graphicsdir/firstline-$name-tocrop.pdf
done done
# And make any compact tune graphics. # And make any compact tune graphics.
@ -53,13 +44,8 @@ find ${booke}/Compact -maxdepth 1 -name "*.abc" |
do do
name=`basename $filename .abc` name=`basename $filename .abc`
# Make the tune graphic. # Make the tune graphic PDF.
abcm2ps -E -F singletune -O $graphicsdir/compact-${name}.eps $filename abcm2ps -E -F singletune -O $graphicsdir/compact-${name}.eps $filename
# Make $name.eps so we can build with LaTeX. epstopdf --outfile=$graphicsdir/compact-${name}.pdf $graphicsdir/compact-${name}001.eps
mv $graphicsdir/compact-${name}001.eps $graphicsdir/compact-${name}.eps rm $graphicsdir/compact-${name}001.eps
# And make the corresponding PDF.
epstopdf --outfile=$graphicsdir/compact-${name}-tocrop.pdf $graphicsdir/compact-${name}.eps
# And crop it, so the graphic is as big as possible on the page.
pdfcrop $graphicsdir/compact-${name}-tocrop.pdf $graphicsdir/compact-${name}.pdf
rm $graphicsdir/compact-${name}-tocrop.pdf
done done

View File

@ -3,7 +3,7 @@ partsbox true
measurenb false measurenb false
botmargin 0 botmargin 0
leftmargin 0 leftmargin 0
rightmarin 0 rightmargin 0
topmargin 0 topmargin 0
titleformat Y0 titleformat Y0
titlespace 0 titlespace 0