Revision ba233a63
Von Moritz Bunkus vor mehr als 15 Jahren hinzugefügt
SL/Template.pm | ||
---|---|---|
523 | 523 |
|
524 | 524 |
$form->{tmpfile} =~ s/\Q$userspath\E\///g; |
525 | 525 |
|
526 |
my $latex = $self->_get_latex_path(); |
|
527 |
|
|
526 | 528 |
for (my $run = 1; $run <= 2; $run++) { |
527 |
system("latex --interaction=nonstopmode $form->{tmpfile} " .
|
|
529 |
system("${latex} --interaction=nonstopmode $form->{tmpfile} " .
|
|
528 | 530 |
"> $form->{tmpfile}.err"); |
529 | 531 |
if ($?) { |
530 | 532 |
$self->{"error"} = $form->cleanup(); |
... | ... | |
562 | 564 |
|
563 | 565 |
$form->{tmpfile} =~ s/\Q$userspath\E\///g; |
564 | 566 |
|
567 |
my $latex = $self->_get_latex_path(); |
|
568 |
|
|
565 | 569 |
for (my $run = 1; $run <= 2; $run++) { |
566 |
system("pdflatex --interaction=nonstopmode $form->{tmpfile} " .
|
|
570 |
system("${latex} --interaction=nonstopmode $form->{tmpfile} " .
|
|
567 | 571 |
"> $form->{tmpfile}.err"); |
568 | 572 |
if ($?) { |
569 | 573 |
$self->{"error"} = $form->cleanup(); |
... | ... | |
577 | 581 |
$self->cleanup(); |
578 | 582 |
} |
579 | 583 |
|
584 |
sub _get_latex_path { |
|
585 |
return $main::latex_bin || 'pdflatex'; |
|
586 |
} |
|
587 |
|
|
580 | 588 |
sub get_mime_type() { |
581 | 589 |
my ($self) = @_; |
582 | 590 |
|
Auch abrufbar als: Unified diff
Den Namen bzw. den Pfad zum LaTeX-Executable konfigurierbar gemacht.
Fix für Bug 942.