Sorry if this will turn out to be noob-ish, but apparently I can't integrate Lilypond scores into my LaTeX document (well, neither ABC ones, but that's another question).
I have this MWE:
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\begin{lilypond}[quote,fragment,staffsize=26]
c' d' e' f' g'2 g'2
\end{lilypond}
\end{document}
When I run pdflatex, I got:
ERROR: LaTeX Error: Environment lilypond undefined.
--- TeX said ---
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.35 \begin{lilypond}
[quote,fragment,staffsize=26]
--- HELP ---
LaTeX has encountered a \begin command for a nonexistent environment.
You probably misspelled the environment name.
What am I doing wrong?
I'm on Arch Linux, and I got these packages installed:
[alessandro@commodoroII MMDC]$ pacman -Qe | grep texlive
texlive-bibtexextra 2022.63023-1
texlive-core 2022.63035-1
texlive-fontsextra 2022.62977-1
texlive-formatsextra 2022.62529-1
texlive-games 2022.62102-1
texlive-humanities 2022.62929-1
texlive-latexextra 2022.63034-1
texlive-music 2022.62533-1
texlive-pictures 2022.62992-1
texlive-pstricks 2022.62977-1
texlive-publishers 2022.63013-1
texlive-science 2022.62977-1
Thanks!
\usepackage{lyluatex}and compile with LuaLaTeX instead of pdfLaTeX. Also you need to have Lilypond itself installed. See the lyluatex documentation for details. – Marijn Feb 06 '23 at 13:05lilypond. – cabohah Feb 06 '23 at 13:37lilypond-bookworks, but I wonder: does it runlatexmkunder the hood? Do I have to call it multiple times if I have cross references too? lyluatex OTOH doesn't work, the processlualatex --shell-escape test.texnever terminates. – Alessandro Bertulli Feb 06 '23 at 14:26