Debian Codegraph @

script/latex2dvi

raw ◀ ▶
1 Debian patch touch this file
1 #!/usr/bin/perl -w
2 #========================================================================
3 #
4 # latex2dvi
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: latex2dvi 73 2007-10-12 23:11:27Z andrew $
22 #
23 #========================================================================
24
25 use strict;
26 use warnings;
27
28 use LaTeX::Driver::FilterProgram;
29
30 LaTeX::Driver::FilterProgram->execute(format => 'dvi');
31
32 exit 0;
33
34 __END__
35
36 =head1 NAME
37
38 latex2dvi - script to convert LaTeX file to DVI
39
40 =head1 USAGE
41
42 latex2dvi [OPTIONS] [-o output] [sourcefile]
43
44 =head1 DESCRIPTION
45
46 C<latex2dvi> is a simple script to invoke the C<LaTeX::Driver> module
47 to convert a LaTeX file to DVI (TeX's device independent output format).
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 Andrew Ford E<lt>[email protected]<gt>
80
81
82 =head1 LICENSE AND COPYRIGHT
83
84 Copyright (C) 2007 Andrew Ford. All Rights Reserved.
85
86 This module is free software; you can redistribute it and/or
87 modify it under the same terms as Perl itself.
88
89 =cut
90
91 # Local Variables:
92 # mode: perl
93 # perl-indent-level: 4
94 # indent-tabs-mode: nil
95 # End:
96 #
97 # vim: expandtab shiftwidth=4: