Hi List,

I'm in the process of converting one of my colleagues in musicology to changing 
her document-production toolchain to use LaTeX, and one of the big features I 
gave was the ability to integrate Lilypond directly into a .tex document and 
have it compile correctly. However, since I work with graphic scores myself I 
rarely have a need for this functionality, so I had to go look up how it's done.

I came across the application-usage section on invoking lilypond-book, and I 
realized that this is a somewhat fussy process that operates outside of the 
usual TeX production toolchain that most writers would be using: you have to 
create a separate file format (with a .lytex extension), and run lilypond-book 
on that, and then run a pdf generator on that to get a pdf.

There is, however, a LaTeX package for users of LuaLaTeX that works within .tex 
files and seems to function seamlessly, called "lyluatex." It even lists Urs 
Liska as a contributor. The documentation is here: 
https://ctan.org/pkg/lyluatex. I've tried a couple simple inserts of lilypond 
code in my normal .tex production (the frontend TexStudio, which is something 
similar to the layer that frescobaldi provides for lily), and it worked fine. 
You do need to modify your TeX compiler command to include a shell-escape, but 
otherwise I think it's a much simpler process than lilypond-book.

I'd like to request that the usage manual part of the documentation include 
this option, just so that users know that it's an option. If you need something 
written with an explanation, I could probably write something up.

Cheers,

N. Andrew Walsh
Blog: https://nandrewwalsh.substack.com
BlueSky: https://bsky.app/profile/themusicianspath.bsky.social
er/ihn/ihm/sein | he/him/his
Berlin
(neue Adresse | new address: [email protected])

Reply via email to