#!/bin/csh -f
# 1993 (c) Werner Fink <Werner.Fink@itap.physik.uni-stuttgart.de>
#

if (${#argv} <= 1) then
  echo " ${0}: Usage:  infile  outfile"
  exit
endif

set NumP=`mydvichk $1 | sed -e 's/totalpages=//g'`

if (${NumP} % 2) then
  echo " Odd number of pages --- this doesn't work"
  echo " Please use odd2even: This gives an additional first pages" 
  echo " Or"
  echo " use dvibook: It sort the pages in book form"
  exit
endif

echo "${0}: For Printing:  dvips -t landscape outfile"
echo "${0}: For Viewing:   xdvi -paper a4r outfile"

#
#exec dvitodvi -q '2:707@0(-5.5mm,-10mm)+1(204mm,-10mm)' $1 $2
#
exec  dvitodvi -q '2:707@0(-5.5mm,-10mm)+1(190mm,-10mm)' $1 $2
