lilypond-user
[Top][All Lists]
Advanced

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

Re: Centered movement names


From: Reinhold Kainhofer
Subject: Re: Centered movement names
Date: Wed, 8 Aug 2007 10:42:04 +0200
User-agent: KMail/1.9.6

Am Dienstag, 7. August 2007 schrieb Paul Scott:
> |2.11.27 or so.
>
> scoreTitleMarkup |(10.2.2 Custom titles) sounds like a great idea but
> not as it seems to be implemented.  Movement names are normally
> different for different movements so putting it in the paper block
> doesn't seem to make sense.
>
> Is there a current way to change something like the current instrument
> header field for each movement?

The default implementation of scoreTitleMarkup does not support this, but of 
course you can redefine the scoreTitleMarkup (see 
http://lsr.dsi.unimi.it/LSR/Item?id=306 ). 

For example, a modified definition of the above snippet could be:

\header {
  title = "Different instruments for different scores"
}
\paper {
  scoreTitleMarkup = \markup { \column {
   \on-the-fly #print-all-headers { \bookTitleMarkup \hspace #1 }
    \fill-line {
      \fontsize #3 \bold \fromproperty #'header:piece
      \fromproperty #'header:opus
    }
    \fill-line {
      \fromproperty #'header:instrument
    }
  }}
}

\score { 
  \context Staff << { c'1 | R1 } >>
  \header{ piece="Piece 1" instrument="Instrument 1"}
}

\score { 
  \context Staff << { c'1 | R1 } >>
  \header{ piece="Piece 2"
           instrument="Instrument 2" }
}

The resulting PDF file from this snippet is attached.

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/

Attachment: test.ly
Description: Text document

Attachment: test.pdf
Description: Adobe PDF document


reply via email to

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