lilypond-user
[Top][All Lists]
Advanced

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

Re: lilypond-book --pdf doesn't work for me


From: Mats Bengtsson
Subject: Re: lilypond-book --pdf doesn't work for me
Date: Thu, 08 Feb 2007 15:09:36 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061206)

lilypond-book --pdf will certainly generate .pdf versions of all the
files that are included with \includegraphics. My guess is that you didn't
clean your old lily-*.eps files, which means that lilypond-book is "clever"
enough to not rerun lilypond on the scores but stupid enough to not
realize that this means that the .pdf versions of all these files don't exist.

So, the simple solution should be to just clear your out/ directory.

In general, the trick to make a latex file that is compliant with both
ordinary latex and pdflatex is to avoid any specific options like [dvips]
in the input and also to exclude the extension of any graphics files to
include with \includegraphics. In that way, the LaTeX packages will
figure out the correct options automatically and \includegraphics will
use .eps files when you run ordinary latex and .pdf or .png or .jpg
files when you run pdflatex.

  /Mats

Laura Conrad wrote:
This is a followup to my own post, after trying some more things.

"Laura" == Laura Conrad <address@hidden> writes:

"Mats" == Mats Bengtsson <address@hidden> writes:
    Mats> I recommend to use the pdflatex mode of lilypond-book:
    Mats> lilypond-book --pdf --output=out 1-test1.lytex
    Mats> cd out
    Mats> pdflatex 1-test1

    Laura> I'm having trouble making this work.  I'm on an Ubuntu edgy system
    Laura> running lilypond 2.10.  I can run the commands, but the PDF file has
    Laura> only a page number, not any music or headers or anything.  I get a 
lot
    Laura> of error messages of the form:

    Laura> Non-PDF special ignored!

Googling on this error message, I find
<http://www.tex.ac.uk/cgi-bin/texfaq2html?label=nonpdfsp> which
suggests that I should replace the line:

\usepackage[dvips]{graphicx}

with:

\usepackage{graphicx}

This is in fact what I've done when I've used pdflatex with graphicx
in non-lilypond contexts.
But when I use this with lilypond-book pdflatex complains:


    pdflatex> loading : Context Support Macros / PDF (2004.03.26)
    pdflatex> ) (./lily-699cf55d03-systems.tex

    pdflatex> ! LaTeX Error: File `lily-699cf55d03-1' not found.

    pdflatex> See the LaTeX manual or LaTeX Companion for explanation.
    pdflatex> Type  H <return>  for immediate help.
pdflatex> ... pdflatex> l.1 \includegraphics{lily-699cf55d03-1}
I have the same problem when I say:

\usepackage[pdftex]{graphicx}

address@hidden:~/src/lilypond/test$ ls out/lily-699cf55d03-1*
out/lily-699cf55d03-10.eps  out/lily-699cf55d03-16.eps
out/lily-699cf55d03-11.eps  out/lily-699cf55d03-17.eps
out/lily-699cf55d03-12.eps  out/lily-699cf55d03-18.eps
out/lily-699cf55d03-13.eps  out/lily-699cf55d03-19.eps
out/lily-699cf55d03-14.eps  out/lily-699cf55d03-1.eps
out/lily-699cf55d03-15.eps
address@hidden:~/src/lilypond/test$
So it looks like my version of pdflatex isn't finding .eps files with
no extension.

But when I add the extension, pdflatex says:

! LaTeX Error: Unknown graphics extension: .eps.

My impression is that pdflatex expects graphics as a png, jpg, or pdf,
not as an eps file.

Is anyone running Linux using the --pdf option to lilypond-book, and
if so can you send me a sample .lytex file?

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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