jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
58 stars 11 forks source link

Gracefully handle failed LilyPond start with 'showfailed' option #240

Closed uliska closed 5 years ago

uliska commented 5 years ago

I think the 'showfailed' option should not only cover cases when LilyPond fails to produce a score but also when it can't be started.

With the showfailed option a failure to start LilyPond does not result in an err() but in a warn() with the same text, and a box is written into the document like the one reporting a failed score compilation.

With this option it is for example possible to have people successfully compile a document without a proper LilyPond installation (useful when they only care for the content or for technical assistance).

MWE:

\documentclass{article}
\usepackage{lyluatex}
\begin{document}
\lilypond[program=Foo,showfailed]{ c' }
\end{document}
uliska commented 5 years ago

The line had already been removed, with my comment I just wanted to draw specific attention to it.