#!/bin/bash for i in $*; do i=`basename $i .tex` dviselect 2,3 $i.dvi /tmp/hfstlumpi.dvi a5doppel /tmp/hfstlumpi dvips -h landscape.ps -t landscape /tmp/hfstlumpi.d.dvi -o /tmp/hfstlumpi.ps; ps2pdf -g8420x5950 -sOutputFile=$i.pdf /tmp/hfstlumpi.ps done