Closed uliska closed 5 years ago
Note that \lilypond{#(example '(path to example))}
correctly passes the code to the LilyPond file.
Are you sure you're using last version from the repo ? On my computer, this mwe compiles as expected :
\documentclass{scrartcl}
\usepackage[debug]{lyluatex}
\begin{document}
\begin{lilypond}
#(ly:message "Hey")
\end{lilypond}
\end{document}
Yes, I am using the latest pulled master
. However, Probably the issue arised from having placed the code in a more complex context, and probably I was once more tricked by some residues in auxiliary files (I find this a pretty annoying "feature" in LaTeX).
Starting over with a fresh MWE and then with the content placed in an empty file with my project's documentclass I see that it does work properly. Sorry for the noise.
fails with
Obviously the
#
is interpreted as LaTeX (like we had it with e.g.\repeat
) if the LilyPond snippet starts with it (if you place some regular LilyPond code before that it works like expected).While this concrete example doesn't make sense it is perfectly reasonable to have snippets that only include one call to a music function which then produces the actual score, e.g. something like