lilypond-user
[Top][All Lists]
Advanced

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

RE: long text in "composer" / invisible TimeSignature


From: Nick Payne
Subject: RE: long text in "composer" / invisible TimeSignature
Date: Mon, 9 Feb 2009 22:11:50 +1100

Why not use \bookpart and have a separate title page with all that
information. You can format that exactly as you wish without using the
predefined fields:

%===========================================================================
====
\version "2.12.2"

date = #(strftime "%d/%m/%Y" (localtime (current-time)))
copywrite = #(strftime "Copyright C %Y" (localtime (current-time)))

#(define-markup-command (bookpart-page-number layout props) ()
        (let ((first-page-number (ly:output-def-lookup layout
'first-page-number))
                (page-number (chain-assoc-get 'page:page-number props 0)))
                (interpret-markup layout props (format "~a" (1+ (-
page-number first-page-number))))))

\paper {
        #(set-paper-size "a4")
        top-margin = 1.5\cm
        bottom-margin = 1.5\cm
        line-width = 18\cm
%       ragged-bottom = ##f
%       ragged-last-bottom = ##f
        oddHeaderMarkup = \markup \fill-line {
                \on-the-fly #not-first-page \fromproperty
#'header:instrument
                \on-the-fly #print-page-number-check-first
\bookpart-page-number
        }
    oddFooterMarkup = \markup \fill-line {
                \on-the-fly #part-last-page \fromproperty
#'header:parttagline
        }
        evenHeaderMarkup = \markup \fill-line {
                \on-the-fly #print-page-number-check-first
\bookpart-page-number
                \on-the-fly #not-first-page \fromproperty
#'header:instrument
        }
    evenFooterMarkup = \markup \fill-line {
                \on-the-fly #part-last-page \fromproperty
#'header:parttagline
        }
}

\header {
        title = \markup {
                \lower #40 \column \center-align { 
                \fontsize #4 \bold "Title line"
                \lower #2 \fontsize #3 "Poet line"
                \lower #4 \fontsize #2 "Instrument line"
                \lower #5 \fontsize #-3
"composer_line_____20________30________40________50________60________70_____
___80"
                \lower #8 \fontsize #2 "Meter line"
                \lower #8 \fontsize #2 "Arranger line"
                }
        }
        tagline = ##f
}

\markup \null

\bookpart {
        \header {
                title = \markup "Title goes here"
                parttagline = \markup {
                        \center-align
                        \fontsize #-3.5
                        {
                                \center-align
                                {
                                        \fill-line {  "" "Typeset by me" ""
\date "" \copywrite "" }
                                }
                        }
                }
        }
        \score {
                {s1*50}
                \layout {
                        \context {
                        }
                }
        }
}
%===========================================================================
====

Nick

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Robin Bannister
> Sent: Monday, 9 February 2009 21:11
> To: Zbyněk Burget; Lilypond
> Subject: Re: long text in "composer" / invisible TimeSignature
> 
> Zbyněk Burget wrote:
> > Splitting it onto two lines is unavailing. Therefore i want way to
> > expanding width of this line.
> 
> The default layout puts poet, instrument and composer all on one line.
> This is not compatible with the length of your composer text.
> Even if instrument is unused, its (centred) layout is still active and
> this obstructs leftward expansion of the composer text.
> 
> If you want to stay close to what the default offers, you could move
> the composer field down onto its own line:
> i.e.   insert    "" } \fill-line { ""   into bookTitleMarkup
> using the technique suggested in NR 3.2.2.
> 
> Cheers,
> Robin
> 
> 
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.233 / Virus Database: 270.10.19/1940 - Release Date:
> 02/08/09 17:57:00





reply via email to

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