forked from CryHavoc/dottes
Update book making command.
Switched to A5 portrait. In landscape it stretches the image to fit the width, and that causes a lot of longer tunes to become too high to fit properly on the page. Build the book in a separate build directory. The build generates lots of .abc files and so forth, which it is convenient to have elsewhere so you can ignore them. I did experimend with \abcinclude, but that has a lot of expectations about the files being in the current directory. If a tune has multiple titles, pick the first. Adjust abcm2ps options to preserve the line breaks in the ABC.
This commit is contained in:
parent
45854d9e35
commit
7ffc756929
|
@ -0,0 +1,3 @@
|
||||||
|
% -----
|
||||||
|
|
||||||
|
\end{document}
|
|
@ -1,6 +1,10 @@
|
||||||
\documentclass[a5paper,landscape,10pt]{article}
|
\documentclass[a5paper,11pt]{article}
|
||||||
|
% \documentclass[a5paper,landscape,11pt]{article}
|
||||||
|
% \documentclass[a4paper,11pt]{article}
|
||||||
\usepackage{abc}
|
\usepackage{abc}
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
|
\usepackage{helvet}
|
||||||
|
\usepackage{newcent}
|
||||||
|
|
||||||
\setlength{\parindent}{0pt}
|
\setlength{\parindent}{0pt}
|
||||||
|
|
||||||
|
@ -8,7 +12,7 @@
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
\title{The Crie Havock Booke of Dottes}
|
\title{Ye Crie Havock Booke of Dottes}
|
||||||
|
|
||||||
\author{Jim Hague}
|
\author{Jim Hague}
|
||||||
|
|
||||||
|
@ -22,18 +26,13 @@
|
||||||
|
|
||||||
\section{Introduction}
|
\section{Introduction}
|
||||||
|
|
||||||
This book is aimed at providing the dots for all tunes commonly played at Cry Havoc music
|
This book provides the dots for all tunes commonly played at Cry Havoc music
|
||||||
sessions.
|
sessions.
|
||||||
|
|
||||||
The commands to typeset this file are:
|
|
||||||
|
|
||||||
\begin{verbatim}
|
|
||||||
pdflatex -shell-escape tunebook-sample.tex
|
|
||||||
pdflatex -shell-escape tunebook-sample.tex
|
|
||||||
\end{verbatim}
|
|
||||||
|
|
||||||
Read the \LaTeX{} source carefully to see how it works.
|
|
||||||
|
|
||||||
% -----
|
% -----
|
||||||
|
|
||||||
\section{Tunes}
|
\section{Tunes}
|
||||||
|
|
||||||
|
Tunes are arranged in alphabetical order of tune title.
|
||||||
|
|
||||||
|
\newpage
|
||||||
|
|
26
makeBooke.sh
26
makeBooke.sh
|
@ -9,10 +9,15 @@ if [ $# != 1 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
booke=$1
|
dir=`pwd`
|
||||||
|
|
||||||
|
booke=$dir/$1
|
||||||
|
builddir=$dir/build
|
||||||
output=dottes.tex
|
output=dottes.tex
|
||||||
|
|
||||||
cp dottes.tex.header $output
|
mkdir -p $builddir
|
||||||
|
|
||||||
|
cp dottes.tex.header $builddir/$output
|
||||||
|
|
||||||
# Now, for each tune, add
|
# Now, for each tune, add
|
||||||
#
|
#
|
||||||
|
@ -24,15 +29,16 @@ cp dottes.tex.header $output
|
||||||
find $booke -name "*.abc" | sort |
|
find $booke -name "*.abc" | sort |
|
||||||
while read filename
|
while read filename
|
||||||
do
|
do
|
||||||
title=`grep "^T:" $filename | sed -e "s/^T: *//"`
|
title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"`
|
||||||
name=`basename $filename .abc`
|
name=`basename $filename .abc`
|
||||||
echo "\\\\addcontentsline{toc}{subsection}{$title}" >> $output
|
echo "\\\\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output
|
||||||
echo "\\\\begin{abc}[name=$name]" >> $output
|
echo "\\\\begin{abc}[options=-j0 +c,name=$name]" >> $builddir/$output
|
||||||
cat $filename >> $output
|
cat $filename >> $builddir/$output
|
||||||
echo "\\\\end{abc}" >> $output
|
echo "\\\\end{abc}" >> $builddir/$output
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "\\\\end{document}" >> $output
|
cat dottes.tex.footer >> $builddir/$output
|
||||||
|
|
||||||
#pdflatex -shell-escape $output
|
cd $builddir
|
||||||
#pdflatex -shell-escape $output
|
pdflatex -shell-escape $output
|
||||||
|
pdflatex -shell-escape $output
|
||||||
|
|
Loading…
Reference in New Issue