lilypond-1.3.24
[lilypond.git] / Documentation / ly2dvi.pod
blobc9a749d710e513d4fe38f55e7511613e2ef0c091
1 =head1 NAME
3 ly2dvi - convert mudela to DVI
5 =head1 SYNOPSIS
7         ly2dvi [options] inputfile[.ly] [....]
9 =head1 DESCRIPTION
11 ly2dvi is a shell script which creates input file for LaTeX,
12 based on information from the output files from lilypond.
13 The script handles multiple files. If a mudela file name is
14 specified lilypond is run to make an output (TeX) file.
16 One or more LaTeX files are created, based on information found
17 in the output (TeX) files, and latex is finally run to create
18 one or more DVI files.
20 =head1 OPTIONS
22 =over 5
24 =item B<-D,--debug>
26 Set debug mode. There are two levels - in level one some debug
27 info is written, in level two the command C<set -x> is run, which
28 echoes every command in the ly2dvi script.
30 =item B<-O,--orientation=>
32 Set orientation - portrait is the default.
33 (C<-O> landscape produces C<\usepackage[landscape]{article}>)
35 =item B<-o,--output=>
37 Set output directory.
39 =item B<-h,--help>
41 Print help.
43 =item B<-k,--keep>
45 Keep the LaTeX file after the run.
47 =item B<-l,--language>
49 Specify LaTeX language.
50 (C<-l norsk> produces C<\usepackage[norsk]{babel}>).
52 =item B<-p,--papersize=>
54 Specify papersize.
55 (C<-p a4paper> produces C<\usepackage[a4paper]{article}>)
57 =item B<-s,--separate>
59 Normally all output files are included into one LaTeX file.
60 With this switch all files are run separately, to produce one
61 DVI file for each.
63 =back
65 =head1 FEATURES
67 ly2dvi responds to several parameters specified in the mudela
68 file. They are overridden by corresponding command line options.
70 =over 5
72 =item B<papersize>
74 Specify papersize.
76 =item B<orientation>
78 Set orientation.
80 =item B<language>
82 Specify LaTeX language
84 =item B<paperlinewidth>
86 Specify the width (pt, mm or cm) of the printed lines.
88 =back
90 =head1 ENVIRONMENT
92 =over 5
94 =item B<LILYINCLUDE>
96 Additional directories for input files.
98 =item B<TMP>
100 Temporary directory name. Default is /tmp
102 =back
104 =head1 FILES
106 F<titledefs.tex> is inspected for definitions used to extract
107 additional text definitions from the mudela file. In the current
108 version the following are defined:
110 =over 5
112 =item B<title>
114 The title of the music. Centered on top of the first page.
116 =item B<subtitle>
118 Subtitle, centered below the title.
120 =item B<composer>
122 Name of the composer, rightflushed below the subtitle.
124 =item B<arranger>
126 Name of the arranger, rightflushed below the composer.
128 =item B<instrument>
130 Name of the instrument, leftflushed at same level as the composer.
132 =back
134 F</usr/local/share/lilyrc /etc/lilyrc $HOME/.lilyrc ./.lilyrc>
135 are files to set up default running conditions/variables, Bourne shell
136 syntax. All files are parsed, in the shown sequence. The variables are
137 overridden by variables in the mudela file, and by command line options.
138 In the current version the following are allowed:
140 =over 5
142 =item B<ORIENTATION>
144 Set orientation - portrait is the default.
146 =item B<LANGUAGE>
148 Specify LaTeX language.
150 =item B<OUTPUTDIR>
152 Set output directory.
154 =item B<PAPERSIZE>
156 Specify papersize.
158 =item B<LILYINCLUDE>
160 Additional directories for input files.
162 =item B<TMP>
164 Temporary directory name.
166 =back
168 =head1 SEE ALSO
170 lilypond(1), tex(1), latex(1)
172 =head1 AUTHOR
174 Jan Arne Fagertun <Jan.A.Fagertun@energy.sintef.no>,
175 http://www.termo.unit.no/mtf/people/janaf/
177 =head1 BUGS
179 If you have found a bug, you should send a bugreport.
181 =over 4
183 =item *
184 Send a copy of the input which causes the error.
186 =item *
187 Send a description of the platform you use.
189 =item *
190 Send a description of the LilyPond and ly2dvi version you use.
192 =item *
193 Send a description of the bug itself.
195 =item *
196 Send it to bug-gnu-music@gnu.org (you don't have to subscribe
197 to this mailinglist).
199 =back
201 =head1 REMARKS
203 Only one papersize is supported, A4. Information on other sizes
204 (LaTeX names, horizontal and vertical sizes) should be mailed to
205 the author or to the mailing list.