> > That's the result of the general output routine in paper-stream.cc
> > which always tries to give a nicely indented TeX output.
> > Wouldn't it be even better to convince ly2dvi to extract the
> > full TeX expression? The problem is that regular expressions
> > are not powerful enough to parse that kind of nested grammar.
> > The same problem happens if you write, for example,
> > title = "The \\textit{ABC} of Music";
> >
>
> What is the difficulty about writing regular expressions to match
> everything from one double quote to the next unescaped double quote.
The problem is to parse the TeX code which may contain nested
curly braces of any depth. The example above would result in:
\def\mudelatitle{The \textit{ABC}%
of Music}%
> > Anyhow, what you could do is
> > latexheaders = "\\input foo.tex";
>
> No, latex requires the braces around the filename: you'll get
> something like "file 'f' not found".
Try it! I've used it several times and it works fine. Maybe
you should be right in theory, but in practice it works!
/Mats