Re: Lilypond-book question
pico is the easiest text editor from the Terminal. So, the command "pico .profile" (pico is the program, the command; ".profile" is the hidden file) opens the file with the user's PATH settings. As a hidden file, it's easier editing it via the Terminal. On some configuration, the hidden file is not ".profile" (sometimes, it is ".bash") One could add one line, like this one: export PATH="/Applications/LilyPond.app/Contents/Resources/bin:$PATH" I'll look at TexMaker tomorrow Philippe -- View this message in context: http://lilypond.1069038.n5.nabble.com/Lilypond-book-question-tp192449p192507.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond-book question
Hi Raphael, nice to see you here as well ;-) Am 09.07.2016 um 23:52 schrieb Dr. Raphael D. Thöne: > Hello Philippe, hello Jeffrey, > > thanks for your help. > > I used the right path (I typed the whole path) and then run a test > file, compiling it with lilybook and then finally with latexpdf. It > worked! > /Applications/LilyPond.app/Contents/Resources/bin/lilypond-book > --output=out --pdf lily/lily.lytex > > Adding the path: > You mentioned pico.profile (why pico? Or can I use any name?) > I first created a lilybook file in a folder called bin and when I run > it in the Terminal (Mac), it works > > ... > > I created then a file called pico.profile and saved it in my home > directory. I only consists of two lines: > export PATH=$PATH:~/bin > BLANK LINE > > When I now directly try to run lilybook with the path, it tells me > that lilybook cannot still be found. > Last login: Sat Jul 9 23:47:38 on ttys000 > Raphi:~ raphaelthoene$ lilypond-book --output=out --pdf lily/lily.lytex > -bash: lilypond-book: command not found > Raphi:~ raphaelthoene$ I don't know exactly how things go on Mac, but simply changing/adding a configuration file won't change anything on a UNIX system. You also have to make sure that the shell (the one that is actually executing the command) has read that file. I'm not sure about that "pico" either, but on Linux any profiles may only be read upon the start of a shell - or by explicitly calling "source pico.profile" on it. OTOH there are different types of profiles that are read in different contexts so I won't make any concrete suggestions. But as you *are* using LaTeX already please let me point you to two packages that are valuable for the use-case of writing seminar texts and other mixed documents which we talked about: lilyglyphs and musicexamples. lilyglyphs is in CTAN and TeXLive, so it should be available on your LaTeX distribution, otherwise consult ftp://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/macros/luatex/latex/lilyglyphs/documentation/lilyglyphs.pdf musicexamples is not fully ready yet - that is, it *is* ready but not extremely useful yet. Nevertheless it provides a few cool things for inserting music in LaTeX documents. It is not released yet but you can find it at https://github.com/uliska/musicexamples. Best Urs > > > > Thanks again for your help, > Raphael. > > >> Am 09.07.2016 um 22:14 schrieb flup2 > <mailto:phili...@philmassart.net>>: >> >> Hello, >> >> At first look, it seems that your terminal settings do not include >> the path >> to lilypond-book. >> >> There are multiple ways to solve it: >> - use the complete command (quite boring...). If lilypond is placed >> in your >> Applications folder, the complete path should be >> >> - add lilypond-book path in the PATH. Usually, this is done by >> editing the >> .profile file in your user folder, using the terminal (I use "pico >> .profile") >> >> Regarding TeXmaker, I cannot help now (I would need time to look at), >> but I >> guess you need to show the complete path of lilypond-book to TeXMaker >> >> Philippe >> >> >> >> -- >> View this message in context: >> http://lilypond.1069038.n5.nabble.com/Lilypond-book-question-tp192449p192461.html >> Sent from the User mailing list archive at Nabble.com >> <http://nabble.com>. >> >> ___ >> lilypond-user mailing list >> lilypond-user@gnu.org <mailto:lilypond-user@gnu.org> >> https://lists.gnu.org/mailman/listinfo/lilypond-user > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond-book question
Hello Philippe, hello Jeffrey, thanks for your help. I used the right path (I typed the whole path) and then run a test file, compiling it with lilybook and then finally with latexpdf. It worked! /Applications/LilyPond.app/Contents/Resources/bin/lilypond-book --output=out --pdf lily/lily.lytex Adding the path: You mentioned pico.profile (why pico? Or can I use any name?) I first created a lilybook file in a folder called bin and when I run it in the Terminal (Mac), it works Last login: Sat Jul 9 23:46:54 on ttys001 Raphi:~ raphaelthoene$ /Users/raphaelthoene/bin/lilybook ; exit; Usage: lilypond-book [OPTION]... FILE Process LilyPond snippets in hybrid HTML, LaTeX, texinfo or DocBook document. Examples: $ lilypond-book --filter="tr '[a-z]' '[A-Z]'" BOOK $ lilypond-book -F "convert-ly --no-version --from=2.0.0 -" BOOK $ lilypond-book --process='lilypond -I include' BOOK Options: -F, --filter=FILTER pipe snippets through FILTER [default: `convert-ly -n -'] -f, --format=FORMAT use output format FORMAT (texi [default], texi-html, latex, html, docbook) -h, --help show this help and exit -I, --include=DIRadd DIR to include path --info-images-dir=DIR format Texinfo output so that Info will look for images of music in DIR --left-padding=PAD pad left side of music to align music inspite of uneven bar numbers (in mm) --lily-loglevel=LOGLEVEL Print lilypond log messages according to LOGLEVEL --lily-output-dir=DIR write lily-XXX files to DIR, link into --output dir --load-custom-package=PACKAGE Load the additional python PACKAGE (containing e.g. a custom output format) -l, --loglevel=LOGLEVEL Print log messages according to LOGLEVEL (NONE, ERROR, WARNING, PROGRESS (default), DEBUG) -o, --output=DIR write output to DIR -P, --process=COMMAND process ly_files using COMMAND FILE... --redirect-lilypond-output Redirect the lilypond output -s, --safe Compile snippets in safe mode --skip-lily-check do not fail if no lilypond output is found --skip-png-check do not fail if no PNG images are found for EPS files --use-source-file-names write snippet output files with the same base name as their source file -V, --verbosebe verbose --versionshow version number and exit -w, --warranty show warranty and copyright Options only for the latex and texinfo backends: --latex-program=PROG run executable PROG instead of latex, or in case --pdf option is set instead of pdflatex --texinfo-program=PROG run executable PROG instead of texi2pdf --pdfcreate PDF files for use with PDFTeX Report bugs via http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Prozess beendet] I created then a file called pico.profile and saved it in my home directory. I only consists of two lines: export PATH=$PATH:~/bin BLANK LINE When I now directly try to run lilybook with the path, it tells me that lilybook cannot still be found. Last login: Sat Jul 9 23:47:38 on ttys000 Raphi:~ raphaelthoene$ lilypond-book --output=out --pdf lily/lily.lytex -bash: lilypond-book: command not found Raphi:~ raphaelthoene$ Thanks again for your help, Raphael. Am 09.07.2016 um 22:14 schrieb flup2 mailto:phili...@philmassart.net>>: Hello, At first look, it seems that your terminal settings do not include the path to lilypond-book. There are multiple ways to solve it: - use the complete command (quite boring...). If lilypond is placed in your Applications folder, the complete path should be - add lilypond-book path in the PATH. Usually, this is done by editing the .profile file in your user folder, using the terminal (I use "pico .profile") Regarding TeXmaker, I cannot help now (I would need time to look at), but I guess you need to show the complete path of lilypond-book to TeXMaker Philippe -- View this message in context: http://lilypond.1069038.n5.nabble.com/Lilypond-book-question-tp192449p192461.html Sent from the User mailing list archive at Nabble.com<http://nabble.com>. ___ lilypond-user mailing list lilypond-user@gnu.org<mailto:lilypond-user@gnu.org> https://lists.gnu.org/mailman/listinfo/lilypond-user _
Re: Lilypond-book question
Hi Raphael, The instructions for setting up lilypond on the command line are here: http://lilypond.org/macos-x.html Note that `lilypond` and `lilypond-book` etc. are distinct scripts. Just having the package on your computer doesn't automatically point the terminal to lilypond. best, Jeffery On Sat, Jul 9, 2016 at 4:14 PM, flup2 wrote: > Hello, > > At first look, it seems that your terminal settings do not include the path > to lilypond-book. > > There are multiple ways to solve it: > - use the complete command (quite boring...). If lilypond is placed in your > Applications folder, the complete path should be > > - add lilypond-book path in the PATH. Usually, this is done by editing the > .profile file in your user folder, using the terminal (I use "pico > .profile") > > Regarding TeXmaker, I cannot help now (I would need time to look at), but I > guess you need to show the complete path of lilypond-book to TeXMaker > > Philippe > > > > -- > View this message in context: > http://lilypond.1069038.n5.nabble.com/Lilypond-book-question-tp192449p192461.html > Sent from the User mailing list archive at Nabble.com. > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond-book question
Hello, At first look, it seems that your terminal settings do not include the path to lilypond-book. There are multiple ways to solve it: - use the complete command (quite boring...). If lilypond is placed in your Applications folder, the complete path should be - add lilypond-book path in the PATH. Usually, this is done by editing the .profile file in your user folder, using the terminal (I use "pico .profile") Regarding TeXmaker, I cannot help now (I would need time to look at), but I guess you need to show the complete path of lilypond-book to TeXMaker Philippe -- View this message in context: http://lilypond.1069038.n5.nabble.com/Lilypond-book-question-tp192449p192461.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Lilypond-book question
I have actually subscribed to the list, but it seems that raphael.tho...@drraphaeldthone.onmicrosoft.com doesn't go through the filters. There I post it manually... Hi Everyone, as a newbie to lilypond, I read workflow for integrating Lilybond-book into LaTeX which is outlined in the documentation. I typed the testfile, saved it in a separate folder, but on my mac, I get the following message (Terminal) Last login: Sat Jul 9 17:53:26 on ttys001 Raphi:~ raphaelthoene$ cd lily Raphi:lily raphaelthoene$ lilypond-book --output=out --pdf lilybook.lytex -bash: lilypond-book: command not found Raphi:lily raphaelthoene$ lilypond-book --output=out --pdf lilybook.lytex -bash: lilypond-book: command not found Raphi:lily raphaelthoene$ Apparently, I haven’t installed the lilypond-package, although Lilypond is working on my machine. Where do I get the lilypond-book-package and how do I install it (sudo)? Or does it have something to do with the command line? Is there an easier way, e.g. to integrate lilypond-book directly into TeXMaker? Thanks for your help, Raphael. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
Quoting Graham Percival : On Mon, Mar 15, 2010 at 09:16:34PM -0700, Kees van den Doel wrote: How am I supposed to use lilypond-book on windows? By reading the documentation? 1) include it in your PATH. As has already been pointed out, the PATH is setup by the Windows installer, so that lilypond-book works out of the box from a Windows command shell. /Mats ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
Thanks, I got it working now. Kees - Original Message - From: James Bailey Date: Monday, March 15, 2010 11:43 pm Subject: Re: lilypond-book question To: Kees van den Doel Cc: lilypond-user@gnu.org > > On 16.03.2010, at 05:16, Kees van den Doel wrote: > > running latex...Dissecting...lilypond-book.py: error file > not > > found: screech-boink.ly > > > > I can't find anything in the docs, but haven't read them cover > to > > cover. (My miktex is fine.) > > > > If you read the last line of the input text that you're using, > it > reads: (If needed, replace screech-boink.ly by any .ly file you > put > in the same > directory as this file.) > > So, unless you have a file named screech-boink.ly in a place > that > pdflatex will find it, the file will not be able to compile. > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
Op maandag 15-03-2010 om 21:16 uur [tijdzone -0700], schreef Kees van den Doel: > How am I supposed to use lilypond-book on windows? > > I'm in a cygwin csh shell. If you're in cygwin anyway and you want a unixy environment, you could install lilypond from cygwin and then just act as if you are on and follow linux/unix instructions. Greetings, Jan. -- Jan Nieuwenhuizen | GNU LilyPond - The music typesetter Avatar®: http://AvatarAcademy.nl| http://lilypond.org ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On Mon, Mar 15, 2010 at 09:16:34PM -0700, Kees van den Doel wrote: > How am I supposed to use lilypond-book on windows? By reading the documentation? 1) include it in your PATH. 2) write a proper lilypond-book file that has a hope of compiling. I recommend using the template provided. - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On 16.03.2010, at 05:16, Kees van den Doel wrote: running latex...Dissecting...lilypond-book.py: error file not found: screech-boink.ly I can't find anything in the docs, but haven't read them cover to cover. (My miktex is fine.) If you read the last line of the input text that you're using, it reads: (If needed, replace screech-boink.ly by any .ly file you put in the same directory as this file.) So, unless you have a file named screech-boink.ly in a place that pdflatex will find it, the file will not be able to compile. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
When on Windows I run these commands from the DOS prompt and it works fine. I think the problem is probably related to your $PATH. I remember once having to set up the path so that it could find the lilypond commands, but this last time I set up a windows VM and installed Lilypond, it automatically set up the path correctly. You should search the web for instructions on how to add directories to the path. You might also just try it at a DOS prompt instead and see if it works. Jon On Mon, Mar 15, 2010 at 11:16 PM, Kees van den Doel wrote: > Hi all, > > How am I supposed to use lilypond-book on windows? > > I'm in a cygwin csh shell. Instructions say: > > >To produce a PDF file through PDFLaTeX, use > > >lilypond-book --pdf yourfile.pdftex > >pdflatex yourfile.tex > > lilypond-book is however not a recognized command. > > I then tried (after finding lilypond-book.py and some guessing) > > python 'c:\program files\lilypond\usr\bin\lilypond-book.py' foo.lytex > > and get: > > running latex...Dissecting...lilypond-book.py: error file not found: > screech-boink.ly > > I can't find anything in the docs, but haven't read them cover to cover. > (My miktex is fine.) > > Appreciate any help, > Kees > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > -- Jonathan Kulp http://www.jonathankulp.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
lilypond-book question
Hi all, How am I supposed to use lilypond-book on windows? I'm in a cygwin csh shell. Instructions say: >To produce a PDF file through PDFLaTeX, use >lilypond-book --pdf yourfile.pdftex >pdflatex yourfile.tex lilypond-book is however not a recognized command. I then tried (after finding lilypond-book.py and some guessing) python 'c:\program files\lilypond\usr\bin\lilypond-book.py' foo.lytex and get: running latex...Dissecting...lilypond-book.py: error file not found: screech-boink.ly I can't find anything in the docs, but haven't read them cover to cover. (My miktex is fine.) Appreciate any help, Kees ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
Le jeudi 07 janvier 2010 à 10:47 +0100, Mats Bengtsson a écrit : > > What do all (pdf)(La)TeX users on this list think about making > > lilypond-book implcitly set latex-program option to 'pdflatex' if the > > format is 'latex' and --pdf option is set? > > > This definitely makes sense. Since I have never explicitly specified a > pdftex option to any package, I haven't thought about the problem, but > it's obviously better if lilypond-book uses pdflatex when it internally > figures out the line width if it knows that that's what the user will > use to process the full document. Done, John signature.asc Description: Ceci est une partie de message numériquement signée ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
John Mandereau wrote: The correct command should be lilypond-book --latex-program=pdflatex --pdf myfile.lytex pdflatex myfile.tex What do all (pdf)(La)TeX users on this list think about making lilypond-book implcitly set latex-program option to 'pdflatex' if the format is 'latex' and --pdf option is set? This definitely makes sense. Since I have never explicitly specified a pdftex option to any package, I haven't thought about the problem, but it's obviously better if lilypond-book uses pdflatex when it internally figures out the line width if it knows that that's what the user will use to process the full document. /Mats ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On 07.01.2010, at 00:18, John Mandereau wrote: James, sorry for having missed this email, but it surely has a missing header that prevented my mail client to show it in the same thread as other messages. Le mardi 05 janvier 2010 à 10:53 +0100, James Bailey a écrit : I realise the problems: The correct command should be lilypond-book --latex-program=pdflatex --pdf myfile.lytex pdflatex myfile.tex What do all (pdf)(La)TeX users on this list think about making lilypond-book implcitly set latex-program option to 'pdflatex' if the format is 'latex' and --pdf option is set? I would send a patch, but I had a really bad experience last time I tried to make a patch. Can someone make this change? Sure, but if everybody agrees on making the change to lilypond- book, the docs won't need to be changed. Best, John Okay, I have my images and lilypond-book all sorted out. I wasn't understanding my output correctly, and I have to copy images to the - o folder (I figured lilypond-book would do that for me). Regarding my pdflatex option, I have no problems using \usepackage [pdftex]{graphicx} with lilypond-book, as long as I explicitly state --latex-program=pdflatex as a lilypond-book option. Which is fine with me. I also have no problems using \usepackage{graphicx} with lilypond-book, and I don't even have to explicitly state the latex program as a lilypond-book option. And Patrick says he has the typo in git with regards to the .pdftex extension sorted out. Thank you to everyone who has helped me with this. Now I can go back to writing. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On Tue, Jan 5, 2010 at 3:26 AM, James Bailey wrote: > > Maybe we're looking at different sections of the documentation. I'm looking > at: > > To produce a PDF file through PDFLaTeX, use > > lilypond-book --pdf yourfile.pdftex > pdflatex yourfile.tex > > This doesn't work. For reasons as to why, and what does work, please see the > previous email. The documentation has been changed appropriately (in git). Thanks, Patrick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On Wed, Jan 6, 2010 at 3:55 PM, Patrick McCarty wrote: > On Wed, Jan 6, 2010 at 3:42 PM, James Bailey > wrote: >> >> To produce a PDF file through PDFLaTeX, use >> >> lilypond-book --pdf yourfile.pdftex >> pdflatex yourfile.tex > > Maybe it's a typo? > > The .lytex extension works for me: > > lilypond-book --pdf yourfile.lytex > pdflatex yourfile.tex Sorry for not reading the thread beforehand, else I would have noticed that Graham already pointed this out. Regarding the original file you posted, I get the same error message as you with TeX Live 2009 on Arch Linux. If I change \usepackage[pdftex]{graphicx} to \usepackage{graphicx} the error message goes away. -Patrick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On Wed, Jan 6, 2010 at 3:42 PM, James Bailey wrote: > > To produce a PDF file through PDFLaTeX, use > > lilypond-book --pdf yourfile.pdftex > pdflatex yourfile.tex Maybe it's a typo? The .lytex extension works for me: lilypond-book --pdf yourfile.lytex pdflatex yourfile.tex -Patrick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
Hi James, > I feel like I'm going mad. Am I looking at the wrong documentation? Well, you say > When I go to kainhofer, and I look at the documentation for 2.13 and John says >> This is normal: according to "4.5 Filename extensions" at >> http://lilypond.org/doc/v2.12/Documentation/user/lilypond-program/Filename-extensions So you're looking at different docs — maybe that's the problem? Hope this helps! Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On 07.01.2010, at 00:03, John Mandereau wrote: Le mardi 05 janvier 2010 à 10:35 +0100, James Bailey a écrit : Firstly, lilypond complains that it doesn't understand this extension. lilypond-book: error: cannot determine format for: lily-book- sample.pdftex This is normal: according to "4.5 Filename extensions" at http://lilypond.org/doc/v2.12/Documentation/user/lilypond-program/ Filename-extensions you must specify --format command line option if you don't use a filename extension recognized by lp-book. Best, John I feel like I'm going mad. Am I looking at the wrong documentation? When I go to kainhofer, and I look at the documentation for 2.13. in the Application Usage manual, section 3.4, Invoking lilypond-book, I see: There are two ways of processing your LaTeX document for printing or publishing: getting a PDF file directly with PDFLaTeX, or getting a PostScript file with LaTeX via a DVI to PostScript translator like dvips. The first way is simpler and recommended1, and whichever way you use, you can easily convert between PostScript and PDF with tools, like ps2pdf and pdf2ps included in Ghostscript package. To produce a PDF file through PDFLaTeX, use lilypond-book --pdf yourfile.pdftex pdflatex yourfile.tex There's really no mention of --format there, or anything, really. It seems pretty spartan, and I think the commands there, really don't work, regardless of the input file. As to my other problems with graphicx and pdftex, I can compile files just find with the --latex-program=pdflatex except I can't include other images. I'm still working on it. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
James, sorry for having missed this email, but it surely has a missing header that prevented my mail client to show it in the same thread as other messages. Le mardi 05 janvier 2010 à 10:53 +0100, James Bailey a écrit : > I realise the problems: > The correct command should be lilypond-book --latex-program=pdflatex > --pdf myfile.lytex > pdflatex myfile.tex What do all (pdf)(La)TeX users on this list think about making lilypond-book implcitly set latex-program option to 'pdflatex' if the format is 'latex' and --pdf option is set? > I would send a patch, but I had a really bad experience last time I > tried to make a patch. Can someone make this change? Sure, but if everybody agrees on making the change to lilypond-book, the docs won't need to be changed. Best, John signature.asc Description: Ceci est une partie de message numériquement signée ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
Le mardi 05 janvier 2010 à 10:35 +0100, James Bailey a écrit : > Firstly, lilypond complains that it doesn't understand this extension. > lilypond-book: error: cannot determine format for: lily-book- > sample.pdftex This is normal: according to "4.5 Filename extensions" at http://lilypond.org/doc/v2.12/Documentation/user/lilypond-program/Filename-extensions you must specify --format command line option if you don't use a filename extension recognized by lp-book. Best, John signature.asc Description: Ceci est une partie de message numériquement signée ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
Le mercredi 06 janvier 2010 à 23:04 +0100, Mats Bengtsson a écrit : > Quoting James Bailey : > > pdflatex always complains if I don't have it there > > That's weird! The graphicx package should automatically detect if you > are using pdflatex or latex and choose the appropriate driver. Agreed. I can't remember if pdflatex issues any warning if I don't specify [pdftex], but it always produced correct output without this option (with TeXlive 2008 and 2009). James, which TeX distro do you use? > Explicitly specifying this option is a bad idea in general. Yes, and in particular it makes lilypond-book fails (see below the explanation). > (Note that > this has nothing to do with lilypond-book per se). It has actually something to do: lilypond-book calls latex on the preamble of the .lytex document in order to determine the line width (IIRC, and/or some paper-related metrics anyway), hence the failure of latex James reported in his first email if the input file extension is .lytex. To work around this, best is to remove [pdftex] option from the .lytex, but it might work to set lilypond-book command line option --latex-program=pdflatex. James, if you sum up the issues raised in this thread into one or two paragraphs, we'll consider adding them to a section 'Known issues and warnings' in lp-book docs. Best, John signature.asc Description: Ceci est une partie de message numériquement signée ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On 06.01.2010, at 23:04, Mats Bengtsson wrote: Quoting James Bailey : On Tue, Jan 05, 2010 at 10:35:07AM +0100, James Bailey wrote: I have a question. Given this input file: \documentclass[a4paper]{article} \usepackage[pdftex]{graphicx} What;s the pdftex doing in there? pdflatex always complains if I don't have it there That's weird! The graphicx package should automatically detect if you are using pdflatex or latex and choose the appropriate driver. Explicitly specifying this option is a bad idea in general. (Note that this has nothing to do with lilypond-book per se). /Mats I've actually never tried it without explicitly stating pdftex as a graphicx option. Wonderfully, if I don't need the graphicx package, lilypond-book does add pdftex to the file so that it can be processed properly. That still doesn't make .pdftex a valid file extension, however. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
Quoting James Bailey : On Tue, Jan 05, 2010 at 10:35:07AM +0100, James Bailey wrote: I have a question. Given this input file: \documentclass[a4paper]{article} \usepackage[pdftex]{graphicx} What;s the pdftex doing in there? pdflatex always complains if I don't have it there That's weird! The graphicx package should automatically detect if you are using pdflatex or latex and choose the appropriate driver. Explicitly specifying this option is a bad idea in general. (Note that this has nothing to do with lilypond-book per se). /Mats ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On 05.01.2010, at 10:59, Graham Percival wrote: On Tue, Jan 05, 2010 at 10:57:41AM +0100, James Bailey wrote: On 05.01.2010, at 10:38, Graham Percival wrote: On Tue, Jan 05, 2010 at 10:35:07AM +0100, James Bailey wrote: I have a question. Given this input file: \documentclass[a4paper]{article} \usepackage[pdftex]{graphicx} What;s the pdftex doing in there? pdflatex always complains if I don't have it there Of course all of this was just taken from the docs, which is why I was so confused. I've sent another email explaining the solution. Are we both looking at the 2.13 docs? Becuase I don't see any graphicx line in there, with or without pdftex. In fact, I can see now exactly the problem, you're looking at section 3.1 An example of a musicological document, whereas I'm looking at section 3.4 Invoking lilypond-book. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On Tue, Jan 05, 2010 at 10:57:41AM +0100, James Bailey wrote: On 05.01.2010, at 10:38, Graham Percival wrote: On Tue, Jan 05, 2010 at 10:35:07AM +0100, James Bailey wrote: I have a question. Given this input file: \documentclass[a4paper]{article} \usepackage[pdftex]{graphicx} What;s the pdftex doing in there? pdflatex always complains if I don't have it there Of course all of this was just taken from the docs, which is why I was so confused. I've sent another email explaining the solution. Are we both looking at the 2.13 docs? Becuase I don't see any graphicx line in there, with or without pdftex. Maybe we're looking at different sections of the documentation. I'm looking at: To produce a PDF file through PDFLaTeX, use lilypond-book --pdf yourfile.pdftex pdflatex yourfile.tex This doesn't work. For reasons as to why, and what does work, please see the previous email. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On 05.01.2010, at 10:59, Graham Percival wrote: On Tue, Jan 05, 2010 at 10:57:41AM +0100, James Bailey wrote: On 05.01.2010, at 10:38, Graham Percival wrote: On Tue, Jan 05, 2010 at 10:35:07AM +0100, James Bailey wrote: I have a question. Given this input file: \documentclass[a4paper]{article} \usepackage[pdftex]{graphicx} What;s the pdftex doing in there? pdflatex always complains if I don't have it there Of course all of this was just taken from the docs, which is why I was so confused. I've sent another email explaining the solution. Are we both looking at the 2.13 docs? Becuase I don't see any graphicx line in there, with or without pdftex. Please try the template EXACTLY as it is given. If that fails, then either lilypond, the docs, or your system configuration is wrong. If other people try the sample instructions and have it work, then the problem is probably your system. I always forget you use the latest stuff. No, I'm looking at the 2.12 docs. 'Cause that's the version I use. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On Tue, Jan 05, 2010 at 10:57:41AM +0100, James Bailey wrote: > > On 05.01.2010, at 10:38, Graham Percival wrote: > >> On Tue, Jan 05, 2010 at 10:35:07AM +0100, James Bailey wrote: >>> I have a question. Given this input file: >>> \documentclass[a4paper]{article} >>> \usepackage[pdftex]{graphicx} >> >> What;s the pdftex doing in there? > > pdflatex always complains if I don't have it there > Of course all of this was just taken from the docs, which is why I was so > confused. I've sent another email explaining the solution. Are we both looking at the 2.13 docs? Becuase I don't see any graphicx line in there, with or without pdftex. Please try the template EXACTLY as it is given. If that fails, then either lilypond, the docs, or your system configuration is wrong. If other people try the sample instructions and have it work, then the problem is probably your system. If you try changing things without knowing exactly what you're changing, then all bets are off. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On 05.01.2010, at 10:38, Graham Percival wrote: On Tue, Jan 05, 2010 at 10:35:07AM +0100, James Bailey wrote: I have a question. Given this input file: \documentclass[a4paper]{article} \usepackage[pdftex]{graphicx} What;s the pdftex doing in there? pdflatex always complains if I don't have it there \begin{document} \begin{lilypond} \relative c' { c2 a'2 \times 2/3 { f8 e d } c'2 g4 } \end{lilypond} \end{document} Secondly, if the extension is changed to .lytex, That's what it's supposed to be. Then the documentation is wrong LaTeX complains that I'm asking to use pdf mode, but dvi mode was detected ! Package pdftex.def Error: PDF mode expected, but DVI mode detected! This leads me to believe that there is some error in the lilypond- book that precludes use of pdflatex. Am I missing something? Start from the template in the docs. Does the command in the docs work with the template in the docs? It definitely worked for me at one point in time. If the docs-way of doing it works, then figure out what's different in your example. If the docs-way doesn't work, then let us know. Of course all of this was just taken from the docs, which is why I was so confused. I've sent another email explaining the solution. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
lilypond-book question
I realise the problems: I have a question. Given this input file: \documentclass[a4paper]{article} \usepackage[pdftex]{graphicx} \begin{document} \begin{lilypond} \relative c' { c2 a'2 \times 2/3 { f8 e d } c'2 g4 } \end{lilypond} \end{document} I was under the impression (according to AU 4.4), that I could do lilypond-book --pdf myfile.pdftex (a new extension for me) and get a pdf of myfile.pdf This doesn't work. The correct command should be lilypond-book --latex-program=pdflatex --pdf myfile.lytex pdflatex myfile.tex I would send a patch, but I had a really bad experience last time I tried to make a patch. Can someone make this change? Firstly, lilypond complains that it doesn't understand this extension. lilypond-book: error: cannot determine format for: lily-book- sample.pdftex Secondly, if the extension is changed to .lytex, LaTeX complains that I'm asking to use pdf mode, but dvi mode was detected ! Package pdftex.def Error: PDF mode expected, but DVI mode detected! If, however I attempt to run pdflatex myfile.lytex on the following input file: \documentclass[a4paper]{article} \usepackage[pdftex]{graphicx} \begin{document} test % \begin{lilypond} % \relative c' { c2 a'2 \times 2/3 { f8 e d } c'2 g4 } % \end{lilypond} \end{document} pdflatex processes the file just fine, and pdf output is generated. This leads me to believe that there is some error in the lilypond- book that precludes use of pdflatex. Am I missing something? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
On Tue, Jan 05, 2010 at 10:35:07AM +0100, James Bailey wrote: > I have a question. Given this input file: > \documentclass[a4paper]{article} > \usepackage[pdftex]{graphicx} What;s the pdftex doing in there? > \begin{document} > \begin{lilypond} > \relative c' { c2 a'2 \times 2/3 { f8 e d } c'2 g4 } > \end{lilypond} > \end{document} > > Secondly, if the extension is changed to .lytex, That's what it's supposed to be. > LaTeX complains that > I'm asking to use pdf mode, but dvi mode was detected > ! Package pdftex.def Error: PDF mode expected, but DVI mode detected! > This leads me to believe that there is some error in the lilypond-book > that precludes use of pdflatex. Am I missing something? Start from the template in the docs. Does the command in the docs work with the template in the docs? It definitely worked for me at one point in time. If the docs-way of doing it works, then figure out what's different in your example. If the docs-way doesn't work, then let us know. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
lilypond-book question
I have a question. Given this input file: \documentclass[a4paper]{article} \usepackage[pdftex]{graphicx} \begin{document} \begin{lilypond} \relative c' { c2 a'2 \times 2/3 { f8 e d } c'2 g4 } \end{lilypond} \end{document} I was under the impression (according to AU 4.4), that I could do lilypond-book --pdf myfile.pdftex (a new extension for me) and get a pdf of myfile.pdf This doesn't work. Firstly, lilypond complains that it doesn't understand this extension. lilypond-book: error: cannot determine format for: lily-book- sample.pdftex Secondly, if the extension is changed to .lytex, LaTeX complains that I'm asking to use pdf mode, but dvi mode was detected ! Package pdftex.def Error: PDF mode expected, but DVI mode detected! If, however I attempt to run pdflatex myfile.lytex on the following input file: \documentclass[a4paper]{article} \usepackage[pdftex]{graphicx} \begin{document} test % \begin{lilypond} % \relative c' { c2 a'2 \times 2/3 { f8 e d } c'2 g4 } % \end{lilypond} \end{document} pdflatex processes the file just fine, and pdf output is generated. This leads me to believe that there is some error in the lilypond- book that precludes use of pdflatex. Am I missing something? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond-book question
"Edson" <[EMAIL PROTECTED]> writes: > Im a beginner in lilypond, and im using the windows version, but > when i try run lilypond-book, appears the follow message: > "AttributeError: LatexPaper instance has no attribute 'm_' ". The > same occours if i change the file extension by .tex or > .mulatex. Bellow follow the body of the file that im using: I fear that a silly bug from the unstable release has been backported to 1.4. Try the attached lilypond-book, does that work? Greetings, Jan. lilypond-book.py Description: Binary data -- Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org
Lilypond-book question
Hi! Im a beginner in lilypond, and im using the windows version, but when i try run lilypond-book, appears the follow message: "AttributeError: LatexPaper instance has no attribute 'm_' ". The same occours if i change the file extension by .tex or .mulatex. Bellow follow the body of the file that im using: \documentclass{article}\begin{document} test \begin{lilypond}\notes{a b c}\end{lilypond} end What's trouble? Thanks for attention. Edson Jr \end{document}
Re: lilypond-book question
ah, here's some more information for you: if i use: \usepackage[hmargin=2cm]{geometry} , i get the error i showed you, but it works if i instead use: \usepackage{geometry} \geometry{hmargin=2cm} , so there seems to be a problem in parsing the former form of it. thanks! -- ++ | jeff covey [EMAIL PROTECTED] http://pobox.com/~jeff.covey/ 410-869-8088 | || |ii had aproblem with linux terminal yesterday.i cant enter s a t termial on | |linux.it produce a beep sound.But there is no problem withany other key.I | |found that it was due to a setting made in .profile and i rename ithe file. | |Then the problem of 's'was over.But i cant find how to mask a letter 's'in | |.profile plz provide guidance -- freshmeat.net contributor | ++ msg00677/pgp0.pgp Description: PGP signature
Re: lilypond-book question
on Tue, Feb 05, 2002 at 11:32:22PM +0100%, Mats Bengtsson said: mats> What Python version do you use? 2.1.1+ -- ++ | jeff covey [EMAIL PROTECTED] http://pobox.com/~jeff.covey/ 410-869-8088 | || | Thenk you very much for super syte with a realy big arhive programs for | | Linux/UNIX systems!!! -- freshmeat.net contributor | ++ msg00676/pgp0.pgp Description: PGP signature
Re: lilypond-book question
> on Tue, Feb 05, 2002 at 08:00:43PM +0100%, Mats Bengtsson said: > > mats> \usepackage[hmargin=2cm]{geometry} > > that gives me this: > > lilypond-book (GNU LilyPond) 1.4.9 > Traceback (most recent call last): > File "/usr/bin/lilypond-book", line 1320, in ? > do_file(input_filename) > File "/usr/bin/lilypond-book", line 1236, in do_file > chunks = process_lilypond_blocks(my_outname, chunks) > File "/usr/bin/lilypond-book", line 929, in process_lilypond_blocks > c = schedule_lilypond_block (c) > File "/usr/bin/lilypond-book", line 861, in schedule_lilypond_block > file_body = compose_full_body (body, opts) > File "/usr/bin/lilypond-book", line 544, in compose_full_body > l = __main__.paperguru.get_linewidth() > File "/usr/bin/lilypond-book", line 217, in get_linewidth > w = self._calc_linewidth() > File "/usr/bin/lilypond-book", line 271, in _calc_linewidth > w = self.get_paperwidth() \ > TypeError: unsupported operand type(s) for - That's really strange. I just tried liliypond-book from both version 1.4.9 and 1.4.10 and the one from 1.4.9 works fine whereas there's a bug (not the same as yours, though) in 1.4.10. What Python version do you use? /Mats ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book question
on Tue, Feb 05, 2002 at 08:00:43PM +0100%, Mats Bengtsson said: mats> \usepackage[hmargin=2cm]{geometry} that gives me this: lilypond-book (GNU LilyPond) 1.4.9 Traceback (most recent call last): File "/usr/bin/lilypond-book", line 1320, in ? do_file(input_filename) File "/usr/bin/lilypond-book", line 1236, in do_file chunks = process_lilypond_blocks(my_outname, chunks) File "/usr/bin/lilypond-book", line 929, in process_lilypond_blocks c = schedule_lilypond_block (c) File "/usr/bin/lilypond-book", line 861, in schedule_lilypond_block file_body = compose_full_body (body, opts) File "/usr/bin/lilypond-book", line 544, in compose_full_body l = __main__.paperguru.get_linewidth() File "/usr/bin/lilypond-book", line 217, in get_linewidth w = self._calc_linewidth() File "/usr/bin/lilypond-book", line 271, in _calc_linewidth w = self.get_paperwidth() \ TypeError: unsupported operand type(s) for - -- ++ | jeff covey [EMAIL PROTECTED] http://pobox.com/~jeff.covey/ 410-869-8088 | || |I have a resume if you need more imformation about me that I can send if| |needed. I am also a musican and available to perform at events and benifits | |for ascii or other important events.In Amsterdam working hard. | |THANK YOU DEAN-- freshmeat.net contributor | ++ msg00674/pgp0.pgp Description: PGP signature
Re: lilypond-book question
> all 15 of bach's inventions are in mutopia now, so i'm putting them > together in a book: > > http://jeffcovey.net/music/scores/bach/inventions/complete/ > > (i'd like to add the sinfonias to this when they're done.) > > the scores are all heavily indented on the right. i've put some text > at the top of the first invention to show how much space is being > wasted. how can i convince the music that it's just as worthy as the > text? :) The problem is that you have used the package a4wide to set the text width and lilypond-book doesn't know about this package. Instead, you could use the geometry package: \usepackage[hmargin=2cm]{geometry} which lilypond-book knows how to handle (at least in the latest 1.4.x and 1.5.x versions). /Mats ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
lilypond-book question
all 15 of bach's inventions are in mutopia now, so i'm putting them together in a book: http://jeffcovey.net/music/scores/bach/inventions/complete/ (i'd like to add the sinfonias to this when they're done.) the scores are all heavily indented on the right. i've put some text at the top of the first invention to show how much space is being wasted. how can i convince the music that it's just as worthy as the text? :) thanks, -- ++ | jeff covey [EMAIL PROTECTED] http://pobox.com/~jeff.covey/ 410-869-8088 | || |i cant make the on screen display . please send me file . iam looking for | |the file for one month. or give me the address where i can get the file.| | -- freshmeat.net contributor | ++ msg00672/pgp0.pgp Description: PGP signature