10.04.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Spac<strong>in</strong>g 479<br />

Page label<br />

Page labels may be placed <strong>in</strong>side music or at top-level, and referred to <strong>in</strong> markups.<br />

#(set-default-paper-size "a6")<br />

#(def<strong>in</strong>e-markup-command (toc-l<strong>in</strong>e layout props label text)<br />

(symbol? markup?)<br />

(<strong>in</strong>terpret-markup layout props<br />

(markup #:fill-l<strong>in</strong>e (text #:page-ref label "8" "?"))))<br />

\book {<br />

\markup \huge \fill-l<strong>in</strong>e { \null Title Page \null }<br />

}<br />

\pageBreak<br />

\label #'toc<br />

\markup \column {<br />

\large \fill-l<strong>in</strong>e { \null Table of contents \null }<br />

\toc-l<strong>in</strong>e #'toc "Table of contents"<br />

\toc-l<strong>in</strong>e #'firstScore "First Score"<br />

\toc-l<strong>in</strong>e #'markA "Mark A"<br />

\toc-l<strong>in</strong>e #'markB "Mark B"<br />

\toc-l<strong>in</strong>e #'markC "Mark C"<br />

\toc-l<strong>in</strong>e #'unknown "Unknown label"<br />

}<br />

\pageBreak<br />

\label #'firstScore<br />

\score {<br />

\new Staff \relative c' {<br />

c2 c<br />

\mark \markup {<br />

A (page \concat { \page-ref #'markA "0" "?" ) }<br />

} \label #'markA<br />

c2 c<br />

\pageBreak<br />

\mark "B" \label #'markB<br />

d2 d<br />

d2 d<br />

\once \override Score.RehearsalMark #'break-visibility =<br />

#beg<strong>in</strong>-of-l<strong>in</strong>e-<strong>in</strong>visible<br />

\mark "C" \label #'markC<br />

}<br />

\header { piece = "First score" }<br />

}<br />

Title<br />

Page

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!