--- doc/help/render.texxml.pl 2002/07/19 17:00:05 1.4 +++ doc/help/render.texxml.pl 2002/08/09 14:48:31 1.7 @@ -34,7 +34,7 @@ if ( scalar(@ARGV) < 2 ) print (< $tmpdir/$fileroot.tex" ); @@ -70,22 +77,24 @@ system ( "perl texxml2latex.pl $fileroot print "Copying .eps files...\n"; system ( "cp $epssource/* $tmpdir/" ); -# \scrollmode\input causes LaTeX to not stop on errors print "Running Latex...\n"; system ( "cd $tmpdir; echo | latex $fileroot $redir; echo | latex $fileroot $redir; echo | latex $fileroot\ $redir; " ); print "Running dvips...\n"; -system ( "cd $tmpdir; dvips -f $fileroot.dvi > $fileroot.ps $redir " ); +system ( "cd $tmpdir; dvips -f $fileroot.dvi > $fileroot.ps " ); print "Copying ps file...\n"; system ( "cp $tmpdir/$fileroot.ps ."); +print "Converting to PDF (may take a bit)...\n"; +system ( "ps2pdf $fileroot.ps $fileroot.pdf" ); + print "Clearing temp directory...\n"; -#system ( "rm -rf $tmpdir" ); +system ( "rm -rf $tmpdir" ); if ( -e $fileroot . ".ps" ) { - print "$fileroot.ps is ready.\n"; + print "$fileroot.ps and $fileroot.pdf are ready.\n"; } else {