Debian Codegraph @

script/latex2ps

raw ◀ ▶
1 Debian patch touch this file
1 #!/usr/bin/perl -w
2 #========================================================================
3 #
4 # latex2ps
5 #
6 # DESCRIPTION
7 # Script for processing and rendering a template document using the
8 # Perl Template Toolkit.
9 #
10 # AUTHOR
11 # Andrew Ford <[email protected]>
12 #
13 # COPYRIGHT
14 # Copyright (C) 2007 Andrew Ford. All Rights Reserved.
15 #
16 # This module is free software; you can redistribute it and/or
17 # modify it under the same terms as Perl itself.
18 #
19 #------------------------------------------------------------------------
20 #
21 # $Id: latex2ps 59 2007-09-28 14:39:34Z andrew $
22 #
23 #========================================================================
24
25 use strict;
26 use warnings;
27
28
29 use LaTeX::Driver::FilterProgram;
30
31 LaTeX::Driver::FilterProgram->execute(format => 'dvi');
32
33 exit(0);
34
35 __END__
36
37
38 =head1 NAME
39
40 latex2ps - script to convert LaTeX file to PostScript
41
42 =head1 SYNOPSIS
43
44 latex2ps [OPTIONS] [-o output] [sourcefile]
45
46 =head1 DESCRIPTION
47
48 C<latex2ps> is a simple script to invoke the C<LaTeX::Driver> module
49 to convert a LaTeX file to PostScript.
50
•51 =head1 OPTIONS
52
•53 =over 4
54
55 =item C<-output=FILE>
56
57 specifies that the formatted file should be written to C<FILE>. If
58 this option is not specified, or is specified as "C<->" then the file
59 will be written to standard output, otherwise if an input file is
60 specified then the it will be formatted in place and the output file
61 will have the same name as the input file, but with the original
62 extension replaced with C<.dvi>.
63
64
65 =item C<-tt2>
66
67 specifies that the source document should be taken to be a Template
68 Toolkit template and processed through that before being fed to the
69 C<LaTeX::Driver> module for latex formatting.
70
71
72 =item C<-define=I<NAME>=I<VALUE>>
73
74 defines the template variable I<NAME> to have the value I<VALUE>.
75 Multiple template variables may be defined and these are passed to the
76 Template Toolkit processing stage (they are ignored if the C<-tt2>
77 option is not specified).
78
79 =back
80
81 =head1 AUTHOR
82
83 Andrew Ford E<lt>[email protected]<gt>
84
85
86 =head1 LICENSE AND COPYRIGHT
87
88 Copyright (C) 2007 Andrew Ford. All Rights Reserved.
89
90 This module is free software; you can redistribute it and/or
91 modify it under the same terms as Perl itself.
92
93 =cut
94
95 # Local Variables:
96 # mode: perl
97 # perl-indent-level: 4
98 # indent-tabs-mode: nil
99 # End:
100 #
101 # vim: expandtab shiftwidth=4: