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

make latexpdf throws error #11

Closed
fabianmoss opened this issue Jan 28, 2022 · 4 comments · Fixed by #12
Closed

make latexpdf throws error #11

fabianmoss opened this issue Jan 28, 2022 · 4 comments · Fixed by #12
Labels
enhancement New feature or request

Comments

@fabianmoss
Copy link

Is it possible to include Lilypond output in a PDF generated by Sphinx?

I have the following code in one of my .rst files

.. lily::
   :noedge:
   :nofooter:
   :audio:

   \version "2.20.0"
   \header {
   }
   \score {
   <<
      \new Staff \relative c' {
      \tempo 4 = 120
         c4 cis d ees e f fis g aes a bes b
   }
   >>
   }

and get the error raise NotImplementedError(NotImplementedError: <class 'sphinx.writers.latex.LaTeXTranslator'> departing unknown node type: lily_outline_nod. Is LaTeX conversion really not implemented yet or am I missing something?

@SilverRainZ
Copy link
Member

LaTeX is not supported for now because I know very little about it.

@SilverRainZ SilverRainZ added the enhancement New feature or request label Jan 28, 2022
@fabianmoss
Copy link
Author

fabianmoss commented Jan 28, 2022

Thanks for the quick answer and for this great contrib. Maybe this can be added in the future...
I think a viable workaround is to include lilypond files via your directive and render them externally to PNG so that one can use the ..only:: directive to include lilypond or PNG files, respectively.

@SilverRainZ
Copy link
Member

I will try to implement it in few weeks, just keep this issue opening

@SilverRainZ
Copy link
Member

sphinxnotes-lilypond==1.5 lands this changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants