lilypond-user
[Top][All Lists]

## lilypond-book question

 From: James Bailey Subject: lilypond-book question Date: Tue, 5 Jan 2010 10:53:25 +0100

I realise the problems:


I have a question. Given this input file:
\documentclass[a4paper]{article}
\usepackage[pdftex]{graphicx}
\begin{document}
\begin{lilypond}
\relative c' { c2 a'2 \times 2/3 { f8 e d } c'2 g4 }
\end{lilypond}
\end{document}

I was under the impression (according to AU 4.4), that I could do

lilypond-book --pdf myfile.pdftex (a new extension for me) and get a pdf of myfile.pdf

This doesn't work.



The correct command should be lilypond-book --latex-program=pdflatex --pdf myfile.lytex
pdflatex myfile.tex


I would send a patch, but I had a really bad experience last time I tried to make a patch. Can someone make this change?

Firstly, lilypond complains that it doesn't understand this extension.

lilypond-book: error: cannot determine format for: lily-book- sample.pdftex


Secondly, if the extension is changed to .lytex, LaTeX complains that I'm asking to use pdf mode, but dvi mode was detected
! Package pdftex.def Error: PDF mode expected, but DVI mode detected!


If, however I attempt to run pdflatex myfile.lytex on the following input file:
 \documentclass[a4paper]{article}
\usepackage[pdftex]{graphicx}
\begin{document}
test
% \begin{lilypond}
% \relative c' { c2 a'2 \times 2/3 { f8 e d } c'2 g4 }
% \end{lilypond}
\end{document}

pdflatex processes the file just fine, and pdf output is generated.


This leads me to believe that there is some error in the lilypond- book that precludes use of pdflatex. Am I missing something?