Am So., 4. Jan. 2026 um 23:18 Uhr schrieb Kale Good <[email protected]>:
>
> Hello All, I'm on 2.24.4. I'm trying to run the following from the manual, 
> substituting a local EPS file.
>
> c'1^\markup {
>   \combine
>     \epsfile #X #10 "./context-example.eps"
>     \with-dimensions #'(0 . 6) #'(0 . 10)
>     \postscript "
>       -2 3 translate
>       2.7 2 scale
>       newpath
>       2 -1 moveto
>       4 -2 4 1 1 arct
>       4 2 3 3 1 arct
>       0 4 0 3 1 arct
>       0 0 1 -1 1 arct
>       closepath
>       stroke"
>   }
> c'
>
>
> I'm getting the following error:
>
> /app/share/lilypond/2.24.4/ly/init.ly:65:2: error: Guile signaled an error 
> for the expression beginning here
>
> #
>
> (let ((book-handler (if (defined? 'default-toplevel-book-handler)
>
> In procedure list-ref: Wrong type argument in position 1: #f
>
> Please advise.
>
> Kale Good

You need to exactly specify the path to the .eps-file.
The "./" part in "./context-example.eps" is only for building the NR.
In my case:
"/home/harm/lilypond-git/Documentation/pictures/context-example.eps"
Though, I would have expected a different error, like:
fatal error: cannot find file './context-example.eps' (load path: ...)
If the error does not vanish with correct path, something else might
cause the problem.

Furthermore, the image in the NR is bad, see
https://lilypond.org/doc/v2.25/Documentation/notation/formatting-text#graphic-notation-inside-markup
At least since 2.14.2 (and nobody noticed), in 2.12.3 it is rendered
as attached.
After adding some debugging code I found the dimensions of the eps-file changed:
("2.12.3" (x-ext -1.73633440514469 . 8.2636655948553) (y-ext
2.15434083601286 . 7.94212218649518))
("2.14.2" (x-ext 0.0 . 10.0) (y-ext 0.0 . 5.78778135048231))

A quick'n dirty fix would apply \translate to the eps-file:
  ...
    \translate #'(-1.73633440514469 . 2.15434083601286)
    \epsfile ...
  ...

Maybe context-example.eps should be recreated...

Cheers,
  Harm

Reply via email to