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?
hymnstyle.ly: ____ #(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" \include "english.ly" \include "hymndefinitions.ly" %music and text are here \book { \include "hymnstyle.ly" \header {} \score { \midi {} \layout {} } } #(define output-suffix "Melody") \book { \include "lilypond-book-preamble.ly" \include "hymnmelodystyle.ly" \paper {} \score { \layout {} } }
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user