|
From: | Mats Bengtsson |
Subject: | Re: lilypond-book "ignores" system-count? |
Date: | Tue, 20 Mar 2007 11:07:49 +0100 |
User-agent: | Thunderbird 1.5.0.10 (X11/20070221) |
Now I realize what you really ask about. You are certainly right that lilypond-book does not accept options such as \begin[system-count=10]{lilypond} ... \end{lilypond} or \lilypondfile[system-count=10]{...} However, you can easily specify the system-count inside your own LilyPond code, for example: \begin{lilypond} \paper{system-count = 8} \score{ \repeat unfold 100 c' } \end{lilypond} When first answering your question, I thought that this is what you tried and what didn't work (but it clearly does, now that I try it).If you want to use \lilypondfile and don't want to specify system-count within
that file, then you could use a trick like \begin{lilypond} \paper{ system-count = 10 } \include{myfile.ly} \end{lilypond} The only main disadvantage of this solution is that lilypond-book will not automatically discover if you have made any changes to the .ly file, so you have to manually clean the generated files to make sure that lilypond-book processes the .ly file again and doesn't use an old version. /Mats Dmytro O. Redchuk wrote:
Hmm, i did not receive my own post... Anyway, since i need to have lilypond-book working with system-count parameter, i modified a lilypond-book script (diff see below). So, a question to developers. In the same way it's possible, of course, add another parameters, which could be present in "paper" section. But which is the right way to do this? ------------------------------------------------------- --- lilypond-book.original 2007-03-19 17:03:47 +0200 +++ lilypond-book 2007-03-19 17:53:29 +0200 @@ -234,6 +234,7 @@ FONTLOAD = 'fontload' FILENAME = 'filename' ALT = 'alt' +SYSTEM_COUNT = 'system-count'# NOTIME has no opposite so it isn't part of this dictionary.@@ -518,7 +519,8 @@ VERBATIM, FONTLOAD, FILENAME, - ALT + ALT, + SYSTEM_COUNT ]ly_options = {@@ -1064,6 +1066,10 @@ elif relative > 0: relative_quotes += "'" * relative+ # UURGS...+ if SYSTEM_COUNT in override.keys(): + compose_dict[PAPER].append ('system-count = #%(system-count)s') + paper_string = string.join (compose_dict[PAPER], '\n ') % override layout_string = string.join (compose_dict[LAYOUT], ------------------------------------------------------- On Mon, Mar 19, 2007 at 03:18:26PM +0200, Dmytro O. Redchuk wrote:Hello, I couldn't create pdf page with lilypond-book with system-count as requested in lilypond source. So, when i set system-count = #12 and make it with lilypond -- all is well, but processing with lilypond-book gives me (significantly,) less system-count. Can anyone help me, please?
-- ============================================= 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 =============================================
[Prev in Thread] | Current Thread | [Next in Thread] |