lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lilypond book makefile


From: Laura Conrad
Subject: Re: lilypond book makefile
Date: Thu, 05 Jul 2007 11:45:27 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

>>>>> "Jesse" == Jesse Engle <address@hidden> writes:

    Jesse> I've recently installed TeTeX on my Mac, and I'm excited to
    Jesse> begin using the TeX typesetting software in conjunction
    Jesse> with Lilypond. My problem is that, because `lilypond-book`,
    Jesse> `latex` and `dvips` are used to produce the output, I'm not
    Jesse> sure how to set up the Makefile. Do any of you have a
    Jesse> makefile for this type of thing laying around?

Here's the most straightforward Makefile:


%.pdf:  %.lytex *.ly
         lilypond-book --pdf --output=$* *$.lytex
         cd $*;pdflatex $*;cp $*.pdf ..

This uses pdflatex instead of latex and dvips and ps2pdf, and runs a
lot faster.  

Here's the equivalent if there's some reason you actually want to run
dvips, etc.:

%.pdf:  %.lytex *.ly
         lilypond-book --output=out --psfonts $*.lytex
         cd out;latex $*.tex;dvips $(DVIPSOPTS) -h $*.psfonts -o ../$*.ps $*.dvi
         ps2pdf $*.ps $*.pdf

As a couple of people have mentioned, most of us using lilypond-book
for serious work do something a bit more complicated than that.  The
one I actually use has scripts to workaround a couple of bugs in
lilypond-book:

        Changing included files doesn't trigger rebuilding the
        snippets based on the including files.

        For two-sided printing, the alignment on the page isn't
        correct.

And of course, if I'm doing something with a bibliography, I have to
make it more complicated yet.

If you're interested in knowing about how any of that modifies the
Makefile, let me know.

-- 
Laura (mailto:address@hidden , http://www.laymusic.org/ )
(617) 661-8097  fax: (501) 641-5011
233 Broadway, Cambridge, MA 02139




reply via email to

[Prev in Thread] Current Thread [Next in Thread]