Hello,
I am trying to create two scores from the same .ly file. The first score will be on custom 6x9 paper as defined by "
hymnstyle.ly". The second score will be cropped by invoking lilypond-book and cropping the paper as in "
hymnmelodystyle.ly". However I keep getting the error message "error: need \paper for paper block" referring to the style sheets. I have tried putting a blank paper block at the top level of the main file, but that doesn't seem to help. Any thoughts?
____
#(set-global-staff-size 16)
\paper {
#(set-paper-size "ustrade")
}
%%%%%%%%%%%%%%
\layout {
indent = 0.0\cm
ragged-right = ##f
\context {
\Score
\remove "Bar_number_engraver"
}
\context {
\Staff
\remove "Time_signature_engraver"
}
\context {
\Lyrics
\override LyricSpace #'minimum-distance = #0.6
\override LyricText #'font-size = #0.8
\override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
}
}
_____
Hymnmelodystyle.ly
______
#(set-global-staff-size 14)
\paper {
indent=0\mm
line-width=5.0\in
oddFooterMarkup=##f
oddHeaderMarkup=##f
bookTitleMarkup = ##f
scoreTitleMarkup = ##f
}
%%%%%%%%%%%
%%%%%%%%%%%
%%%%%%%%%%%
\layout {
indent = 0.0\cm
ragged-right = ##f
\context {
\Score
\remove "Bar_number_engraver"
}
\context {
\Staff
\remove "Time_signature_engraver"
}
\context {
\Lyrics
\override LyricText #'font-size = #0.8
}
}
_______
Hymnfile.ly:
______
\version "2.18.0-1"
%music and text are here
\book {
\header {}
\score {
\midi {}
\layout {}
}
}
#(define output-suffix "Melody")
\book {
\paper {}
\score {
\layout {}
}
}