#!/bin/bash # Run latex with the local environment + run it twice to resolve # forward references. # The trailing colon indicates the standard search path should be # appended to the user specified TEXINPUT variable. export TEXINPUTS=".:~/papers:" latex "$1" latex "$1"