--- doc/help/render.texxml.pl 2002/07/30 18:24:44 1.6 +++ doc/help/render.texxml.pl 2003/04/01 04:30:10 1.10 @@ -67,6 +67,7 @@ if ( defined ( $ARGV[2] ) ) # override e } my $redir = ">& /dev/null"; # empty this for easier debugging +#my $redir = ">> /home/jerf/work/loncapa/doc/help/error_log.txt"; mkdir $tmpdir, 0755; @@ -76,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 -Ppdf -G0 -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 { 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.