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.
This commit is contained in:
Jim Hague 2018-06-11 09:47:58 +01:00
parent 1d147d20b3
commit 8cdbb8fec6
6 changed files with 16 additions and 5 deletions

BIN
Library/image.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 KiB

BIN
Morris/image.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
Session/image.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

View File

@ -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}

View File

@ -13,6 +13,7 @@
\vspace*{\fill}
\showsectiongraphic{@SECTION@-image.jpg}
\input{@SECTION@-intro.tex}
\newpage

View File

@ -65,13 +65,13 @@ do
# 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