# HG changeset patch
# User Jim Hague <jim.hague@acm.org>
# Date 1528706878 -3600
# Node ID f5f6517a8bdf4f1f8c7658be0a49e2990b8faff9
# Parent  f78a3816fc8b50a36dbca19ba9598901cb1e7182
Add section picture to the section title page on printed Bookes only.

I guess these could be added to be website, but right now I don't think
they'd add much. On paper, they fill some blank space.

diff -r f78a3816fc8b -r f5f6517a8bdf Library/image.jpg
Binary file Library/image.jpg has changed
diff -r f78a3816fc8b -r f5f6517a8bdf Morris/image.jpg
Binary file Morris/image.jpg has changed
diff -r f78a3816fc8b -r f5f6517a8bdf Session/image.jpg
Binary file Session/image.jpg has changed
diff -r f78a3816fc8b -r f5f6517a8bdf dottes.tex
--- a/dottes.tex	Sun Jun 10 14:14:46 2018 +0100
+++ b/dottes.tex	Mon Jun 11 09:47:58 2018 +0100
@@ -75,6 +75,16 @@
     \raisebox{-.4\height}{\includegraphics[width=0.77\textwidth]{#3}} \\
 }
 
+% Show the section graphic.
+% Args are the graphic filename.
+\newcommand{\showsectiongraphic}[1]{%
+  \vfill
+  \begin{center}
+  \includegraphics[width=0.25\textwidth,keepaspectratio]{#1}
+  \end{center}
+  \vfill
+}
+
 % ----- Paper size document setup
 
 \input{docsetup.tex}
diff -r f78a3816fc8b -r f5f6517a8bdf dottes.tex.section-tunes
--- a/dottes.tex.section-tunes	Sun Jun 10 14:14:46 2018 +0100
+++ b/dottes.tex.section-tunes	Mon Jun 11 09:47:58 2018 +0100
@@ -13,6 +13,7 @@
 
 \vspace*{\fill}
 
+\showsectiongraphic{@SECTION@-image.jpg}
 \input{@SECTION@-intro.tex}
 
 \newpage
diff -r f78a3816fc8b -r f5f6517a8bdf makeBooke.sh
--- a/makeBooke.sh	Sun Jun 10 14:14:46 2018 +0100
+++ b/makeBooke.sh	Mon Jun 11 09:47:58 2018 +0100
@@ -65,13 +65,13 @@
     # Section name - strip any instrument name off the end.
     sectionname=${1/-*/}
 
-    for item in title subtitle instrument
+    for item in title.txt subtitle.txt instrument.txt image.jpg
     do
-        rm -f $builddir/$1-$item.txt
-        if [ -r $section/$item.txt ]; then
-            cp $section/$item.txt $builddir/$1-$item.txt
+        rm -f $builddir/$1-$item
+        if [ -r $section/$item ]; then
+            cp $section/$item $builddir/$1-$item
         else
-            touch $builddir/$1-$item.txt
+            touch $builddir/$1-$item
         fi
     done
     for item in intro