Open ppenguin opened 6 months ago
I discovered that if I omit .ly-fragment
, I'm able to do \break
and the orginal appoggiaturas example also works (which has in the original test markdown also .ly-fragment
however, so why would it pass the test there?).
Ultimately this could mean, that it would be good to be able to tweak the ly-fragment
behaviour, or provide another mechanism that allows us a kind of default preamble that will be injected for each block, so we can avoid repeated setup boilerplate.
I just discovered
lilypond.lua
and it might be what I was looking for.However, I had some trouble getting it to work.
The following works well:
However, as soon as I add the
lilypond
block from here (examples), I get an error:The same happens when I add a
\break
to any of the above code.As I gleaned from the
lua
code, this probably means that thelilypond
process errored out and dind't produce an image file. But if I put the verbatim contents of the failing code block in a separate filelptst.ly
and then manually runlilypond
, it generates a correct lookingpng
file:The second topic:
I want to move things like
ly-resolution=300
to thefrontmatter
(which should be possible according to the docs), but none ofhad any effect.