#!/bin/bash
rm -f /tmp/rapidtex/temp.*
mkdir -p /tmp/rapidtex
cp *.jpg /tmp/rapidtex/
rapidtex $1.rptex > /tmp/rapidtex/temp.tex
cd /tmp/rapidtex/
pdflatex /tmp/rapidtex/temp.tex
cd -
cp /tmp/rapidtex/temp.pdf $1.pdf
gv $1.pdf &
