Peter Gentry wrote >> >>Message: 3 >>Date: Thu, 30 Jan 2014 17:48:42 +0000 >>From: David Sumbler <
> david@.co > > >>To: > lilypond-user@ >>Subject: Producing a title page >>Message-ID: <1391104122.2284.67.camel@vesta> >>Content-Type: text/plain; charset="UTF-8" >> >>Having now got LilyPond 2.18.0 set up on my two machines, >>thanks to all the help from the list, I have now started >>trying to adjust the output of the pieces I have so far produced. >> >>I have used \header blocks for title, composer etc., and these >>are working as I would wish. >> >>However, I should like to produce a separate title page which >>precedes the music, but everything I have tried so far doesn't >>work. Usually I either get additional text added to the first >>page of music, or I get no title above the music itself. >> >>Of course, I could easily create a title page in LibreOffice >>or similar, but as LilyPond seems to have sufficient markup >>capabilities to do anything I am likely to want on a title >>page, it seems a shame not to keep the whole thing in the one place. >> >>What I would like to do is to have some items (e.g. title, >>composer) appearing on page 1, and some of the same ones >>appearing above the music which starts on page 2 (or perhaps >>page 3 in some cases). I imagine it is possible to set things >>up so that the data only appears once in the file - e.g. >>"Title" appears once in the .ly file, but appears both on the >>title page (page 1) and on the first page of music. >> >>Here is an abbreviated example of one of my efforts: >> >> >>\version "2.18.0" >> >>\book { >> \paper { >> indent = 0\mm >> scoreTitleMarkup = \markup { >> \fill-line { >> \null >> \fontsize #3 \bold \fromproperty #'header:piece >> \null >> } >> } >> first-page-number = #2 >> } >> >> \header { >> title = "Partita" >> subtitle = "for solo marimba" >> } >> >> \score { >> { c'1 c' } >> \header { piece = "I. Allemande" } >> \layout { } >> } >> \pageBreak >> >> \score { >> { d'1 d' } >> \header { piece = "II. Courante" } >> \layout { } >> } >>} >> >> >>How should I alter this to get a title page showing "Partita" >>and "for solo marimba" on a title page preceding the music pages? >> >>David > How about this as a possibility: > > % Mozart Quartet K464 Line 1 Bb Clarinet pitch \ > % File K464_Bb_L1.ly \ > % ---------------------------------------------------------- > \version "2.16.0" > #(set-global-staff-size 20) > > %-------------------------------------------------------------------- > % variables for later use to avoid repititions > %--------------------------------------------------------------------- > date = #(strftime "%d-%m-%Y" (localtime (current-time))) > xtitle = "String Quartet K464" > xsubtitle = "transposed for flute, clarinet, alto flute, and bass > clarinet" > xChristian = "Wolfgang Amadeus" > xSurname = "Mozart" > xdates = "(1756-1791)" > xpart = "Clarinet 1" > xinstrument = "Clt 1" > xmidiInstrument = "clarinet" > xgraphic="./mozza2.eps" > xstamp = \markup{\concat { "Engraved " \bold \date " with " \with-url > #"http://lilypond.org/"; "LilyPond " \simple > #(lilypond-version) " (http://lilypond.org/)" } } > > %----------------------------------------------------------------------------------- > % variable to control minimum ledger space after pageturn shrinkage > %----------------------------------------------------------------------------------- > ledgers = \override Staff.LedgerLineSpanner #'minimum-length-fraction = > #0.4 > > > % ------------------------------------------------------------------------ > % header for the first page only > %-------------------------------------------------------------------------- > \header { > mycustomtext= \markup { > \fill-line { > \column { > \center-align { > \xstamp > " " > \fontsize #-1 "Original > IMSLP64141-PMLP05225-Mozart_Werke_Breitkopf_Serie_14_KV464" > \fontsize #-1 "Clarinet Quartet > Copyright @ 2002 by Oliver Seeley and assigned to the public > domain" } > } > } > } > } > % ----------------------------------------------------------- > % define staffclarinet > % ----------------------------------------------------------- > > staffinstrument = \new Staff { > \set Staff.instrumentName = \xinstrument > \set Staff.midiInstrument = \xmidiInstrument > } > > % ----------------------------------------------------------- > % set the paper layout for binding > % footer has title and page number > % ----------------------------------------------------------- > \paper { > two-sided = ##t > top-margin = 10\mm > bottom-margin = 10\mm > inner-margin = 20 \mm > outer-margin = 15 \mm > binding-offset = 5 \mm > first-page-number = #1 > blank-after-score-page-force = #10 > page-breaking = #ly:page-turn-breaking > ragged-bottom = ##t > indent = 0\mm > print-page-number = ##t > print-first-page-number = ##f > oddHeaderMarkup = \markup \null > evenHeaderMarkup = \markup \null > oddFooterMarkup = \markup { > \fill-line { > \null \fontsize #2 > \fromproperty #'header:mycustomtext > \on-the-fly > #print-page-number-check-first > \fontsize #2 > \fromproperty #'page:page-number-string > } % end of > fill line > > } % end of > markup block > evenFooterMarkup = \oddFooterMarkup > } % end of paper block > > % ----------------------------------------------------------- > % typeset the music in a book > % use bookpart for individual movements > % ----------------------------------------------------------- > > \book { > > % ----------------------------------------------------------- > % Frontispiece block - note use of variables > % ----------------------------------------------------------- > \markuplist { > \justified-lines { > \hspace #8 > {\fontsize #8 \xChristian \fontsize #8 \xSurname } } > } > > \markuplist { > \justified-lines { > \vspace #1 > \hspace #26 > {\fontsize #6 \xdates} } > } > \markuplist { > \justified-lines { > \vspace #1 > \hspace #12 > {\fontsize #12 \xtitle } } > } > > \markuplist { > \justified-lines { > \vspace #2 > \hspace #18 > {\fontsize #4 \xsubtitle} } > } > > > \markup { > \vspace #6 > \hspace #20 > \general-align #Y #DOWN {\epsfile #Y #40 #"./mozza2.eps" } > > } > > \markuplist { > \justified-lines { > \vspace #2 > \hspace #32 > {\fontsize #8 \xpart} } > } > > > \markuplist { > \wordwrap-lines { > \vspace #2 > { Wolfgang Amadeus Mozart baptismal name Johannes > Chrysostomus Wolfgangus Theophilus Mozart (27 January 1756 - 5 > December 1791), was a prolific and influential composer of the Classical > era. He composed over 600 works, many acknowledged as > pinnacles of symphonic, concertante, chamber, operatic, and choral music. > He is among the most enduringly popular of classical > composers. > > Mozart showed prodigious ability from his earliest childhood in Salzburg. > Already competent on keyboard and violin, he composed from > the age of five and performed before European royalty. At 17, he was > engaged as a court musician in Salzburg, but grew restless and > travelled in search of a better position, always composing abundantly. > While visiting Vienna in 1781, he was dismissed from his > Salzburg position. He chose to stay in the capital, where he achieved fame > but little financial security. During his final years in > Vienna, he composed many of his best-known symphonies, concertos, and > operas, and portions of the Requiem, which was largely > unfinished at the time of his death. > > Mozart learned voraciously from others, and developed a brilliance and > maturity of style that encompassed the light and graceful > along with the dark and passionate. His influence on subsequent Western > art music is profound. Beethoven composed his own early > works in the shadow of Mozart, and Joseph Haydn wrote that posterity will > not see such a talent again in 100 years. > } > } > } > > \pageBreak > > > > _______________________________________________ > lilypond-user mailing list > lilypond-user@ > https://lists.gnu.org/mailman/listinfo/lilypond-user Hi Peter I commented out the EPS reference and added the bracket, works great now no errors thanks! :) But, FYI: I see some hiccups in my log file - any idea why? Have a great weekend! Ben <http://lilypond.1069038.n5.nabble.com/file/n158688/works_but.jpg> ----- composer | sound designer LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond -- View this message in context: http://lilypond.1069038.n5.nabble.com/Producing-a-title-page-tp158658p158688.html Sent from the User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user