Debian Codegraph @

script/latex2pdf

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