Re: Lilypond-book with included files in LaTeX
Hi John, thank you so much for you help. But the solution - oh no - very simpel: lilypond-book needs obvoiusly the whole path: \input{/home/wome/LatexProjekte/klavierharmlehre/BuchI/preambel} So it works :-) Have a nice sunday Wolfgang 2009/3/7 Jonathan Kulp : > Wolfgang Mechsner wrote: >> >> Hi, >> >> somehow lilypond-book doesn't work with an LaTeX-file with inclduded >> files. >> >> I have a big file with a lot of lilypond-examples: it works great. But >> if I try, to separate the big file in many small files (with \include >> or \input) it doesn't work. >> >> Has anybody the same problem? >> >> Wolfgang >> > > I use lilypond-book this way all the time, with many \input files. I seem > to recall having trouble at some point, getting an error saying something > like "output would override input file," and the problems were solved by > using a .lytex extension instead of .tex on all of the LaTeX source files, > even if they didn't contain any lilypond code. Your description "it > doesn't work" is sort of vague, but if you're not already using .lytex as > your file extension, you might try that. If that doesn't work please send a > more detailed description of what happens when you try to run the files. > Best, > > Jon > > -- > Jonathan Kulp > http://www.jonathankulp.com > -- www.wolfgang-mechsner.de ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond-book with included files in LaTeX
2009/3/7 Wolfgang Mechsner : > My (lilypond-book) files have always the extension *.lytex. > > But if my *.lytex file has some included files like > > \input{preambel} > > the shell command output is > > ! LaTeX Error: File `preambel.tex' not found. > > If I compile the same file as a "normal" LaTeX-file (*.tex) it works fine! > > Thanks > Wolfgang I do that by using the tex extension on all files and by running lilypond-book on every file. If the resulting files output by lilypond-book do exist, I delete them first. An excerpt of the relevant part of my makefile is something like that: LPBOOK=lilypond-book --pdf --output=$(OUT) --include=$(OUT) --format=latex mkdir -p $(OUT) if [ -f $(OUT)/$(NAME).tex ] ; then rm $(OUT)/$(NAME).tex; fi for tex in $(TEXINCLUDES); do (if [ -f $(OUT)/$$tex ] ; then rm $(OUT)/$$tex ; fi); done for tex in $(TEXINCLUDES); do ($(LPBOOK) $$tex); done $(LPBOOK) $(NAME).tex NAME is the name of my master file and TEXINCLUDES are the included files. Not perfect (sure!) but it works. -- Francisco Vila. Badajoz (Spain) The incredible carnival of Badajoz http://www.flickr.com/photos/pacovila/tags/carnaval/show/ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond-book with included files in LaTeX
Wolfgang Mechsner wrote: My (lilypond-book) files have always the extension *.lytex. But if my *.lytex file has some included files like \input{preambel} the shell command output is ! LaTeX Error: File `preambel.tex' not found. If I compile the same file as a "normal" LaTeX-file (*.tex) it works fine! Thanks Wolfgang Could you make an archive (zip or tar) of your source files and email to me to try it out? Off-list is probably best. Jon 2009/3/7 Jonathan Kulp : Wolfgang Mechsner wrote: Hi, somehow lilypond-book doesn't work with an LaTeX-file with inclduded files. I have a big file with a lot of lilypond-examples: it works great. But if I try, to separate the big file in many small files (with \include or \input) it doesn't work. Has anybody the same problem? Wolfgang I use lilypond-book this way all the time, with many \input files. I seem to recall having trouble at some point, getting an error saying something like "output would override input file," and the problems were solved by using a .lytex extension instead of .tex on all of the LaTeX source files, even if they didn't contain any lilypond code. Your description "it doesn't work" is sort of vague, but if you're not already using .lytex as your file extension, you might try that. If that doesn't work please send a more detailed description of what happens when you try to run the files. Best, Jon -- Jonathan Kulp http://www.jonathankulp.com -- Jonathan Kulp http://www.jonathankulp.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond-book with included files in LaTeX
My (lilypond-book) files have always the extension *.lytex. But if my *.lytex file has some included files like \input{preambel} the shell command output is ! LaTeX Error: File `preambel.tex' not found. If I compile the same file as a "normal" LaTeX-file (*.tex) it works fine! Thanks Wolfgang 2009/3/7 Jonathan Kulp : > Wolfgang Mechsner wrote: >> >> Hi, >> >> somehow lilypond-book doesn't work with an LaTeX-file with inclduded >> files. >> >> I have a big file with a lot of lilypond-examples: it works great. But >> if I try, to separate the big file in many small files (with \include >> or \input) it doesn't work. >> >> Has anybody the same problem? >> >> Wolfgang >> > > I use lilypond-book this way all the time, with many \input files. I seem > to recall having trouble at some point, getting an error saying something > like "output would override input file," and the problems were solved by > using a .lytex extension instead of .tex on all of the LaTeX source files, > even if they didn't contain any lilypond code. Your description "it > doesn't work" is sort of vague, but if you're not already using .lytex as > your file extension, you might try that. If that doesn't work please send a > more detailed description of what happens when you try to run the files. > Best, > > Jon > > -- > Jonathan Kulp > http://www.jonathankulp.com > -- www.wolfgang-mechsner.de ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond-book with included files in LaTeX
Wolfgang Mechsner wrote: Hi, somehow lilypond-book doesn't work with an LaTeX-file with inclduded files. I have a big file with a lot of lilypond-examples: it works great. But if I try, to separate the big file in many small files (with \include or \input) it doesn't work. Has anybody the same problem? Wolfgang I use lilypond-book this way all the time, with many \input files. I seem to recall having trouble at some point, getting an error saying something like "output would override input file," and the problems were solved by using a .lytex extension instead of .tex on all of the LaTeX source files, even if they didn't contain any lilypond code. Your description "it doesn't work" is sort of vague, but if you're not already using .lytex as your file extension, you might try that. If that doesn't work please send a more detailed description of what happens when you try to run the files. Best, Jon -- Jonathan Kulp http://www.jonathankulp.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Lilypond-book with included files in LaTeX
Hi, somehow lilypond-book doesn't work with an LaTeX-file with inclduded files. I have a big file with a lot of lilypond-examples: it works great. But if I try, to separate the big file in many small files (with \include or \input) it doesn't work. Has anybody the same problem? Wolfgang -- www.wolfgang-mechsner.de ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user