Open uliska opened 5 years ago
IMHO, it would be one of those things lyluatex
gives tools for, but shouldn't implement directly. You may, for example, define a framed environment as follows:
\documentclass{article}
\usepackage{lyluatex}
\begin{document}
\lynewenvironment{framedly}[1][]{
\begin{ly}[raw-pdf, #1]
}{%
\end{ly}
\fbox{\includegraphics{\lyscore{}}}
}
\begin{framedly}
d e f
\end{framedly}
\end{document}
OK, I see.
What might be interesting, though is a way to configure an environment where scores are wrapped in, like we have with \lysetverbenv
. This can then call arbitrary environments defined in the actual document.
For example if I want syntax highlighted source code plus a framed score example I could use \lysetverbenv
as described in the manual (https://github.com/jperon/lyluatex/blob/master/lyluatex.md#printing-lilypond-code) and (e.g.) \lysetscoreenv
to invoke the framedly
environment a user might define elsewhere.
268 gave me the idea of adding a
frame
option to print a frame around the image. It should be configurable with regard to line thickness, line stile, padding, colour ...