[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about page number position and ornamentation
From: |
Thomas Morley |
Subject: |
Re: Question about page number position and ornamentation |
Date: |
Mon, 26 Nov 2012 21:32:19 +0100 |
2012/11/26 Rustik <address@hidden>:
> What i can make in this situation?
Hi,
try the commented code below.
Shout if you've further questions.
\version "2.16.0"
\paper {
% see: http://code.google.com/p/lilypond/issues/detail?id=2576
#(define (not-last-page layout props arg)
(if (not (book-last-page? layout props))
(interpret-markup layout props arg)
empty-stencil))
tocItemMarkup = \tocItemWithDotsMarkup
oddHeaderMarkup =
\markup \fill-line {
\on-the-fly #not-first-page
\fontsize #-1 {
\line {
\override #'(font-name . "Times New Roman") "My"
\override #'(font-name . "Arial") "header"
}
}
}
evenHeaderMarkup = \oddHeaderMarkup
oddFooterMarkup =
\markup \fill-line {
% using \line removes empty-stencils
% produced by #not-first-page etc
\line {
% page-number not on first-page
\on-the-fly #not-first-page
% page-number not on last-page
\on-the-fly #not-last-page
\fontsize #2
\concat {
\override #'(font-name . "Arial")
"-"
\override #'(font-name . "Times New Roman")
\fromproperty #'page:page-number-string
\override #'(font-name . "Arial")
"-"
}
% copyright on first page
\on-the-fly #first-page \fromproperty #'header:copyright
% tagline on last page
\on-the-fly #last-page \fromproperty #'header:tagline
}
}
evenFooterMarkup = \oddFooterMarkup
}
\header {
copyright = "© by me"
}
\book {
\bookpart {
% Title-page using \markup
\markup \column {
\vspace #8
\fill-line { \fontsize #12 "Music" }
\vspace #30
\fill-line {
\override #'(span-factor . 0.4)
\draw-hline
}
\vspace #4
\fill-line { \fontsize #1 \center-column {
"edited"
"by"
"me" }
}
}
}
\bookpart {
\markuplist { \column { \vspace #3 \table-of-contents } }
}
\bookpart {
\tocItem \markup "First score"
\new Staff { c''1 }
}
\bookpart {
\tocItem \markup "Second score"
\new Staff { cis''1 }
}
}
HTH,
Harm