[LON-CAPA-cvs] cvs: doc /help render.texxml.pl

bowersj2 lon-capa-cvs@mail.lon-capa.org
Fri, 19 Jul 2002 17:00:05 -0000


bowersj2		Fri Jul 19 13:00:05 2002 EDT

  Modified files:              
    /doc/help	render.texxml.pl 
  Log:
  Another try at not hanging when LaTeX fails.
  
  
  
Index: doc/help/render.texxml.pl
diff -u doc/help/render.texxml.pl:1.3 doc/help/render.texxml.pl:1.4
--- doc/help/render.texxml.pl:1.3	Fri Jul 19 10:27:05 2002
+++ doc/help/render.texxml.pl	Fri Jul 19 13:00:05 2002
@@ -72,7 +72,7 @@
 
 # \scrollmode\input causes LaTeX to not stop on errors
 print "Running Latex...\n";
-system ( "cd $tmpdir; latex \"\\scrollmode\\input $fileroot\" $redir; latex \"\\scrollmode\\input $fileroot\ $redir; latex \"\\scrollmode\\input $fileroot\ $redir; " );
+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 " );