Changeset 742 for trunk/GenPDFLatexAddOn/lib/TWiki/Contrib/GenPDFLatex.pm
- Timestamp:
- 11/16/08 20:26:12 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GenPDFLatexAddOn/lib/TWiki/Contrib/GenPDFLatex.pm
r147 r742 209 209 # create a temporary working directory 210 210 my $WDIR = File::Temp::tempdir(); 211 `chmod a+rwx $WDIR` if ($debug);212 211 213 212 my $latexfile = $WDIR.'/lmp_content.tex'; … … 236 235 my $ret = ""; 237 236 do { 238 $ret = `$pdflatex -interaction=nonstopmode $texrel`; 239 $ret .= `$bibtex $base` if ($tex =~ m/\\bibliography\{/); 237 my $sandbox = $TWiki::sharedSandbox || $TWiki::sandbox; 238 my ($result, $code) = $sandbox->sysCommand( "$pdflatex -interaction=nonstopmode $texrel" ); 239 $ret = $result; 240 if( $tex =~ m/\\bibliography\{/ ) { 241 ($result, $code) = $sandbox->sysCommand( "$bibtex $base" ); 242 $ret .= $result; 243 } 240 244 $flag++ unless ($ret =~ m/Warning.*?Rerun/i); 241 245 } while ($flag < 2);
Note: See TracChangeset
for help on using the changeset viewer.
