[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lyluatex: captions and page breaks
From: |
Urs Liska |
Subject: |
Re: lyluatex: captions and page breaks |
Date: |
Thu, 17 May 2018 09:00:12 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
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
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user