Hi, I have attached a set of .ly file that illustrate what I am doing. I would like to have multiple exercise under the same "section", which I am now rendering as \bookpart. As I said, I'd like to avoid the page break between 'sections'. I tried to use the \header command inside the \score command, but this would require to have multiple staves in the same \score, and unless I am missing something in the way scores are handles, the only way to have moltiple staves in a score is to render them together as in a piano/orchestral part, which I don't want because I want each exercise to be a single entity.
I hope I made my point clear now, thanks for any help! Francesco On Sun, Mar 15, 2015 at 1:42 PM, Simon Albrecht <[email protected]> wrote: > Am 15.03.2015 um 14:23 schrieb Francesco Petrogalli: >> >> Hi, >> >> is there a way to avoid page breaks when creating a new \bookpart? > > No, there isn’t. Actually, having a page break inbetween is most of the > point of having multiple bookparts. What’s more, each bookpart may have its > own \paper block, whose settings can only be applied if the bo >> >> I am writing a book of exercises, and each book part consists of >> multiple exercises, each exercise is rendered within a \score. I am >> not sure this is the optimal subdivision for a book of exercises, does >> anybody have experience with such layout? > > Sounds like the standard way to solve such a task. What is it that makes you > doubt? > If it’s unclear still, please tell us more on what you are doing and why > that way: why do you use bookparts? It’s always helpful to attach a > (compilable!) .ly file, also with output (pdf or png). > > Yours, Simon
\version "2.16.2"
\include "musica001.ly"
\include "musica002.ly"
\book {
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Pagina 001
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bookpart {
\header {
title ="La tonalità di Sol maggiore"
}
\score {
\new Staff \with {
instrumentName = \markup {\bold \fontsize #2 "1"}
}\uno_uno
}
\score {
\new Staff \with {
instrumentName = \markup {\bold \fontsize #2 "2"}
} \uno_due
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Pagina 002
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bookpart {
\header {
title = "La tonalità di Fa maggiore"
}
\score {
\new Staff \with {
instrumentName = \markup {\bold \fontsize #2 "1"}
} \due_uno
}
\score {
\new Staff \with {
instrumentName = \markup {\bold \fontsize #2 "2"}
} \due_due
}
}
} % end of \book\version "2.16.2"
uno_uno = \relative c'' {
\key g \major
% Music follows here.
a b c d e f g a b c d e \bar "|."
}
uno_due = \relative c'' {
\key g \major
% Music follows here.
g2 e fis g
fis g1 \bar "|."
}due_uno = \relative c' {
\key f \major
% Music follows here.
f1\breathe g\breathe a\mark\markup{"simile"} e f \bar "|."
}
due_due = \relative c' {
\key f \major
f4 f f f |
g g g g |
a a a a |
e e e e |
f1 \bar "|."
}
raw.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
