Le 19/02/2011 20:21, Peter Buhr a écrit :
> I'm attempting to use lilypond-book but have run into the following anomaly.
>
> The latex file below demonstrates the problem. There is a line
> \input{test.ind}
> to include the index file generated by the makeindex command. Normal procedure
> is to start with an empty (0 byte) xxx.ind file, do several latex runs to
> generate a xxx.idx file, and then build the index from xxx.idx using
> makeindex,
> do a few more latex runs to incorporate the index into the document, and Bob's
> Your Uncle. All these steps are normally accomplished via a Makefile.
>
> However, when I run lilypond-book, as in:
>
> $ lilypond-book -f latex -o out2 test.lytex
>
> the pre-processed output file out2/test.tex has zero bytes. If I comment out
> the line \input{test.ind} and run the same lilypond-book command,
> out2/test.tex
> has the correct pre-processed output. Moving the empty file test.ind to
> directory out2 still results in an empty test.tex file. Naming the file to
> something else does not help.
>
> So the problem seems to related to any input file having zero size results in
> the preprocessed output-file also having zero size.
>
> =============================================================================
>
> \documentclass[12pt]{article}
> \makeindex
>
> \begin{document}
>
> \subsection{Chromatic Octaves}
>
> \begin{lilypond}[staffsize=23]
> \score {
> \relative c {
> a b c d e f g
> } % relative
> } % score
> \end{lilypond}
>
> \input{test.ind} % PROBLEM LINE
>
> \end{document}
>
> =============================================================================
Hi,
I think you have to put the whole path for test.ind
if your test.ind is one directory upstairs of out2 you could also write:
\input{../test.ind}
I hope it's the right solution.
Cheers.
Phil.
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user