bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lilypond-book doesn't work with LaTeX


From: Mats Bengtsson
Subject: Re: lilypond-book doesn't work with LaTeX
Date: Tue, 10 Feb 2004 16:23:24 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

- If I use \input for an ordinary TeX file, I get an error.
  (One solution is to only react to \input{*.ly})


This is hairier.  You want \input{foo.texi}, \input{foo.lytex} too.
You also don't want to ask kpathsea, or inore \inputs that cannot be
found.  I'm not too fond of something like \lyinclude; I don't see a
clean solution yet.

Forget what I wrote yesterday, of course it should check included
.tex files. One solution is to search for the file using kpsewhich
if it isn't found in the working directory or include path (-I),
but then the question is where to put the generated file. I don't
know what objections you have to use kpathsea.
Another solution is to only go through files that are found in
the working directory or include path and assume that all input
files that are only found via libkpathsea are ordinary (La)TeX
files. In addition, it might make sense to ignore any \input
directive that comes before \begin{document}.


Another comment: How about recognizing the suffix .htmly for
HTML files with embedded LilyPond code?

   /Mats




reply via email to

[Prev in Thread] Current Thread [Next in Thread]