#!/bin/sh
BASENAME=$(basename $1 .doc)

doctexplus $1

latex -halt-on-error $BASENAME.tex

rm -f $BASENAME.tex $BASENAME.aux $BASENAME.log
