Next: Filename extensions, Previous: Music fragment options, Up: LilyPond-book
lilypond-book produces a file with one of the following extensions: .tex, .texi, .html or .xml, depending on the output format. All of .tex, .texi and .xml files need further processing.
lilypond-book can also create a PSFONTS file, which is required by dvips to produce Postscript and PDF files.
To produce PDF output from the lilypond-book file (here called
yourfile.lytex
) via LaTeX, you should do
lilypond-book --psfonts yourfile.lytex latex yourfile.tex dvips -o -h yourfile.psfonts -Ppdf yourfile.dvi ps2pdf yourfile.ps
The .dvi file created by this process will not contain noteheads. This is normal; if you follow the instructions, they will be included in the .ps and .pdf files.
To produce a PDF file through PDF(La)TeX, use
lilypond-book --pdf yourfile.pdftex pdflatex yourfile.tex
To produce a Texinfo document (in any output format), follow the normal procedures for Texinfo (this is, either call texi2dvi or makeinfo, depending on the output format you want to create). See the documentation of Texinfo for further details.
lilypond-book accepts the following command line options:
-f
format--format=
formathtml
, latex
, texi
(the default) or docbook
. If this option is missing,
lilypond-book tries to detect the format automatically.
The texi
document type produces a Texinfo file with music
fragments in the DVI output only. For getting images in the HTML
version, the format texi-html
must be used instead.
[Note: Currently, texi
is the same as texi-html
.]
-F
filter--filter=
filterlilypond-book
will
not –filter and –process at the same time.
Example:
lilypond-book --filter='convert-ly --from=2.0.0 -' my-book.tely
-h
--help
-I
dir--include=
dir-o
dir--output=
dirlilypond-book --output=out yourfile.lytex cd out ...
--padding=
amountThe width of a tightly clipped systems can vary, due to notation
elements that stick into the left margin, such as bar numbers and
instrument names. This option will shorten each line and move each
line to the right by the same amount.
-P
process--process=
commandlilypond
. lilypond-book
will not –filter and –process
at the same time.
--psfonts
-V
--verbose
-v
--version
The Texinfo command @pagesizes
is not interpreted. Similarly,
LaTeX commands that change margins and line widths after the preamble
are ignored.
Only the first \score
of a LilyPond block is processed.
Next: Filename extensions, Previous: Music fragment options, Up: LilyPond-book
This page is for LilyPond-2.10.33 (stable-branch).