--- muttprint-0.72a/muttprint.agriffis 2004-04-07 13:27:31.000000000 -0400 +++ muttprint-0.72a/muttprint 2004-08-17 13:42:22.000000000 -0400 @@ -598,8 +598,10 @@ # # running latex twice because of the "page ... of ..." -system("latex -interaction=nonstopmode mail.tex >> $errorRedirection 2>&1"); -system("latex -interaction=nonstopmode mail.tex >> $errorRedirection 2>&1"); +use File::Which; +my $latex = which('platex') || 'latex'; +system("$latex -interaction=nonstopmode mail.tex >> $errorRedirection 2>&1"); +system("$latex -interaction=nonstopmode mail.tex >> $errorRedirection 2>&1"); # # no check of the exit code because we do this here