Texmaker and TeXstudioTexmaker and Lilypond

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

Texmaker and Lilypond

Post by Aleks »

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

\documentclass[a4paper]{article}
\usepackage{graphics}
\begin{document}
Documents for @command{lilypond-book} may freely mix music and text.
For example,
\begin{lilypond}
\relative c’ {
c2 g’2 \times 2/3 { f8 e d } c’2 g4
}
\end{lilypond}
\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}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Texmaker and Lilypond

Post by Stefan Kottwitz »

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
LaTeX.org admin
Post Reply