- 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


_______________________________________________ Bug-lilypond mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to