From 676554040aa396098c86c036cdacf7f3caa1a143 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Thu, 14 Sep 2017 14:11:00 +0100 Subject: [PATCH] Make sure section names strip any '-' filename decoration. --- dottes.tex.section-firstlines | 2 +- dottes.tex.section-tunes | 2 +- makeBooke.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dottes.tex.section-firstlines b/dottes.tex.section-firstlines index 4b9198c..f61a3ab 100644 --- a/dottes.tex.section-firstlines +++ b/dottes.tex.section-firstlines @@ -1,4 +1,4 @@ -\section{@SECTION@ tunes} +\section{@SECTIONNAME@ tunes} {\renewcommand{\arraystretch}{2.5} \setlength\LTleft{0pt} diff --git a/dottes.tex.section-tunes b/dottes.tex.section-tunes index a430577..4ccc574 100644 --- a/dottes.tex.section-tunes +++ b/dottes.tex.section-tunes @@ -2,7 +2,7 @@ \newpage -\addcontentsline{toc}{chapter}{@SECTION@ tunes} +\addcontentsline{toc}{chapter}{@SECTIONNAME@ tunes} \vspace*{\fill} diff --git a/makeBooke.sh b/makeBooke.sh index 03d489c..b67c256 100755 --- a/makeBooke.sh +++ b/makeBooke.sh @@ -78,8 +78,8 @@ do fi done - sed -e "s/@SECTION@/$sectionname/" dottes.tex.section-tunes >> $builddir/tunes.tex - sed -e "s/@SECTION@/$sectionname/" dottes.tex.section-firstlines >> $builddir/firstlines.tex + sed -e "s/@SECTION@/$1/" -e "s/@SECTIONNAME@/$sectionname/" dottes.tex.section-tunes >> $builddir/tunes.tex + sed -e "s/@SECTION@/$1/" -e "s/@SECTIONNAME@/$sectionname/" dottes.tex.section-firstlines >> $builddir/firstlines.tex shift done