#!/bin/sh
# Launched by RunTest

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

Title
WriteLines

# 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
