lilypond-user
[Top][All Lists]
Advanced

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

Re: lilypond-book


From: Peter Buhr
Subject: Re: lilypond-book
Date: Sun, 20 Feb 2011 08:52:34 -0500

   Le 19/02/2011 20:21, Peter Buhr a écrit :
   > I'm attempting to use lilypond-book but have run into the following 
anomaly.
   ...
   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}

So I tried both of your suggestions, and this problem only gets worse.  Below
are the two test files with the relative and absolute path-names to the test.ind
file and the output from running lilypond-book.

In the first case using the relative path-name, lilypond-book cannot find file
../test.ind. I conjecture that lilypond-book is running in the current
directory and not the "out2" directory; hence, it is looking in the parent
directory for test.ind and cannot find it.

In the second case using the absolute path-name, it DOES work. I get the
preprocessed file test.tex in directory "out2". HOWEVER!!! Look at the last
line of the output from lilypond-book:

Writing `/home/pabuhr/guitar/music/test.tex'...

For some reason, lilypond-book has written a file called test.tex in the
CURRENT directory versus directory "out2". In fact, it overwrote the file
test.tex I had in the current directory, destroying it!!!

SO FOR ANYONE USING LILYPOND-BOOK, A STRONG CAUTIONARY NOTE. IT CAN DESTROY
FILES IN THE CURRENT DIRECTORY, SO BE VERY CAREFUL.

=============================================================================

\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}

\end{document}


@beppo[28]% rm -rf out2
@beppo[29]% lilypond-book -f latex -o out2 test.lytex 
lilypond-book (GNU LilyPond) 2.13.49
Reading test.lytex...
Running latex...latex: /usr/local/lilypond/usr/lib/libpng12.so.0: no version 
information available (required by latex)
latex: /usr/local/lilypond/usr/lib/libstdc++.so.6: no version information 
available (required by /usr/lib/libpoppler.so.2)
latex: /usr/local/lilypond/usr/lib/libstdc++.so.6: no version information 
available (required by /usr/lib/libpoppler.so.2)
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(/tmp/tmpVw-OmD.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, croatian, ukrainian, russian, bulgarian, czech, slovak, danish, dut
ch, finnish, basque, french, german, ngerman, ibycus, greek, monogreek, ancient
greek, hungarian, italian, latin, mongolian, norsk, icelandic, interlingua, tur
kish, coptic, romanian, welsh, serbian, slovenian, estonian, esperanto, upperso
rbian, indonesian, polish, portuguese, spanish, catalan, galician, swedish, loa
ded.

(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo))
Writing index file tmpVw-OmD.idx
No file tmpVw-OmD.aux.
textwidth=390.0pt
columnsep=10.0pt
(./tmpVw-OmD.aux) )
No pages of output.
Transcript written on tmpVw-OmD.log.
Dissecting...
Writing snippets...
Processing...
Running lilypond...GNU LilyPond 2.13.49
Processing `snippet-map-864957659.ly'
Parsing...
Processing `test.lytex'
Parsing...
Interpreting music... 
Preprocessing graphical objects...
Calculating line breaks... 
Drawing systems... 
Layout output to `e6/lily-68393ad0.eps'...
Layout output to `e6/lily-68393ad0-1.eps'...
Writing e6/lily-68393ad0-systems.texi...
Writing e6/lily-68393ad0-systems.tex...
Writing e6/lily-68393ad0-systems.count...
success: Compilation successfully completed

Compiling /home/pabuhr/guitar/music/out2/test.tex...
Writing `/home/pabuhr/guitar/music/out2/test.tex'...
Processing include: ../test.ind
Traceback (most recent call last):
  File "/usr/local/lilypond/usr/bin/lilypond-book", line 703, in ?
    main ()
  File "/usr/local/lilypond/usr/bin/lilypond-book", line 685, in main
    chunks = do_file (files[0])
  File "/usr/local/lilypond/usr/bin/lilypond-book", line 595, in do_file
    chunks))
  File "/usr/local/lilypond/usr/bin/lilypond-book", line 591, in process_include
    return do_file (name, included=True)
  File "/usr/local/lilypond/usr/bin/lilypond-book", line 530, in do_file
    in_handle = file (input_fullname)
IOError: [Errno 2] No such file or directory: ''

=============================================================================

\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{/home/pabuhr/guitar/music/test.ind}

\end{document}


@beppo[30]% rm -rf out2
@beppo[31]% lilypond-book -f latex -o out2 test.lytex 
lilypond-book (GNU LilyPond) 2.13.49
Reading test.lytex...
Running latex...latex: /usr/local/lilypond/usr/lib/libpng12.so.0: no version 
information available (required by latex)
latex: /usr/local/lilypond/usr/lib/libstdc++.so.6: no version information 
available (required by /usr/lib/libpoppler.so.2)
latex: /usr/local/lilypond/usr/lib/libstdc++.so.6: no version information 
available (required by /usr/lib/libpoppler.so.2)
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(/tmp/tmpabP_pk.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, croatian, ukrainian, russian, bulgarian, czech, slovak, danish, dut
ch, finnish, basque, french, german, ngerman, ibycus, greek, monogreek, ancient
greek, hungarian, italian, latin, mongolian, norsk, icelandic, interlingua, tur
kish, coptic, romanian, welsh, serbian, slovenian, estonian, esperanto, upperso
rbian, indonesian, polish, portuguese, spanish, catalan, galician, swedish, loa
ded.

(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo))
Writing index file tmpabP_pk.idx
No file tmpabP_pk.aux.
textwidth=390.0pt
columnsep=10.0pt
(./tmpabP_pk.aux) )
No pages of output.
Transcript written on tmpabP_pk.log.
Dissecting...
Writing snippets...
Processing...
Running lilypond...GNU LilyPond 2.13.49
Processing `snippet-map-864957659.ly'
Parsing...
Processing `test.lytex'
Parsing...
Interpreting music... 
Preprocessing graphical objects...
Calculating line breaks... 
Drawing systems... 
Layout output to `e6/lily-68393ad0.eps'...
Layout output to `e6/lily-68393ad0-1.eps'...
Writing e6/lily-68393ad0-systems.texi...
Writing e6/lily-68393ad0-systems.tex...
Writing e6/lily-68393ad0-systems.count...
success: Compilation successfully completed

Compiling /home/pabuhr/guitar/music/out2/test.tex...
Writing `/home/pabuhr/guitar/music/out2/test.tex'...
Processing include: /home/pabuhr/guitar/music/test.ind
Reading /home/pabuhr/guitar/music/test.ind...
Dissecting...
Writing snippets...
All snippets are up to date...
Compiling /home/pabuhr/guitar/music/test.tex...
Writing `/home/pabuhr/guitar/music/test.tex'...



reply via email to

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