Thank you. I modified your file a little and have the following questions:
1. Single title is not enough in the function, I'd like to add the
text below the title. Currently I removed the header from the function
and added the title and text manually. Don't know, how to do it inside
the function. And when I tried to remove the header parameter from the
function, it broke.
2. Can I change the font size for all the text in the file? I seems to
me, that the current font is 10pt, which is too small.
3. If we decrease the margins between the excersizes, it seems that on
block of 4 staves will be split into 2 pages as 4 blocks don't fit
into one can we try this?
I attached the picture to visualize my ideas.
\version "2.22.1"
\paper {
tagline = ""
markup-system-spacing.stretchability = 0
markup-system-spacing.padding = 1
system-system-spacing.stretchability = 0
score-markup-spacing.padding = 2
ragged-last-bottom = ##f
print-page-number = ##f
#(include-special-characters)
}
\layout {
\autoPageBreaksOff
indent = 0\in
\context {
\Staff
\remove "Time_signature_engraver"
\override VerticalAxisGroup.staff-staff-spacing.padding = 5
\override VerticalAxisGroup.staff-staff-spacing.stretchability = 0
}
\context {
\Score
\remove "Bar_number_engraver"
}
}
ex =
#(define-void-function (title) (markup?)
(add-score #{
\score {
\layout {
system-count = 2
}
\new PianoStaff
<<
\new Staff { \repeat unfold 2 s1 }
\new Staff { \clef bass \repeat unfold 2 s1 }
>>
} #} ))
\markup {
\bold{ № 1, chapter 10 }
}
\markup {
Scale: C-dur
}
\ex "First exercise: Scales and stuff"
\markup {
\bold{ № 2, chapter 10 }
}
\markup {
Scale: d-moll
}
\ex "Second exercise: Triads and so on"
\ex "Third exercise"
\ex "Fourth exercise"
\ex "Fifth exercise"
\ex "Sixth exercise"