Changeset 742
- Timestamp:
- 11/16/08 20:26:12 (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
EmbedBibPlugin/lib/TWiki/Plugins/EmbedBibPlugin.pm (modified) (2 diffs)
-
GenPDFLatexAddOn/lib/TWiki/Contrib/GenPDFLatex.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/EmbedBibPlugin/lib/TWiki/Plugins/EmbedBibPlugin.pm
r529 r742 172 172 } 173 173 174 174 my $sandbox = $TWiki::sharedSandbox || $TWiki::sandbox; 175 175 if ( $Style eq "bibtex" ) 176 176 { 177 return `$bibtoolcommand`;177 return $sandbox->sysCommand( $bibtoolcommand ); 178 178 } 179 179 elsif ( $Style eq "html" ) … … 211 211 # input from stdin 212 212 open(TMPFILE, ">$tmpBibFile") or return "EMBEDBIB Error: fatal error"; 213 my $tmpOut = `$bibtoolcommand`;213 my $tmpOut = $sandbox->sysCommand( $bibtoolcommand ); 214 214 print TMPFILE $tmpOut; 215 215 print TMPFILE $bibtex2htmlConf; 216 217 return `$bibtex2htmlPath $tmpBibFile $bibtex2htmlArgs `; 216 close TMPFILE; 217 218 $tmpOut = $sandbox->sysCommand( "$bibtex2htmlPath $tmpBibFile $bibtex2htmlArgs" ); 219 unlink $tmpBibFile; 220 return $tmpOut; 218 221 } 219 222 } -
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.
