Bernardo Barros wrote:
Interesting thing..

I made the image with PhotoLine (Mac) and i got the error. Now I opened with InkScape and saved again and now the image appears in the pdf...
You are not the first one to report problems with the \epsfile function, which seems to work well for certain kind of EPS files but not for others. I seem to remember that I briefly looked into the implementation a number of years back and that it was done exactly according to the recommendations I could find on the internet. If anybody is an expert in Postscript, here's something to look into.

   /Mats



On 16 April 2010 01:10, <[email protected] <mailto:[email protected]>> wrote:


    Have you tried with another eps file? I tried your exact code,
    just substituting another eps file I had on hand, and it builds
    without error:

    \version "2.13.17"

    { c''4-\markup { \epsfile #X #10 #"Bach_BWV1003_andante.eps" } }

    Nick


    On Fri 16/04/10 8:24 AM , Bernardo Barros
    [email protected] <mailto:[email protected]> sent:

        I got this other kind of error for this code ("Wrong type
        argument in position 1: #f")

{ c''4-\markup { \epsfile #X #10 #"seta_normal.eps" } }
        ERROR:

        Processing `eps.ly <http://eps.ly>'
        Parsing...
        eps.ly:0 <http://eps.ly:0>: warning: no \version statement
        found, please add
        Preprocessing graphical
        
objects.../Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/stencil.scm:377:26:
        In procedure list-ref in expression (list-ref bbox 2):
        
/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/stencil.scm:377:26:
        Wrong type argument in position 1: #f

        Error generating PDF file.
        On 15 April 2010 13:00, Mats Bengtsson
        <[email protected]> wrote:
        >
        > Quoting Graham Percival <[email protected]>:
        >
        >> (sorry, forgot to send to the list)
        >>
        >> Yes, the eps file must be in the same directory as the ly file.
        >
        > Or, perhaps, it's rather that it has to be in the working
        directory where you run the lilypond command. Don't know how
        it works if you for example double-click on a file in Windows
        to process it.
        >
        >  /Mats
        >
        >> Double-check that you have the right filename, and if you're on
        >> certain operating systems, double-check that you have the
        correct
        >> capitalization.  (in particular, watch out for eps vs. EPS)
        >>
        >> Cheers,
        >> - Graham
        >>
        >>
        >> On Thu, Apr 15, 2010 at 2:25 PM, Bernardo Barros
        >> <[email protected]> wrote:
        >>>
        >>> Hi there,
        >>>
        >>> I'm trying to use the method \epsfile to make some of the
        symbols I need to
        >>> use.
        >>> Should I put the files in the same folder of the .ly file,
        shouldn't I?
        >>> I'm having this error:
        >>>
        >>> Interpreting music...
        >>> Preprocessing graphical objects...
        >>> error: cannot find file: `circular-cheio.eps' (load path:
        >>>
        
`/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/type1/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ps:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly:')
        >>>
        >>>
        >>> HERE IS THE INPUT FILE
        >>> \version "2.12.3"
        >>> \paper {
        >>>   #(define dump-extents #t)
        >>>
        >>>   indent = 0\mm
        >>>   line-width = 160\mm
        >>>   force-assignment = #""
        >>>   line-width = #(- line-width (* mm  3.000000))
        >>> }
        >>> \layout {
        >>>
        >>> }
        >>> { c'4-\markup { \epsfile #X #10 #"circular-cheio.eps" } }
        >>>
        >>> Processing `teste.ly <http://teste.ly>'
        >>> Parsing...
        >>> teste.ly:0 <http://teste.ly:0>: warning: no \version
        statement found, please add
        >>>
        >>> \version "2.12.3"
        >>>
        >>>
        >>> _______________________________________________
        >>> lilypond-user mailing list
        >>> [email protected]
        >>> http://lists.gnu.org/mailman/listinfo/lilypond-user
        >>>
        >>>
        >>
        >>
        >> _______________________________________________
        >> lilypond-user mailing list
        >> [email protected]
        >> http://lists.gnu.org/mailman/listinfo/lilypond-user
        >>
        >
        >
        >


    _______________________________________________
    lilypond-user mailing list
    [email protected] <mailto:[email protected]>
    http://lists.gnu.org/mailman/listinfo/lilypond-user


------------------------------------------------------------------------

_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: [email protected]
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to