Hi Jean,

I'm on Ubuntu 20.04. It seems the printing code that we added to book_latex.py 
is returning an empty string. Here's the new logging output of lilypond-book:
lilypond-book (GNU LilyPond) 2.22.1
Reading `/home/martin/Escritorio/newfile1.tex'
Running `pdflatex' on file `/tmp/tmp0i00kf9b.tex' to detect default page 
settings.

lilypond-book: warning: Unable to auto-detect default settings:
pdflatex: /home/martin/lilypond/usr/lib/libstdc++.so.6: version `CXXABI_1.3.9' 
not found (required by pdflatex)
pdflatex: /home/martin/lilypond/usr/lib/libz.so.1: no version information 
available (required by /lib/x86_64-linux-gnu/libpng16.so.16)
pdflatex: /home/martin/lilypond/usr/lib/libz.so.1: no version information 
available (required by /lib/x86_64-linux-gnu/libpng16.so.16)

lilypond-book: warning: cannot detect textwidth from LaTeX
Dissecting...
All snippets are up to date...
Linking files...
Compiling `newfile1.tex'...
Writing `/home/martin/Escritorio/out/newfile1.tex'...
''

On mar. 20 2022, at 8:18 pm, Jean Abou Samra <[email protected]> wrote:
> Le 20/03/2022 à 19:49, Martín Rincón Botero a écrit :
> > Hi Jean,
> >
> > thank you very much for wanting to take a look at it. Attached is the
> > .log file.
>
>
> Pheew. It looks correct, so something is wrong in the way lilypond-book
> gets it from the system. OK, can you locate the file book_latex.py in
> your LilyPond installation and apply the following diff?
>
>
> diff --git a/python/book_latex.py b/python/book_latex.py
> index ab8b2c7d3e..1c0f7bff50 100644
> --- a/python/book_latex.py
> +++ b/python/book_latex.py
> @@ -256,7 +256,9 @@ def get_latex_textwidth(source, global_options):
> os.unlink(tmpfile)
> if os.path.exists(auxfile):
> os.unlink(auxfile)
> + print(repr(parameter_string))
> if os.path.exists(logfile):
> + print(repr(parameter_string))
> parameter_string = open(logfile, encoding="utf8").read()
> os.unlink(logfile)
>
>
> Then re-run and paste the lilypond-book logging output. Also, what OS
> are you running? Is it Windows?
>

Reply via email to