Mercurial > dottes
changeset 814:f5f6517a8bdf build-default-305
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.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Mon, 11 Jun 2018 09:47:58 +0100 |
parents | f78a3816fc8b |
children | 7081145d682e |
files | Library/image.jpg Morris/image.jpg Session/image.jpg dottes.tex dottes.tex.section-tunes makeBooke.sh |
diffstat | 6 files changed, 16 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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}
--- 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
--- 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