> I'm not top posting. lilypond-book 2.17.21 can't determine the line width from .lytex files if there is a space in the file path, while spaces only in the file name don't cause any problem.
I tried to compile the following example with lilypond-book 2.16.2 and 2.17.21, saving the file as "~/test/test.lytex", "~/test/te st.lytex" and "~/te st/test.lytex" (notice the spaces). \documentclass{article} \begin{document} \begin{lilypond} \repeat unfold 20 { c'1 } \end{lilypond} \end{document} lilypond-book 2.16.2 compiles correctly in each case. lilypond-book 2.17.21 compiles correctly in the first two cases, while in the third case ("~/te st/test.lytex") it produces too wide systems and gives the following output on terminal $ lilypond-book --output=out --pdf test.lytex lilypond-book (GNU LilyPond) 2.17.21 Reading test.lytex... Running `pdflatex' on file `/var/folders/XN/XNp3zsn1G-WeL9c1ocHiuE+++TI/ -Tmp-/tmpM6murh.tex' to detect default page settings. lilypond-book: warning: Unable to auto-detect default settings: /bin/sh: st:: command not found [... continues with normal output as before...] Writing `/Users/davide/te st/out/test.tex'... I believe the problem is in file "share/lilypond/current/python/book_latex.py". Here is part of the diff between version 2.16.2 and 2.17.21: I think the problem may be that the string that is added to $TEXINPUTS at line 192 is not quoted. (I didn't try to edit the "book_latex.py" and check if this is correct.) $ diff /Applications/LilyPond2.16.2.app/Contents/Resources/share/lilypond/ current/python/book_latex.py /Applications/LilyPond.app/Contents/Resources/share/lilypond/ current/python/book_latex.py [...] 189,191c191,194 < % (global_options.latex_program, tmpfile)); < cmd = '%s %s' % (global_options.latex_program, tmpfile); < ly.debug_output ("Executing: %s\n" % cmd); --- > % (global_options.latex_program, tmpfile)) > cmd = 'TEXINPUTS=%s:$TEXINPUTS %s %s' \ > % (global_options.input_dir, global_options.latex_program, tmpfile) > debug ("Executing: %s\n" % cmd) [...] I am on Mac OS 10.6. Best wishes, Davide _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond