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:
parent
1d147d20b3
commit
8cdbb8fec6
Binary file not shown.
After Width: | Height: | Size: 329 KiB |
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.4 MiB |
10
dottes.tex
10
dottes.tex
|
@ -75,6 +75,16 @@
|
||||||
\raisebox{-.4\height}{\includegraphics[width=0.77\textwidth]{#3}} \\
|
\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
|
% ----- Paper size document setup
|
||||||
|
|
||||||
\input{docsetup.tex}
|
\input{docsetup.tex}
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
\vspace*{\fill}
|
\vspace*{\fill}
|
||||||
|
|
||||||
|
\showsectiongraphic{@SECTION@-image.jpg}
|
||||||
\input{@SECTION@-intro.tex}
|
\input{@SECTION@-intro.tex}
|
||||||
|
|
||||||
\newpage
|
\newpage
|
||||||
|
|
10
makeBooke.sh
10
makeBooke.sh
|
@ -65,13 +65,13 @@ do
|
||||||
# Section name - strip any instrument name off the end.
|
# Section name - strip any instrument name off the end.
|
||||||
sectionname=${1/-*/}
|
sectionname=${1/-*/}
|
||||||
|
|
||||||
for item in title subtitle instrument
|
for item in title.txt subtitle.txt instrument.txt image.jpg
|
||||||
do
|
do
|
||||||
rm -f $builddir/$1-$item.txt
|
rm -f $builddir/$1-$item
|
||||||
if [ -r $section/$item.txt ]; then
|
if [ -r $section/$item ]; then
|
||||||
cp $section/$item.txt $builddir/$1-$item.txt
|
cp $section/$item $builddir/$1-$item
|
||||||
else
|
else
|
||||||
touch $builddir/$1-$item.txt
|
touch $builddir/$1-$item
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for item in intro
|
for item in intro
|
||||||
|
|
Loading…
Reference in New Issue