# Uncomment the following line for debugging initialization
# set -x

LATEX="pdflatex"
LEVEL=1

MYID=$$

xpdfcmd () { xpdf -remote $$ -exec "$@" }

mylaunch () {
  exec xpdf -remote $MYID "$1"
}

myreload () {
  xpdfcmd reload
  xpdfcmd "gotoDest(Start-Document)"
}

RELOAD=myreload
VIEWCOMMAND=mylaunch
