Am 17.05.2018 um 08:54 schrieb Federico Bruni:
Hi all

As lyluatex does not support captions¹, so far I've used \header{piece="Caption"} in the lilypond snippet to display a title before the music fragment. I'm ok with the way it looks. The problem is that sometimes this title is put just before a page break, so caption and figure are separate. How can I avoid it?

I've also tried using latex captions, but this does not solve this page breaking issue. Specifically, I've used the caption package and the command \captionof, as described here: https://tex.stackexchange.com/questions/350835/caption-out-of-float-error-when-using-caption/350836

Thanks in advance
Federico

It has been decided to *not* have lyluatex bother with matters of advanced integration.

Can't you simply write something like (can't test right now):

\begin{figure}
\begin{lilypond}
{
  c'
}
\end{lilypond}
\caption{My example}
\end{figure}


?

If not you can use the raw-pdf option and create your own environment where you essentially have the filename of the generated score to work with.

Apart from that I intend to extend my 'musicexamples' package with lyluatex support (https://github.com/uliska/musicexamples).

HTH
Urs



¹ https://github.com/jperon/lyluatex/issues/102




_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to