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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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