[LON-CAPA-cvs] cvs: loncom /interface printout.pl

foxr lon-capa-cvs@mail.lon-capa.org
Sat, 04 Feb 2006 19:01:21 -0000


foxr		Sat Feb  4 14:01:21 2006 EDT

  Modified files:              
    /loncom/interface	printout.pl 
  Log:
  Add one more LaTeX run if contents are being generated.
  
  
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.94 loncom/interface/printout.pl:1.95
--- loncom/interface/printout.pl:1.94	Thu Dec 15 13:41:21 2005
+++ loncom/interface/printout.pl	Sat Feb  4 14:01:20 2006
@@ -337,7 +337,10 @@
 			 \%prog_state,$dvi_file);
       if ($tableofcontents eq 'yes') {
       &busy_wait_command("latex $name_file 1>/dev/null 2>/dev/null",
-			 "for $status_statement now LaTeXing file for table of contents",
+			 "for $status_statement First LaTeX of file for table of contents",
+			 \%prog_state,$dvi_file);
+      &busy_wait_command("latex $name_file 1>/dev/null 2>/dev/null",
+			 "for $status_statement Second LaTeX of file for table of contents",
 			 \%prog_state,$dvi_file);
       } #to create table of contents
       my $idxname=$name_file;