File: fixtex.pl

package info (click to toggle)
libnasl 2.2.8-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,504 kB
  • ctags: 1,275
  • sloc: ansic: 15,837; sh: 7,767; yacc: 1,054; 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;
  }
}