Re: lilypondfile
> "pabuhr" == pabuhr writes: pabuhr> I tried manually converting the ps to eps: ps2pdf generates pabuhr> a file that is unusable (go figure), and "convert" generates pabuhr> a low quality image (maybe one of the many parameters can pabuhr> fix this). "convert -density' sometimes helps with this. -- Laura (mailto:lcon...@laymusic.org, twitter: @serpentplayer) (617) 661-8097 233 Broadway, Cambridge, MA 02139 http://www.laymusic.org/ http://www.serpentpublications.org I value kindness to human beings first of all, and kindness to animals. I don't respect the law; I have a total irreverence for anything connected with society except that which makes the roads safer, the beer stronger, the food cheaper, and old men and women warmer in the winter, and happier in the summer. Brendan Behan (1923 - 1964) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondfile (fwd)
-- Forwarded message -- Date: Tue, 28 Aug 2012 08:26:07 +0200 (CEST) From: Martin Tarenskeen To: pabuhr Subject: Re: lilypondfile On Mon, 27 Aug 2012, pabuhr wrote: lilypond -dbackend=eps -daux-files=#f file.ly should be what you are after... Perfect, except it still generates a PDF file, which I don't need and I could not find an command-line option to prevent the PDF from being created. But that's what a Makefile is for: I just delete the PDF. Have you tried lilypond -dbackend=eps -daux-files=#f --ps file.ly -- MT ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondfile
I've not tried this to confirm it's correct, but my expectation is that the syntax is lilypond options filename So you should write lilypond -o fred mary.ly Works! I'm just an old C programmer and always put the '-o' at the end of the command. 8-( Thanks. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondfile
- Original Message - From: "pabuhr" To: "Reinhold Kainhofer" Cc: Sent: Tuesday, August 28, 2012 4:59 PM Subject: Re: lilypondfile Finally, what does the "-o" option do? -o,--output=FILE or FOLDER Set the default output file to FILE or, if a folder with that name exists, direct the output to FOLDER, taking the file name from the input file. The appropriate suffix will be added (e.g. .pdf for pdf) in both cases. For this command $ lilypond mary.ly -o fred my expectation is that the PDF output is placed in file fred.pdf rather than mary.pdf, but here is what occurs: GNU LilyPond 2.16.0 Processing `mary.ly' Parsing... Interpreting music...[8] Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to `mary.ps'... Converting to `./mary.pdf'... warning: cannot find file: `-o' warning: cannot find file: `fred' fatal error: failed files: "fred -o" I've not tried this to confirm it's correct, but my expectation is that the syntax is lilypond options filename So you should write lilypond -o fred mary.ly -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondfile
> Perfect, except it still generates a PDF file, which I don't need and I could > not find an command-line option to prevent the PDF from being created. > But that's what a Makefile is for: I just delete the PDF. Lilypond also has a --ps option So what you want is: lilypond -dbackend=eps -daux-files=#f --ps file.ly 8-) It works, but totally counter-intuitive. I do use --ps all the time, and the usage manual is clear on this option: --ps Generate PostScript. so it never would have occurred to me that --ps means NOT --ps if the backend option is eps. Now the usage manual does state: The prefix no- may be added to option-name to switch 'off' an option, e.g. -dpoint-and-click=#f is the same as -dno-point-and-click so I tried -dno-ps but that generates: warning: no such internal option: no-ps Just to show I am doing due diligence, the usage manual also says: --png Generate pictures of each page, in PNG format. This implies '--ps'. --pdf Generate PDF. This implies '--ps'. but in both cases, no "ps" file exists after the command. Yes, the output of the command indicates: Layout output to `file.ps'... but creation of this temporary file is an internal issue since it is subsequently removed, and therefore, irrelevant to the meaning of the command-line option. Finally, what does the "-o" option do? -o,--output=FILE or FOLDER Set the default output file to FILE or, if a folder with that name exists, direct the output to FOLDER, taking the file name from the input file. The appropriate suffix will be added (e.g. .pdf for pdf) in both cases. For this command $ lilypond mary.ly -o fred my expectation is that the PDF output is placed in file fred.pdf rather than mary.pdf, but here is what occurs: GNU LilyPond 2.16.0 Processing `mary.ly' Parsing... Interpreting music...[8] Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to `mary.ps'... Converting to `./mary.pdf'... warning: cannot find file: `-o' warning: cannot find file: `fred' fatal error: failed files: "fred -o" ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondfile
On 2012-08-28 07:09, pabuhr wrote: > Is there a way to generate an eps file directly as for a ps file? I need the > bounding box to include the exact output into latex (I'm not using pdflatex). > I tried manually converting the ps to eps: ps2pdf generates a file that is > unusable (go figure), and "convert" generates a low quality image (maybe one of > the many parameters can fix this). Using command-line option "backend=eps" does > generate a eps file but it's not the same as the original because it is for > lilypond-book I see no reason why there should be a difference. There is a small shift left and up that is different from lilypondfile, which is what I was previously using. I can compensate in latex. lilypond -dbackend=eps -daux-files=#f file.ly should be what you are after... Perfect, except it still generates a PDF file, which I don't need and I could not find an command-line option to prevent the PDF from being created. But that's what a Makefile is for: I just delete the PDF. Lilypond also has a --ps option So what you want is: lilypond -dbackend=eps -daux-files=#f --ps file.ly Cheers, Reinhold Kainhofer -- -- Reinhold Kainhofer, reinh...@kainhofer.com, http://www.kainhofer.com * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * Edition Kainhofer, Music Publisher, http://www.edition-kainhofer.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondfile
> Is there a way to generate an eps file directly as for a ps file? I need the > bounding box to include the exact output into latex (I'm not using pdflatex). > I tried manually converting the ps to eps: ps2pdf generates a file that is > unusable (go figure), and "convert" generates a low quality image (maybe one of > the many parameters can fix this). Using command-line option "backend=eps" does > generate a eps file but it's not the same as the original because it is for > lilypond-book I see no reason why there should be a difference. There is a small shift left and up that is different from lilypondfile, which is what I was previously using. I can compensate in latex. lilypond -dbackend=eps -daux-files=#f file.ly should be what you are after... Perfect, except it still generates a PDF file, which I don't need and I could not find an command-line option to prevent the PDF from being created. But that's what a Makefile is for: I just delete the PDF. Thanks ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondfile
On 2012-08-28 02:12, pabuhr wrote: Is there a way to generate an eps file directly as for a ps file? I need the bounding box to include the exact output into latex (I'm not using pdflatex). I tried manually converting the ps to eps: ps2pdf generates a file that is unusable (go figure), and "convert" generates a low quality image (maybe one of the many parameters can fix this). Using command-line option "backend=eps" does generate a eps file but it's not the same as the original because it is for lilypond-book I see no reason why there should be a difference. the eps backend is used by lilypond-book, but it should be usable on its own, too. lilypond -dbackend=eps file.ly should generate the exact same layout as the pdf file (except that the output is cropped). In fact, lilypond first does the whole layout and only then generates the output file (ps/pdf, eps, png, svg, ...) from the final layout. (and it generates a lot of extra files). lilypond -dhelp shows that there is an aux-files=#f option to lilypond: lilypond -dbackend=eps -daux-files=#f file.ly should be what you are after... Cheers, Reinhold -- -- Reinhold Kainhofer, reinh...@kainhofer.com, http://www.kainhofer.com * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * Edition Kainhofer, Music Publisher, http://www.edition-kainhofer.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondfile
Is there a way to generate an eps file directly as for a ps file? I need the bounding box to include the exact output into latex (I'm not using pdflatex). I tried manually converting the ps to eps: ps2pdf generates a file that is unusable (go figure), and "convert" generates a low quality image (maybe one of the many parameters can fix this). Using command-line option "backend=eps" does generate a eps file but it's not the same as the original because it is for lilypond-book (and it generates a lot of extra files). ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondfile
The vertical spacing between systems in lilypond-book is established by LaTeX, not LilyPond, so most spacing parameters will not be effective. Ouch! 8-( Having to fuss with vertical spacing in two places is unfortunate, especially since the latex version only gives a fixed spacing whereas lilypond allows control at multiple levels. I don't think knowing the "number of files already included in this snippet" is going to be helpful. Maybe I need to directly include PS/PDF output from lilypond if I want them to be the same. 8-( Intersystem spacing in lilypond-book is documented in the usage manual, though possibly not really obvious: Yes, I saw those macros but never imagined I would need them unless I have to tweak after the fact. Ok, I'll have to go back and rethink this one. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondfile
pabuhr writes: > I cannot get the direct output from lilypond to match the output from > lilypondfile with lilypond book. Below I have the source file and a PDF file > where page 1 is the direct output from lilypond and page 2 is generated by > lilypond book using: > > \lilypondfile{Mary_Lamb.ly} > > The problem is the vertical spacing is compressed in lilypond book. > I'd like the output in lilypond book to look the same as the direct > output. The vertical spacing between systems in lilypond-book is established by LaTeX, not LilyPond, so most spacing parameters will not be effective. Intersystem spacing in lilypond-book is documented in the usage manual, though possibly not really obvious: Each snippet will call the following macros if they have been defined by the user: * `\preLilyPondExample' called before the music, * `\postLilyPondExample' called after the music, * `\betweenLilyPondSystem[1]' is called between systems if `lilypond-book' has split the snippet into several PostScript files. It must be defined as taking one parameter and will be passed the number of files already included in this snippet. The default is to simply insert a `\linebreak'. So you need to define betweenLilyPondSystem to insert space, something like \newcommand\betweenLilyPondSystem[1]{\linebreak\vspace{5mm}} -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypondfile: does not seem to work
Ok. So well.. I tweaked a little bit and now it seems to work. What I wanted is just the anhang (appendix) to be typesetted by lilypond, the other examples I wanted as simple images. So I kept the file structure and just made a file anhang.lytex which I compiled (tanks very much for the make file) and then just included the anhang.pdf in the regular document with includepdf. Then I had to tweak with setcounter and addtotoc. Well. That's how it worked. Maybe there's a neater solution... But at all thanks a lot for your help. Cheers Stefan > This is the only thing I don't know how to do either. If I learn I'll > let you know. > All the best, > Hugo > > stefankaegi escreveu: > > That's great. :) > > There's one thing left. Somehow the table of contents and the list of > > figures isn't displayed. I don't know what I should do there to make it > > work. > > > > But thanks a lot for your help so far > > > > Stefan > > > >> Now it is working. I did a lot of changing, mainly the folders. I > >> deleted all. I don't know too much abou automatizing the 'makefile' so I > >> had to adapt your thesis to what I know. > >> > >> 1) I changed hauptdatei.tx to hauptdatei.lytex > >> 2) I created a 'make' file. so now the only thing you need to do is to > >> type 'sh make' and let the computer do the rest. > >> 3) I put all your tex files in the root directory, so the make file will > >> find them and work properly. > >> 4) I created one folder to the graphics. I inserted one example using > >> your motivation graphic. Take a look at the PDF. In order to the 'make' > >> file find your graphics, I needed to specify the path in the main file. > >> \graphicspath{{../graphics/}} > >> > >> 5) Now your mais file is like this: > >> > >> \begin{document} > >> \graphicspath{{../graphics/}} > >> > >> \input{titlepage} > >> \tableofcontents \setcounter{page}{1} > >> > >> \input{einleitung} > >> \input{analyse} > >> \input{feldarbeit} > >> \input{schlusswort} > >> \begin{appendix} > >> \input{anhang} > >> \end{appendix} > >> \listoffigures > >> > >> \end{document} > >> > >> As you can see, I removed all the references to folders and subfolders. > >> > >> 6) In your lilypond files, that are in the 'lily-examples' folder, I > >> comented some lines in order to make the 'fragment' option work under > >> the lilypondfile options. > >> > >> That's it. I think all your problem was all those folders. I know that > >> it is possible to make it that way, but I don't know how. Puting all the > >> tex files in the root directory is enough to make it work. > >> > >> Any doubts, just send me an email. > >> > >> All the best, > >> > >> and don't forget to let me know when you finish your thesis. > >> > >> Hugo > >> > >> p.s. your files (altered) are attached. > > > > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypondfile: does not seem to work
If your file is a lytex file and you are using lilypond-book, I think the first mistake is the use of '\include'. Change it by '\input': \input{kapitel/einleitung/einleitung} anyway, send your folder to me and let me see if I can make it work. Hugo. p.s. I don't read German by can understand some words. stefankaegi escreveu: Hi I just don't seem to grasp it. I tried to do everything like you did. I have a hauptdatei.lytex (mainfile) file which looks like the following: \documentclass[11pt,a4paper]{scrreprt} \usepackage{ngerman} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{typearea} \usepackage[a4paper,left=2.5cm,right=2.5cm,top=2cm,bottom=3cm]{geometry} \usepackage{graphicx} \usepackage{graphics} \usepackage{setspace} \usepackage{musixtex} \onehalfspacing \begin{document} \include{titlepage/titlepage} \tableofcontents \setcounter{page}{1} \include{kapitel/einleitung/einleitung} \include{kapitel/analyse/analyse} \include{kapitel/feldarbeit/feldarbeit} \include{kapitel/schlusswort/schlusswort} \begin{appendix} \include{kapitel/anhang/anhang} \end{appendix} \listoffigures \end{document} Sorry, I hope you understand it, it's german: kapitel means chapter, then comes the chapter name (e.g. einleitung) and then the file (e.g. einleitung(.tex) ) I just get some error messages when I try to run latex on the hauptdatei.tex file in my out folder: No file hauptdatei.aux. ! I can't write on file `titlepage/titlepage.aux'. [EMAIL PROTECTED] ...\immediate \openout [EMAIL PROTECTED] #1.aux \immediate \write [EMAIL PROTECTED] l.17 \include{titlepage/titlepage} Please type another output file name: The folder titlepage is on the same height as the kapitel folders in the file structure and I get errors for those as well. And btw: The link to the lilypond file is in kapitel/anhang/anhang There I wrote: \lilypondfile{morgentau.ly} since it's in the same folder Thanks a lot for your help Stefan Here is my small example on how to use Lilypond-book. Just unzip this attached file, using a terminal shell, enter the folder "01" and run this command: 'sh makefile' doing this you will see a pdf and ps file as a result. Good luck. Any doubt just let me know. Take a look inside the 'makefile' file and try to discover what it does... Hugo Ribeiro... ...from Brazil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypondfile: does not seem to work
Hi I just don't seem to grasp it. I tried to do everything like you did. I have a hauptdatei.lytex (mainfile) file which looks like the following: \documentclass[11pt,a4paper]{scrreprt} \usepackage{ngerman} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{typearea} \usepackage[a4paper,left=2.5cm,right=2.5cm,top=2cm,bottom=3cm]{geometry} \usepackage{graphicx} \usepackage{graphics} \usepackage{setspace} \usepackage{musixtex} \onehalfspacing \begin{document} \include{titlepage/titlepage} \tableofcontents \setcounter{page}{1} \include{kapitel/einleitung/einleitung} \include{kapitel/analyse/analyse} \include{kapitel/feldarbeit/feldarbeit} \include{kapitel/schlusswort/schlusswort} \begin{appendix} \include{kapitel/anhang/anhang} \end{appendix} \listoffigures \end{document} Sorry, I hope you understand it, it's german: kapitel means chapter, then comes the chapter name (e.g. einleitung) and then the file (e.g. einleitung(.tex) ) I just get some error messages when I try to run latex on the hauptdatei.tex file in my out folder: No file hauptdatei.aux. ! I can't write on file `titlepage/titlepage.aux'. [EMAIL PROTECTED] ...\immediate \openout [EMAIL PROTECTED] #1.aux \immediate \write [EMAIL PROTECTED] l.17 \include{titlepage/titlepage} Please type another output file name: The folder titlepage is on the same height as the kapitel folders in the file structure and I get errors for those as well. And btw: The link to the lilypond file is in kapitel/anhang/anhang There I wrote: \lilypondfile{morgentau.ly} since it's in the same folder Thanks a lot for your help Stefan > Here is my small example on how to use Lilypond-book. Just unzip this > attached file, using a terminal shell, enter the folder "01" and run > this command: > 'sh makefile' > > doing this you will see a pdf and ps file as a result. Good luck. Any > doubt just let me know. > > Take a look inside the 'makefile' file and try to discover what it does... > > Hugo Ribeiro... > ...from Brazil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypondfile: does not seem to work
The fundamental thing to remember is this: To use \lilypond or \begin{lilypond}, you need to write a .lytex file. This *CANNOT* be done inside a .latex or .tex file. Use lilypond-book to translate from .lytex to .tex. The makefile is just an automated way to do this. If you prefer, you could use a shell script, or even do it manually by hand. Cheers, - Graham On Sat, 10 May 2008 11:33:16 +0200 stefankaegi <[EMAIL PROTECTED]> wrote: > > Sorry. I hope I did it correctly with the mailinglist this time. > > Well... Although I found this: > http://lists.gnu.org/archive/html/lilypond-user/2008-03/msg00127.html > > I don't get a clue at all. Most likely I'm too stupid. :/ > > Stefan > > > Please keep the discussion on the mailist. > > > > lilypond-book works quite well for such things; I'm using it for > > my thesis. Please search the mailist archives from about one or > > two months ago; we discussed this recently, and I posted a working > > example with a makefile. > > > > Cheers, > > - Graham > > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypondfile: does not seem to work
Sorry. I hope I did it correctly with the mailinglist this time. Well... Although I found this: http://lists.gnu.org/archive/html/lilypond-user/2008-03/msg00127.html I don't get a clue at all. Most likely I'm too stupid. :/ Stefan > Please keep the discussion on the mailist. > > lilypond-book works quite well for such things; I'm using it for > my thesis. Please search the mailist archives from about one or > two months ago; we discussed this recently, and I posted a working > example with a makefile. > > Cheers, > - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypondfile: does not seem to work
Please keep the discussion on the mailist. lilypond-book works quite well for such things; I'm using it for my thesis. Please search the mailist archives from about one or two months ago; we discussed this recently, and I posted a working example with a makefile. Cheers, - Graham On Sat, 10 May 2008 11:05:11 +0200 stefankaegi <[EMAIL PROTECTED]> wrote: > Well.. Actually it's like the following. > I'm writing a bigger document. So I splitted it up in several separate > latex ones. And I assamble they in one file with \include. > Now I tried out lilypond-book but the same error is produced and I > can't see any lilypond output. > > The file I use for lilypond-book is mainfile.tex . From the > documentation it should work with such a file extension, not? > > > > > > You need to process your .lytex file with lilypond-book first. > > Please see the docs. > > > > Cheers, > > - Graham > > > > On Sat, 10 May 2008 10:25:20 +0200 > > stefankaegi <[EMAIL PROTECTED]> wrote: > > > > > Hi everybody > > > > > > I'm kind of lost. I'm writing a document with latex and then > > > tried at some point to integrate a lilypond file with: > > > > > > \lilypondfile {/path/to/file/filename.ly} > > > > > > It didn't work. There always came the following error: > > > > > > > > > ! Undefined control sequence. > > > l.18 \lilypondfile > > >{/path/to/file/filename.ly} > > > ? > > > > > > > > > Maybe I had to load a package in latex? But I wouldn't no which > > > one. At all there isn't a lilypond file in the output. > > > > > > Thanks a lot for your help > > > Cheers > > > > > > > > > > > > > > > ___ > > > lilypond-user mailing list > > > lilypond-user@gnu.org > > > http://lists.gnu.org/mailman/listinfo/lilypond-user > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypondfile: does not seem to work
You need to process your .lytex file with lilypond-book first. Please see the docs. Cheers, - Graham On Sat, 10 May 2008 10:25:20 +0200 stefankaegi <[EMAIL PROTECTED]> wrote: > Hi everybody > > I'm kind of lost. I'm writing a document with latex and then tried at > some point to integrate a lilypond file with: > > \lilypondfile {/path/to/file/filename.ly} > > It didn't work. There always came the following error: > > > ! Undefined control sequence. > l.18 \lilypondfile >{/path/to/file/filename.ly} > ? > > > Maybe I had to load a package in latex? But I wouldn't no which one. > At all there isn't a lilypond file in the output. > > Thanks a lot for your help > Cheers > > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user