lilypond-user
[Top][All Lists]
Advanced

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

Re: Multi column page setup


From: Thomas Morley
Subject: Re: Multi column page setup
Date: Fri, 5 Apr 2013 00:26:12 +0200

2013/4/4 David Kastrup <address@hidden>:

>
> Regarding the "you can't have LilyPond figure out page breaking" angle:
> maybe <URL:http://code.google.com/p/lilypond/issues/detail?id=1334> is a
> suitable building block for that.
>
> --
> David Kastrup

\markup \score { ... }  now _can_ handle pageBreak, though, if you try
(with appropriate settings of line-width)
\markup \line { \score { ... } \score { ... }  }
it fails again.
Found no way around.


2013/4/4 David Kastrup <address@hidden>:
> Eluze <address@hidden> writes:
>
>> Orm Finnendahl-3 wrote
>>> Hi Hanns Holger,
>>>
>>>  below is a minimal example (with a layout block for each column for
>>> illustration how to specify different layout settings for each
>>> column). You can extend it to as many columns you want. There is a
>>> major drawback though: You can't have lilypond figure out page
>>> breaking as the music in any column can't be broken into many
>>> pages. Working this way is more like explicitely stating which music
>>> goes on which page by using one \book block per page.
>>
>> that's fabulous!
>> don't know why I always thought you can only produce one line/system with
>> \markup \score …
>
> 2.13.7:
>
> commit dff80dee029901d55101cb7991ee53f03ab06efa
> Author: Neil Puttock <address@hidden>
> Date:   Sun Nov 1 23:22:25 2009 +0000
>
>     Typeset all systems when inlining a score using \markup \score.
>
>     Use baseline-skip to set space between systems.

If you try Orm's example with \transpose c c'' for the second \score
you'll notice that the StaffSymbols aren't aligned anymore, same if I
try the "2.17.15"-commands.
baseline-skip doesn't help, afaics.
It would be great if I could set system-system-spacing. Though I found
no way to do so within a \score in \markup.

Below my own approach _abusing_ \score ;)

\version "2.17.15"

music =
  \new Staff
    \relative c'' {
      c,,,1
      \noBreak

      \time 3/4
      \key d\major
      cis''2.

      \repeat unfold 6 {
        \time 2/4
        \key bes\minor
        dis8 e f fis
        \break

        \time 4/4
        \key d\major
        cis1
        \break

        \time 3/4
        \key a\major
        a4. cis8 e4
        \break
      }
      \time 3/4
      \key a\major
      a4. cis8 e4
  }

myLayout =
  \layout {
    line-width = 40
    indent = 0
    ragged-last = ##f
    %ragged-right = ##f
    \context {
      \Score
      \override BarNumber #'stencil = ##f
      fontSize = -3
    }
    \context {
      \Staff
      \override KeySignature #'break-visibility = ##(#f #t #t)
      explicitKeySignatureVisibility = ##(#f #t #t)
      \override TimeSignature #'break-visibility = ##(#f #t #t)
      \override KeyCancellation #'break-visibility = ##(#f #f #f)
      \override StaffSymbol #'staff-space = #(magstep -3)
    }
  }

\markup {
  \fill-line {
    \override #'(baseline-skip . 7)
    \column {
      \override-lines #'(word-space . 3)
      \wordwrap-lines
        \score {
          \music
          \layout { \myLayout }
        }
    }
  }
}

Cheers,
  Harm



reply via email to

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