#!/bin/csh -f #(ie run the cshell on this but don't read the .cshrc) # version = 2.02 of sss 2004 Feb 24 # 2004 Feb 24, 2.02 - set position for sunos5.9 # 2003 Nov 4, 2.01 - -bg set to white (default is stupid grey under gnome) # 1999 Jan 10, 2.00 - origin before this # sss: preview a dvi file but shrunk to just the text switch ($#argv) case 0: echo see: give the name of the file you wish to see! breaksw case 1: if (-f $1.dvi) then if (`sunos5.9`) then set xpos = 1050 set ypos = 150 else set xpos = 670 set ypos = 70 endif xdvi -bg white \ -offsets 0.1in -paper 0.1x0.1cm -expert -mgs1 1200x1200 -s 7 \ -geometry 900x900+$xpos+$ypos $1.dvi& else echo $1.dvi does not exist endif # dvipage -p /usr/local/lib/tex/fonts/pk300 $1.dvi # xdvi -density 15 -s 3 -margins 10 -mgs1 1200 -icongeometry +950+400 $1.dvi & breaksw default: echo 'Too many arguments to see' breaksw endsw exit ******************************************************************************** Various earlier notes: # echo You are going to see file $1.dvi on `/usr/local/bin/hostname2` # xdvi -density 15 -s 3 -margins 10 -mgs1 1200 -icongeometry +950+400 $1.dvi >& /dev/null& # -p 800 reverts to 600 pixles per inch and looks awful # margins don't do anything! # xdvi -expert -margins 10cm -mgs1 1200x1200 -s 7 $1.dvi& # expert works to block the control pannel - use x to restore # # this is pretty good!!! # it works because the page is SO small that xdvi fits the margin to the text!!! # xdvi -offsets 0.1in -paper 6.5x8cm -expert -mgs1 1200x1200 -s 7 $1.dvi& # # This works wonders: # xdvi -offsets 0.1in -paper 0.1x0.1cm -expert -mgs1 1200x1200 -s 7 $1.dvi& # # margin and sidemargin still don't do anything # xdvi -margins 1cm -offsets 0.1in -paper 0.1x0.1cm -expert -mgs1 1200x1200 -s 7 $1.dvi& # # works fine: # xdvi -offsets 0.1in -paper 0.1x0.1cm -expert -mgs1 1200x1200 -s 7 $1.dvi& # # acrobat -help gives: # -geometry [x][{+|-}{+|-}] # Size and/or location of the document windows. # # so try to set geometry: #xdvi -offsets 0.1in -paper 0.1x0.1cm -expert -mgs1 1200x1200 -s 7 -geometry +700+70 $1.dvi& # -geometry +across+down