.TH "LilyPond" "1" "1998" "The LilyPond package" "Ly2dvi32" .PP .PP .SH "NAME" Ly2dvi32 \- Python utility to convert mudela to DVI .PP .SH "DESCRIPTION" ly2dvi is a Python script which creates input file for LaTeX, based on information from the output files from LilyPond\&. The script handles multiple files\&. If a mudela file name is specified LilyPond is run to make an output (TeX) file\&. .PP One or more LaTeX files are created, based on information found in the output (TeX) files, and latex is finally run to create one or more DVI files\&. .PP The majority of this utility came from a bourne script written by Jan Arne Fagertun name \fBly2dvi\fP\&. .PP .SH "SYNOPSIS" .PP ly2dvi32 [options] inputfile[\&.ly] [\&.\&.\&.\&.] .PP .SH "OPTIONS" .PP .IP "-D,--debug" Set debug mode\&. There are two levels - in level one some debug info is written, in level two the command \fBset -x\fP is run, which echoes every command in the ly2dvi script\&. .IP "-F,--headers=" Name of additional LaTeX headers file\&. This is included in the tex file at the end of the headers, last line before \f(CW\ebegin{document}\fP .IP "-H,--Heigth=" Set paper heigth (points)\&. Used together with width and LaTeX name of papersize in case of papersize unknown to ly2dvi\&. .IP "-F,--headers=" Name of additional LaTeX headers file\&. This is included in the tex file at the end of the headers, last line before \f(CW\ebegin{document}\fP .IP "-K,--keeplilypond" Keep LilyPond output after the run\&. .IP "-L,--landscape" Set landscape orientation - portrait is the default\&. (\fB-L\fP produces \f(CW\eusepackage[landscape]{article}\fP) .IP "-N,--nonumber" Switch off page numbering\&. .IP "-O,--orientation=" Set orientation landscape - obsolete, use \fB-L\fP instead\&. .IP "-P,--postscript" In addition to the DVI file, also Generate a postsript file\&. .IP "-W,--Width=" Set paper width (points)\&. Used together with heigth and LaTeX name of papersize in case of papersize unknown to ly2dvi\&. .IP "-d,--dependencies" Tell lilypond to make dependencies file\&. .IP "-h,--help" Print help\&. .IP "-k,--keeply2dvi" Keep the LaTeX file after the run\&. .IP "-l,--language=" Specify LaTeX language\&. (\fB-l norsk\fP produces \f(CW\eusepackage[norsk]{babel}\fP)\&. .IP "-o,--output=" Set output directory\&. .IP "-p,--papersize=" Specify papersize\&. (\fB-p a4\fP produces \f(CW\eusepackage[a4paper]{article}\fP) .IP "-s,--separate" Normally all output files are included into one LaTeX file\&. With this switch all files are run separately, to produce one DVI file for each\&. .PP .SH "Features" .PP ly2dvi responds to several parameters specified in the mudela file\&. They are overridden by corresponding command line options\&. .PP .IP "language="";" Specify LaTeX language .IP "latexheaders="";" Specify additional LaTeX headers file .IP "orientation="";" Set orientation\&. .IP "paperlinewidth="";" Specify the width (pt, mm or cm) of the printed lines\&. .IP "papersize="";" Specify name of papersize\&. .PP .SH "Environment" .PP .IP "LILYPONDPREFIX" Sets the root directory of the LilyPond installation .IP "LILYINCLUDE" Additional directories for input files\&. .IP "TMP" Temporary directory name\&. Default is /tmp .PP .SH "Files" .PP \fBtitledefs\&.tex\fP is inspected for definitions used to extract additional text definitions from the mudela file\&. In the current version the following are defined: .PP .IP "title" The title of the music\&. Centered on top of the first page\&. .IP "subtitle" Subtitle, centered below the title\&. .IP "poet" Name of the poet, leftflushed below the below subtitle\&. .IP "composer" Name of the composer, rightflushed below the subtitle\&. .IP "metre" Meter string, leftflushed below the below poet\&. .IP "opus" Name of the opus, rightflushed below the below composer\&. .IP "arranger" Name of the arranger, rightflushed below the opus\&. .IP "instrument" Name of the instrument, centered below the arranger .IP "piece" Name of the piece, leftflushed below the instrument .PP \fB$LILYPONDPREFIX/share/\&.lilyrc $HOME/\&.lilyrc \&./\&.lilyrc\fP are files to set up default running conditions\&. On Windows OS initialization files are named \fB_lilyrc\fP\&. The file syntax is as follows: .PP .DS VARIABLE-NAME=VALUE .DE .PP Where \fBVARIABLE-NAME\fP is the name of the variable documented below and \fBVALUE\fP is either a string, a 1, or a 0\&. All files are parsed, in the shown sequence\&. In the current version the following are allowed: .PP .IP "DEBUG=value" This turns off (default) or on the debug capabilities\&. Possible values are 0 (off) and 1 (on)\&. .IP "DEPENDENCIES=value" This turns off (default) or on the ability to generate a Makefile dependency list\&. Possible values are 0 (off) and 1 (on)\&. .IP "KEEPLILYPOND=value" This turns off (default) or on the ability to keep the log file associated with the LilyPond job\&. Possible values are 0 (off) and 1 (on)\&. .IP "KEEPLY2DVI=value" This turns off (default) or on the ability to keep the temporary files that are generated by the ly2dvi job\&. Possible values are 0 (off) and 1 (on) .IP "LANGUAGE=value" Specify LaTeX language\&. Possible value is a valid LaTeX language\&. .IP "LATEXHF=value" Specify additional LaTeX headers file\&. Possible value is a file specification\&. .IP "LILYINCLUDE=value" Additional directories for input files\&. Possible value is a delimited directory path list\&. .IP "LILYPONDPREFIX=value" This defines the LilyPond root directory\&. Possible value is a valid directory specification to the LilyPond distribution location\&. .IP "NONUMBER=value" This turns off (default) or on the page numbering capability\&. Possible values are 0 (page numbering enabled) and 1 (page numbering disabled)\&. .IP "ORIENTATION=value" This sets the image orientation\&. Possible values are portrait (default) and landscape\&. .IP "OUTPUTDIR=value" This defines the directory where the resultant files will be generated\&. Possible value is a valid directory specification\&. Default is the current working directory\&. .IP "PAPERSIZE=value" This defines the papersize the image will be sized to fit\&. Possible values are a0, a1, a2, a3, a4 (default), a5, a6, a7, a8, a9, a10, b0, b1, b2, b3, b4, b5, archA, archB, archC, archD, archE, flsa, flse, halfletter, ledger, legal, letter, or note\&. .IP "PHEIGHT=value" Specify paperheight (points - an inch is 72\&.27, a cm is 28\&.453 points)\&. .IP "POSTSCRIPT=value" This turns off (default) or on the capability of additionally generating a postscript file\&. Possible values are 0 (off) and 1 (on)\&. .IP "PWIDTH=value" Specify paperwidth (points - an inch is 72\&.27, a cm is 28\&.453 points)\&. .IP "SEPARATE=value" This turns off (default) or on the capability of generating multiple dvi and postscript files from multiple source files\&. The default is to generate a concatenation of the source files\&. Possible values are 0 (single file) and 1 (separate files)\&. .IP "TMP=value" This defines the emporary directory\&. Actually this is not used at the present\&. Possible value is a valid directory specification that is writable to the user\&. .PP .SH "Initialization Sequence" The initialization process reads inputs for several sources\&. Below is a list of priorities for lowest to hightest proirity\&. .PP .IP o Program\'s defaults .IP o Values found in LilyPond output file .IP o Environment variables .IP o $LILYPONDPREFIX/share/lilypond/\&.lilyrc .IP o $HOME/\&.lilyrc .IP o \&./\&.lilyrc .IP o command line options .PP Note that this differs slightly from the original bourne shell version\&. .PP .SH "See Also" .PP lilypond(1), tex(1), latex(1) .PP .SH "Bugs" .PP If you have found a bug, you should send a bugreport\&. .PP .IP o Send a copy of the input which causes the error\&. .IP o Send a description of the platform you use\&. .IP o Send a description of the LilyPond and ly2dvi version you use\&. .IP o Send a description of the bug itself\&. .IP o Send it to bug-gnu-music@gnu\&.org (you don\'t have to subscribe to this mailinglist)\&. .PP .SH "Remarks" .PP Many papersizes are now supported\&. Information on other sizes (LaTeX names, horizontal and vertical sizes) should be mailed to the author or to the mailing list\&. .PP Supported papersizes are: .PP a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, archA, archB, archC, archD, archE, b0, b1, b2, b3, b4, b5, flsa, flse, halfletter, ledger, legal, letter, note .PP .SH "AUTHOR" Python Version author: Jeffrey B\&. Reed , http://home\&.austin\&.rr\&.com/jbr/jeff/lilypond/ .PP Original bourne shell version author: Jan Arne Fagertun , http://www\&.termo\&.unit\&.no/mtf/people/janaf/ .PP