lilypond-user
[Top][All Lists]
Advanced

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

Re: lilypond-book: warning: cannot detect textwidth from LaTeX


From: David Wright
Subject: Re: lilypond-book: warning: cannot detect textwidth from LaTeX
Date: Wed, 27 Jul 2016 12:02:10 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed 27 Jul 2016 at 08:57:26 (+0200), Federico Bruni wrote:
> The libraries error was due to some path and relocation problem,
> because if I use Fedora lilypond package (/usr/bin) everything works
> correctly.
> 
> Except that the .tex file generated by lilypond-book is saved in
> /tmp and when the .ly file is included it cannot find it.
> What's wrong in the below .lytex file?
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> $ which lilypond-book
> /usr/bin/lilypond-book
> 
> $ lilypond-book --include=/home/fede/Documenti/spartiti/ly
> --output=out --pdf file.lytex
> lilypond-book (GNU LilyPond) 2.19.45
> Reading file.lytex...
> Running `pdflatex' on file `/tmp/tmpw7DwQy.tex' to detect default
> page settings.
> 
> Dissecting...
> lilypond-book: error: file not found: 23.10.63.ly
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> Why it's creating a .tex file in /tmp and calling pdflated on it?
> According to the Usage manualĀ¹, that commmand should generate a .tex
> file and then _I_ should launch pdflatex.

At the point your process stopped, it's barely begun. The file in /tmp
will contain something like

\nonstopmode
\documentclass[a4paper]{article}
\begin{document}
\typeout{textwidth=\the\textwidth}
\typeout{columnsep=\the\columnsep}
address@hidden
\end{document}

and normally it disappears in a flash. (I had to run
while : ; do cat /tmp/tmp*.tex ; done
in a captured session just to find that out.)

The clue as to why it gets no further is in the error message.
The bash functions I actually use to run LP and TeX keep things simple
by changing into the appropriate directories, so start with everything
in /tmp. Then change one thing at a time.

Here's an example run of mine, using just the naked commands. I've
inserted blank lines before each prompt (which prints the current
directory):

/tmp $ cat boo.lytex
\documentclass[a4paper]{article}
\begin{document}
Documents for \verb+lilypond-book+ may freely mix music and text.
For example,
\begin{lilypond}
\relative {
  c'2 e2 \tuplet 3/2 { f8 a b } a2 e4
}
\end{lilypond}
\lilypondfile[quote,noindent,line-width=15\cm]{bigger.ly}
\end{document}

