diff --git a/dottes.tex.a4header b/dottes.tex.a4header index 1a426e5..75f061c 100644 --- a/dottes.tex.a4header +++ b/dottes.tex.a4header @@ -3,6 +3,7 @@ \usepackage{graphicx} \usepackage{fancyhdr} \usepackage{longtable} +\usepackage{float} \usepackage{hyperref} \hypersetup{ diff --git a/dottes.tex.a5header b/dottes.tex.a5header index becdce4..125fafe 100644 --- a/dottes.tex.a5header +++ b/dottes.tex.a5header @@ -3,6 +3,7 @@ \usepackage{graphicx} \usepackage{fancyhdr} \usepackage{longtable} +\usepackage{float} \usepackage{hyperref} \hypersetup{ diff --git a/makeBookeA4.sh b/makeBookeA4.sh index 8291e0c..b560682 100755 --- a/makeBookeA4.sh +++ b/makeBookeA4.sh @@ -60,11 +60,10 @@ find $booke -name "*.abc" | sort | fixtitle "$title" title=$retval - echo -E "\begin{center}" >> $builddir/$output + echo -E "\begin{figure}[H]" >> $builddir/$output echo -E "\phantomsection" >> $builddir/$output - echo -E "\hypertarget{$name}{\includegraphics[width=\textwidth,keepaspectratio]{$graphicsdir/$name}}" >> $builddir/$output + echo -E "{\centering \hypertarget{$name}{\includegraphics[width=\textwidth,keepaspectratio]{$graphicsdir/$name}}}" >> $builddir/$output echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output - echo -E "\end{center}" >> $builddir/$output changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"` changetitle="" @@ -75,6 +74,7 @@ find $booke -name "*.abc" | sort | changename=`basename $changefile .abc` echo -E "Change: \hyperlink{$changename}{$changetitle}" >> $builddir/$output fi + echo -E "\end{figure}" >> $builddir/$output done cat dottes.tex.firstlines >> $builddir/$output diff --git a/makeBookeA5.sh b/makeBookeA5.sh index ad33820..de43b71 100755 --- a/makeBookeA5.sh +++ b/makeBookeA5.sh @@ -63,11 +63,10 @@ find $booke -name "*.abc" | sort | title=$retval echo -E "\newpage" >> $builddir/$output - echo -E "\begin{center}" >> $builddir/$output + echo -E "\begin{figure}[H]" >> $builddir/$output echo -E "\phantomsection" >> $builddir/$output - echo -E "\hypertarget{$name}{\includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{$graphicsdir/$name}}" >> $builddir/$output + echo -E "{\centering \hypertarget{$name}{\includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{$graphicsdir/$name}}}" >> $builddir/$output echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output - echo -E "\end{center}" >> $builddir/$output changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"` changetitle="" @@ -78,6 +77,7 @@ find $booke -name "*.abc" | sort | changename=`basename $changefile .abc` echo -E "Change: \hyperlink{$changename}{$changetitle}" >> $builddir/$output fi + echo -E "\end{figure}" >> $builddir/$output done cat dottes.tex.firstlines >> $builddir/$output