LaTeX forum ⇒ Texmaker and TeXstudioTexmaker and Lilypond

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Posts: 7
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

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  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: 9572
Joined: Mon Mar 10, 2008 9:44 pm

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: ... dbook.html

Stefan admin

Return to “Texmaker and TeXstudio”

Who is online

Users browsing this forum: No registered users and 1 guest