From c81cce41dd4779d3a3abe2c60db77326d785a9b8 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Sat, 3 Mar 2012 12:00:35 +0000 Subject: [PATCH] Fix up troubles with \. echo -E disables expansion. --- makeBooke.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/makeBooke.sh b/makeBooke.sh index bdc1e3c..c056cb3 100755 --- a/makeBooke.sh +++ b/makeBooke.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Build the Booke. First assemble the book LaTeX, then build it # into a PDF. @@ -33,10 +33,10 @@ find $booke -name "*.abc" | sort | name=`basename $filename .abc` abcm2ps -j0 +c -n -E -O $builddir/$name.eps $filename epstopdf --outfile=$builddir/$name.pdf $builddir/${name}001.eps - echo "\\\\begin{center}" >> $builddir/$output - echo "\\\\includegraphics[width=\\\\textwidth]{$name}" >> $builddir/$output - echo "\\\\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output - echo "\\\\end{center}" >> $builddir/$output + echo -E "\begin{center}" >> $builddir/$output + echo -E "\includegraphics[width=\textwidth]{$name}" >> $builddir/$output + echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output + echo -E "\end{center}" >> $builddir/$output done cat dottes.tex.footer >> $builddir/$output