Diff for /loncom/interface/printout.pl between versions 1.141 and 1.142.6.3

version 1.141, 2009/04/17 10:02:49 version 1.142.6.3, 2010/05/11 12:10:25
Line 171  Your cookie information is incorrect. Line 171  Your cookie information is incorrect.
 </body>  </body>
 </html>  </html>
 END  END
     return;      exit;
 }  }
   
 my %perlvar=%{&LONCAPA::Configuration::read_conf('loncapa.conf')};  my %perlvar=%{&LONCAPA::Configuration::read_conf('loncapa.conf')};
Line 467  foreach $texfile (@texfile) { Line 467  foreach $texfile (@texfile) {
       my $ps_file = my $tempo_file = $1.'temporar.ps';        my $ps_file = my $tempo_file = $1.'temporar.ps';
       my $pdf_file = $1.'.pdf';        my $pdf_file = $1.'.pdf';
       $papera=~s/t/p/;        $papera=~s/t/p/;
                 $comma = "fixps --force $new_name_file";
                 &debug("FIXPS command: $comma");
                 &busy_wait_command("$comma 1>/dev/null 2>/dev/null",
                                    "for $status_statement now validating PS",
                                    \%prog_state,$tempo_file);
       if ($laystyle eq 'album' and $numberofcolumns eq '2') {        if ($laystyle eq 'album' and $numberofcolumns eq '2') {
   $comma = "fixps --force ".$new_name_file." | psnup $papera -2 -s1.0 ";    $comma = "psnup $papera -2 -s1.0 $new_name_file";
   &debug("PSNUP command: $comma");    &debug("PSNUP command: $comma");
   &busy_wait_command("$comma 1>$tempo_file  2>/dev/null",                    &busy_wait_command("$comma 1>$tempo_file 2>/dev/null",
      "for $status_statement now Modifying PS layout",       "for $status_statement now Modifying PS layout",
      \%prog_state,$tempo_file);       \%prog_state,$tempo_file);
             &busy_wait_command("mv $tempo_file $new_name_file",
        'File move', \%prog_state, $new_name_file);
       } elsif ($laystyle eq 'book' and $numberofcolumns eq '2') {        } elsif ($laystyle eq 'book' and $numberofcolumns eq '2') {
   $comma = 'fixps --force '.$new_name_file.' | pstops '.$papera.' "2:0+1(0.48w,0)"';    $comma = 'pstops '.$papera.' "2:0+1(0.48w,0)" '.$new_name_file;
   &debug("PSTOPS command: $comma ");    &debug("PSTOPS command: $comma ");
     &busy_wait_command("$comma $tempo_file 1>/dev/null 2>/dev/null",
   &busy_wait_command("$comma 1>$tempo_file  2>/dev/null",  
      "for $status_statement now Modifying PS layout",       "for $status_statement now Modifying PS layout",
      \%prog_state,$tempo_file);        \%prog_state,$tempo_file); 
       } else {        } else {
Line 1056  sub analyze_logfile { Line 1062  sub analyze_logfile {
     #    $name_file     - is the name of the LaTeX file.      #    $name_file     - is the name of the LaTeX file.
     #    $identifier    - is the unique LaTeX identifier.l      #    $identifier    - is the unique LaTeX identifier.l
           
             print "<br />";              print '<p class="LC_error">';
     if ($badtext) {      if ($badtext) {
                 print &mt('There are errors in [_1].',$badtext);                  print &mt('There are errors in [_1].',$badtext);
             } else {              } else {
                 print &mt('There are errors.');                  print &mt('There are errors.');
             }              }
     print "<br />".&mt('These errors prevent this resource from printing correctly.');              print '</p>'
                    .&mt('These errors prevent this resource from printing correctly.');
   
     my $tex_handle = IO::File->new($texfile);      my $tex_handle = IO::File->new($texfile);
     my @tex_contents = <$tex_handle>;      my @tex_contents = <$tex_handle>;
     &send_error_mail($identifier, $badresource, $body_log_file, \@tex_contents);      &send_error_mail($identifier, $badresource, $body_log_file, \@tex_contents);

Removed from v.1.141  
changed lines
  Added in v.1.142.6.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>