lilypond-user
[Top][All Lists]
Advanced

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

Single EPS file trimmed output


From: Mauro
Subject: Single EPS file trimmed output
Date: Thu, 29 Dec 2022 11:14:03 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1

Dear all,

I have a large repository of scores which are currently being built as eps documents using the following command:

lilypond -E -dno-gs-load-fonts -dinclude-eps-fonts file.ly

This command, up to version 2.22, generates a single eps file (file.eps) trimmed down to just the size of the score.

I recently upgraded from lilypond 2.22.2 to 2.24.0 and the same command now produces a full-page output. After searching the lists and the documentation, I understand that I have to set 'use-paper-size-for-page' to false in order to get a trimmed down output, but I do not understand how to get a single eps file.

I have tried different combinations of command line args. I am only able to generate two output files (file.eps and file-1.eps), both of them identical and trimmed down, with the following command:

lilypond -E -dno-gs-load-fonts -dinclude-eps-fonts -dno-use-paper-size-for-page demo.ly

Is this how it is supposed to work? Why is lilypond generating a second identical file with -1 suffix?

I could easily remove the second file (file-1.eps) in my build chain, but I wonder if I am missing something.

Thanks,

Mauro Levra


PS: Here is a tiny example:

\version "2.22.0"
% Set a custom size with the width I am
% interested in and hypothetical maximum height.
#(set! paper-alist (cons '("my size" . (cons (* 100 mm) (* 300 mm))) paper-alist))
\header { tagline = ##f }
\paper {
  #(set-paper-size "my size")
  #(define bottom-margin (* 0 cm))
  #(define left-margin (* 0 mm))
  #(define after-title-space (* 0 cm))
  #(define right-margin (* 0 cm))
  #(define top-margin (* 0 cm))
  #(define line-width (* 100 mm ))
}
\score{
  \relative c' { c4 d e2 | f4 g e2 | }
  \layout {
    indent = #0
    ragged-right = ##f
    ragged-last = ##f
  }
}



reply via email to

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