It is possible to store a \bookpart in a variable and later insert it where 
you like (just like you can store a \score or a \markup in a variable).

However, if the \bookpart contains a \markup, then LilyPond will crash. Simple 
sample file is attached. 

Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
\version "2.13.40"

% Storing a \bookpart in a variable is possible. It works fine if the bookpart
% does not contain any top-level markup. As soon as the bookpart, that is stored
% in a variable, contains a markup, lilypond will always segfault:

\header {
  title = "Title of my score"
}

mypart = \bookpart {
  % This works:
  \relative c' { c1 }
  % If the bookpart contains a markup, then lily crashes. If you comment
  % the markup, everything works fine:
  \markup { asdf }
}


% The bookpart written at top-level (not stored in a variable) works also with
% markups:

\bookpart {
  \relative c' { c1 }
  \markup { asdf }
}

% This crashes lilypond:
\bookpart { \mypart }
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to