LaTeX forum ⇒ Texmaker and TeXstudioTexmaker and Lilypond

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Aleks
Posts: 2
Joined: Mon Aug 28, 2017 12:48 am

Texmaker and Lilypond

Postby Aleks » Mon Aug 28, 2017 1:04 am

Hello! Can somebody help me understand how to integrate lilypond snipets with Texmaker. I know for certain that lilypond-book is installed on my computer, because it is working within Lyx. However, I prefer working in Texmaker, but I can't make it happen. I tried the example from the manual

  1. \documentclass[a4paper]{article}
  2. \usepackage{graphics}
  3. \begin{document}
  4. Documents for @command{lilypond-book} may freely mix music and text.
  5. For example,
  6. \begin{lilypond}
  7. \relative c’ {
  8. c2 g’2 \times 2/3 { f8 e d } c’2 g4
  9. }
  10. \end{lilypond}
  11. \end{document}


But I get following errors:

LaTeX Error: Environment lilypond undefined
Undefined control sequence.
l.7 \relative
LaTeX Error: \begin{document} ended by \end{lilypond}

User avatar
Stefan Kottwitz
Site Admin
Posts: 8529
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Mon Aug 28, 2017 6:08 am

Hi Aleks,

welcome to the forum!

You need to run lilypond or lilipond-book as external tool on that LaTeX file, not yet LaTeX directly. See: http://lilypond.org/doc/v2.17/Documenta ... dbook.html

Stefan
Site admin


Return to “Texmaker and TeXstudio”

Who is online

Users browsing this forum: No registered users and 3 guests