/tmp $ cat bigger.ly
{ c' d' e' f' g' a' b' c'' g c' e' g' c'' e'' g'' c''' }

/tmp $ lilypond-book --output=out --pdf boo.lytex
lilypond-book (GNU LilyPond) 2.18.2
Reading boo.lytex...
Running `pdflatex' on file `/tmp/tmpZjkSDV.tex' to detect default page settings.

Dissecting...
Writing snippets...
Processing...
Running lilypond...
GNU LilyPond 2.18.2
Processing `snippet-map--1217663831.ly'
Parsing...
Processing `boo.lytex'
Parsing...
Renaming input to: `bigger.ly'
Interpreting music...
Preprocessing graphical objects...
Calculating line breaks... 
Drawing systems... 
Layout output to `5a/lily-42767417.eps'...
Converting to `5a/lily-42767417.pdf'...
Layout output to `5a/lily-42767417-1.eps'...
Converting to `5a/lily-42767417-1.pdf'...
Writing 5a/lily-42767417-systems.texi...
Writing 5a/lily-42767417-systems.tex...
Writing 5a/lily-42767417-systems.count...
Processing `boo.lytex'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Calculating line breaks... 
Drawing systems... 
Layout output to `ac/lily-941a492d.eps'...
Converting to `ac/lily-941a492d.pdf'...
Layout output to `ac/lily-941a492d-1.eps'...
Converting to `ac/lily-941a492d-1.pdf'...
Writing ac/lily-941a492d-systems.texi...
Writing ac/lily-941a492d-systems.tex...
Writing ac/lily-941a492d-systems.count...
Success: compilation successfully completed
Linking files...
Compiling /tmp/out/boo.tex...
Writing `/tmp/out/boo.tex'...

/tmp $ cd out

/tmp/out $ lualatex boo.tex
This is LuaTeX, Version beta-0.79.1 (TeX Live 2015/dev/Debian) (rev 4971) 
 restricted \write18 enabled.
(./boo.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 44 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/luatex-loader.sty
(/usr/share/texlive/texmf-dist/scripts/oberdiek/oberdiek.luatex.lua)))))
No file boo.aux.
(/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(./ac/lily-941a492d-systems.tex
<ac/lily-941a492d-1.pdf, id=1, 207.77625pt x 41.15375pt>
<use ac/lily-941a492d-1.pdf>) (./5a/lily-42767417-systems.tex
<5a/lily-42767417-1.pdf, id=2, 320.19624pt x 48.18pt>
<use 5a/lily-42767417-1.pdf>)
Overfull \hbox (25.19551pt too wide) in paragraph at lines 23--35
[][][] 
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}<./ac/lily-941a492d-1.pdf><
./5a/lily-42767417-1.pdf>] (./boo.aux))
(see the transcript file for additional information)
 265 words of node memory still in use:
   2 hlist, 1 vlist, 1 rule, 2 glue, 40 glue_spec, 1 write nodes
   avail lists: 2:12,3:7,4:59,5:8,6:78,7:2,9:21,10:6
<</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb><</usr/
share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb>
Output written on boo.pdf (1 page, 46771 bytes).
Transcript written on boo.log.

/tmp/out $ ls -lR
.:
total 84
drwxr-x--- 2 david david  4096 Jul 27 11:45 5a
drwxr-x--- 2 david david  4096 Jul 27 11:45 ac
-rw-r----- 1 david david     8 Jul 27 11:46 boo.aux
-rw-r----- 1 david david    23 Jul 27 11:45 boo.dep
-rw-r----- 1 david david  6656 Jul 27 11:46 boo.log
-rw-r----- 1 david david 46771 Jul 27 11:46 boo.pdf
-rw-r----- 1 david david   688 Jul 27 11:45 boo.tex
-rw-r----- 1 david david   177 Jul 27 11:45 snippet-map--1217663831.ly
-rw-r----- 1 david david    66 Jul 27 11:45 snippet-names--1217663831.ly

./5a:
total 68
-rw-r----- 1 david david 11665 Jul 27 11:45 lily-42767417-1.eps
-rw-r----- 1 david david  9755 Jul 27 11:45 lily-42767417-1.pdf
-rw-r----- 1 david david 11665 Jul 27 11:45 lily-42767417.eps
-rw-r----- 1 david david  1147 Jul 27 11:45 lily-42767417.ly
-rw-r----- 1 david david  9755 Jul 27 11:45 lily-42767417.pdf
-rw-r----- 1 david david     1 Jul 27 11:45 lily-42767417-systems.count
-rw-r----- 1 david david    44 Jul 27 11:45 lily-42767417-systems.tex
-rw-r----- 1 david david    34 Jul 27 11:45 lily-42767417-systems.texi
-rw-r----- 1 david david    14 Jul 27 11:45 lily-42767417.txt

./ac:
total 84
-rw-r----- 1 david david 10227 Jul 27 11:45 lily-941a492d-1.eps
-rw-r----- 1 david david 18156 Jul 27 11:45 lily-941a492d-1.pdf
-rw-r----- 1 david david 10227 Jul 27 11:45 lily-941a492d.eps
-rw-r----- 1 david david   894 Jul 27 11:45 lily-941a492d.ly
-rw-r----- 1 david david 18156 Jul 27 11:45 lily-941a492d.pdf
-rw-r----- 1 david david     1 Jul 27 11:45 lily-941a492d-systems.count
-rw-r----- 1 david david    44 Jul 27 11:45 lily-941a492d-systems.tex
-rw-r----- 1 david david    34 Jul 27 11:45 lily-941a492d-systems.texi
-rw-r----- 1 david david    14 Jul 27 11:45 lily-941a492d.txt
/tmp/out $ exit

Cheers,
David.



reply via email to

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