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

export PAPERSIZE=A4

LATEX="pdflatex"
LEVEL=1

MYID=$$

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

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

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

mylatex () {
  pdflatex -synctex=15 "$@"
}

RELOAD=myreload
VIEWCOMMAND=mylaunch
LATEX=mylatex
