Mercurial > dottes
changeset 601:507d853433ef
Create a section title page in the print version.
Move the section comment to that title page.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Fri, 04 Nov 2016 00:03:54 +0000 |
parents | fceafdb462a8 |
children | c95364aa550c |
files | dottes.tex dottes.tex.section-firstlines dottes.tex.section-tunes makeBooke.sh makeBookeTunePages.sh |
diffstat | 5 files changed, 44 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/dottes.tex Wed Nov 02 18:36:54 2016 +0000 +++ b/dottes.tex Fri Nov 04 00:03:54 2016 +0000 @@ -180,8 +180,6 @@ This collection is intended to help those like me who are inexpert with instrument and folk music generally, but have a little musical background. -\input{intro.tex} - Being folk tunes, many of the tunes herein have many variations. The music presented here is my attempt at reflecting what the musicians of Cry Havoc play. I'm in no way suggesting that they are @@ -220,17 +218,7 @@ \mainmatter -\addcontentsline{toc}{chapter}{Tunes} - -{ -\newcolumntype{L}{p{0.25\textwidth}}% -\newcolumntype{R}{>{\raggedleft\arraybackslash}p{0.25\textwidth}}% -\newcolumntype{C}{>{\centering\arraybackslash}X}% -\renewcommand{\tabularxcolumn}[1]{m{#1}}% -\renewcommand{\tabcolsep}{0pt} - \input{tunes.tex} -} % ----- @@ -242,13 +230,7 @@ You've heard it before, but don't remember the name. So here's a list of tune first lines to help you figure out what it is in time to join in. -{\renewcommand{\arraystretch}{2.5} -\setlength\LTleft{0pt} -\setlength\LTright{\fill} -\begin{longtable}{@{}>{\raggedright\arraybackslash}m{0.2\textwidth}r@{}} \input{firstlines.tex} -\end{longtable} -} % ----- Back cover page. A plain purple page.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dottes.tex.section-firstlines Fri Nov 04 00:03:54 2016 +0000 @@ -0,0 +1,9 @@ +\section{@SECTION@ tunes} + +{\renewcommand{\arraystretch}{2.5} +\setlength\LTleft{0pt} +\setlength\LTright{\fill} +\begin{longtable}{@{}>{\raggedright\arraybackslash}m{0.2\textwidth}r@{}} +\input{@SECTION@-firstlines.tex} +\end{longtable} +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dottes.tex.section-tunes Fri Nov 04 00:03:54 2016 +0000 @@ -0,0 +1,27 @@ +% ----- Tunes and intro page for a section. + +\newpage + +\addcontentsline{toc}{chapter}{@SECTION@ tunes} + +\vspace*{\fill} + +\begin{center} +{\Large @SECTION@ tunes} +\end{center} + +\vspace*{\fill} + +\input{@SECTION@-intro.tex} + +\newpage + +{ +\newcolumntype{L}{p{0.25\textwidth}}% +\newcolumntype{R}{>{\raggedleft\arraybackslash}p{0.25\textwidth}}% +\newcolumntype{C}{>{\centering\arraybackslash}X}% +\renewcommand{\tabularxcolumn}[1]{m{#1}}% +\renewcommand{\tabcolsep}{0pt} + +\input{@SECTION@-tunes.tex} +}
--- a/makeBooke.sh Wed Nov 02 18:36:54 2016 +0000 +++ b/makeBooke.sh Fri Nov 04 00:03:54 2016 +0000 @@ -36,14 +36,17 @@ done for item in intro do - rm -f $builddir/$item.tex + rm -f $builddir/$1-$item.tex if [ -r $booke/$item.md ]; then - pandoc --from=markdown --to=latex --output=$builddir/$item.tex $booke/$item.md + pandoc --from=markdown --to=latex --output=$builddir/$1-$item.tex $booke/$item.md else - touch $builddir/$item.tex + touch $builddir/$1-$item.tex fi done +sed -e "s/@SECTION@/$1/" dottes.tex.section-tunes > $builddir/tunes.tex +sed -e "s/@SECTION@/$1/" dottes.tex.section-firstlines > $builddir/firstlines.tex + for filename in $dir/*.${papersize}.tex do name=`basename $filename .${papersize}.tex`
--- a/makeBookeTunePages.sh Wed Nov 02 18:36:54 2016 +0000 +++ b/makeBookeTunePages.sh Fri Nov 04 00:03:54 2016 +0000 @@ -18,8 +18,8 @@ booke=$dir/$1 builddir=$dir/build graphicsdir=$dir/graphics/$1 -tunesoutput=$builddir/tunes.tex -indexoutput=$builddir/firstlines.tex +tunesoutput=$builddir/$1-tunes.tex +indexoutput=$builddir/$1-firstlines.tex mkdir -p $builddir