#!/bin/sh BASE=${1%.} BASE=${1%.tex} etex $BASE.tex && dvips -o $BASE.ps $BASE.dvi && ps2pdf $BASE.ps && zathura $BASE.pdf