\lynewenvironment lets one define wrappers for ly without most of the drawbacks mentionned in the doc (especially the [] for empty optional arguments);
as \lynewenvironment doesn't allow adding lilypond code between \begin{ly} and \end{ly} (but only latex code before and after), four new parameters allow it in various places, which must be defined to a filename (or a list of filenames) to include (without '.ly'):
include_header;
include_footer;
include_before_body;
include_after_body;
\lysavefrag{FILE} allows defining lilypond code to be saved to tmp-ly/FILE.ly, so that it may be called from include_....
This PR includes several tools for customization:
\lynewenvironment
lets one define wrappers forly
without most of the drawbacks mentionned in the doc (especially the[]
for empty optional arguments);\lynewenvironment
doesn't allow adding lilypond code between\begin{ly}
and\end{ly}
(but only latex code before and after), four new parameters allow it in various places, which must be defined to a filename (or a list of filenames) to include (without '.ly'):include_header
;include_footer
;include_before_body
;include_after_body
;\lysavefrag{FILE}
allows defining lilypond code to be saved totmp-ly/FILE.ly
, so that it may be called frominclude_...
.