#!/bin/sh
# Launched by RunTestTS

libdir=..
. $libdir/config &&
. $libdir/Funcs && 

BigTitle
Subtitle
if [ "$page" = "back" ]; then
       BackBorders
fi 

# and 'DoLayout' except launching gv
cat $libdir/CD.latex.begin.$page ${mid} $libdir/CD.latex.end >${lay}/${cdn}.latex &&
cd ${lay} &&
latex ${cdn}.latex &&
latex ${cdn}.latex &&
dvips ${cdn}.dvi -t a4 -t landscape -o

# clean up intermediary files
rm $cdn.aux $cdn.log $cdn.dvi $cdn.latex
