File: fixtex.pl

package info (click to toggle)
libnasl 2.2.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,468 kB
  • ctags: 1,264
  • sloc: ansic: 15,596; sh: 7,735; yacc: 1,051; makefile: 255; perl: 27
file content (11 lines) | stat: -rw-r--r-- 188 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl -w

$f = 1;
while (<>) {
  print;
  if ($f && /^\\documentclass/) {
    print '\ifx\pdfoutput\undefined\else\usepackage{times}[12pt]\fi';
    print "\n";
    $f = 0;
  }
}