Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frame option #270

Open
uliska opened this issue Jul 30, 2019 · 2 comments
Open

frame option #270

uliska opened this issue Jul 30, 2019 · 2 comments

Comments

@uliska
Copy link
Collaborator

uliska commented Jul 30, 2019

#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 ...

@jperon
Copy link
Owner

jperon commented Dec 24, 2019

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}

@uliska
Copy link
Collaborator Author

uliska commented Dec 25, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants