[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lilypond-auto] Issue 3467 in lilypond: lilypond-book 2.17.21 and spaces
From: |
lilypond |
Subject: |
[Lilypond-auto] Issue 3467 in lilypond: lilypond-book 2.17.21 and spaces in file path |
Date: |
Wed, 17 Jul 2013 20:36:34 +0000 |
Status: Accepted
Owner: ----
Labels: Type-Other
New issue 3467 by address@hidden: lilypond-book 2.17.21 and spaces in
file path
http://code.google.com/p/lilypond/issues/detail?id=3467
reported by Davide Liessi:
http://lists.gnu.org/archive/html/bug-lilypond/2013-07/msg00092.html
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.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
- [Lilypond-auto] Issue 3467 in lilypond: lilypond-book 2.17.21 and spaces in file path,
lilypond <=