2 spawn pdflatex {*}$argv
5 expect -re "^.*File .(.*). not found.*$|^.*language definition file (.*) was not foun" {
6 set result $expect_out(1,string)
7 send_user "\nTrying to install missing package\n"
8 if {$oldresult == $result} {
9 send_user "$result has been tried twice with no results\n"
10 send_user "Is this not an image? Aborting...\n"
15 set spawn_id $latexpid
18 spawn pdflatex {*}$argv