Re: Python 3, was Re: ANN: Frescobaldi 2.19.0
On 24/04/2016 12:12 PM, Phil Holmes wrote: - Original Message - From: "David Kastrup" No disagreement here. At the very least it would be verification that the ones responsible for doing the GUB part of the transition are comfortable with the basic necessities. I think the only person likely to be able to upgrade GUB to python 2.7 2 would be Masamichi. -- Phil Holmes A while back I pushed a branch with python 2.6 based on Jan's upstream, but it got stalled [1]. While not the latest, 2.6 does have a lot of 2/3 compatibility helpers included (from __future__ import ...). I outlined an update plan [2] which obviously "felt in the water" as the Germans say. Maybe there is something to base future efforts upon. [1] https://github.com/gperciva/gub/pull/6 [2] https://lists.gnu.org/archive/html/lilypond-devel/2014-03/msg00033.html -- Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: GUILE error when running lilypond-book
On 25/04/2016 4:12 PM, David Kastrup wrote: Matt writes: Hi, when running lilypond-book I get the error: lilypond_test.lytex:16:44: error: GUILE signaled an error for the expressionbeginning here \once \override BreathingSign.stencil = # ly:breathing-sign::divisio-maior Unbound variable: ly:breathing-sign::divisio-maior When running the score separately in lilypond I don't get the error. So the score seems to be ok, but lilypond-book has issues with it. It looks like that the macro definition divisioMajor makes issue: divisioMaior = { \once \override BreathingSign.stencil = #ly:breathing-sign::divisio-maior \once \override BreathingSign.Y-offset = #0 \breathe } I'm running lilypond 2.18.2. Any hints would be appreciated. Are you using -dsafe ? That only enables a subset of C++-defined commands which is rather spotty (to say the least). The -dsafe argument is likely the reason. If this is compiled by LyX as the provided sample document indicates, then the default configuration will use the -dsafe argument. The call to lilypond-book (and lilypond) can be configured in LyX' converters config dialog, and the -dsafe argument removed. -- Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: include problem with lilypond-book
On 02/08/2014 11:40 AM, Br. Samuel Springuel wrote: I just tested the work around noted in the issue tracker and want to add that said work around ignores the relative includes option in the lilypond files, i.e., "#(ly:set-option 'relative-includes #t)" at the beginning of the file. Thus, to make it work with my example where the lilypond files are stored in a subdirectory (Scores) of the main project I had to specify that subdirectory for the --include option. I.e. This command couldn't find the included file: $ lilypond-book --output=Main-out --lily-output-dir=Main-lily --include=../ Main.lytex This one, on the other hand, could: $ lilypond-book --output=Main-out --lily-output-dir=Main-lily --include=../Scores/ Main.lytex Yes, I would expect that: if Scores/ is the directory where include files are, then that is where lilypond needs to be pointed to. As it happens, the --include=../ line given as example works as is with Hartmut's use case, but in your use case the include files are one level deeper. I'll have a look at #(ly:set-option 'relative-includes #t); if it's really ignored I suspect that it's happening at lilypond's level rather than being a lilypond-book specific problem. Thanks for testing and regards, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: include problem with lilypond-book
On 18/07/2014 4:56 PM, Julien Rioux wrote: On 18/07/2014 4:21 PM, Br. Samuel Springuel wrote: I'm running LilyPond 2.18.2 on a Mac OS 10.8.5 and reported the same error back in June: http://lists.gnu.org/archive/html/lilypond-user/2014-06/msg00610.html The problem (at least for me) seems to occur only when the --output or --lily-output-dir options are used for lilypond-book. Take those options away and lilypond-book finds the include files just fine. Use one or the other (or both) and it complains. Using your MWE, I get the same results. Another list user (James) was able to replicate the issue with my MWE, but no solution was proposed. I'd be very interested in any solution. Looks like a bug in lilypond-book. I'm a bit surprised that it is reported to work in 2.14. Thanks to both of you for the reports, the bug squad should take note (in CC). Finally here's an issue for this: https://code.google.com/p/lilypond/issues/detail?id=4046 -- Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: include problem with lilypond-book
On 18/07/2014 4:21 PM, Br. Samuel Springuel wrote: I'm running LilyPond 2.18.2 on a Mac OS 10.8.5 and reported the same error back in June: http://lists.gnu.org/archive/html/lilypond-user/2014-06/msg00610.html The problem (at least for me) seems to occur only when the --output or --lily-output-dir options are used for lilypond-book. Take those options away and lilypond-book finds the include files just fine. Use one or the other (or both) and it complains. Using your MWE, I get the same results. Another list user (James) was able to replicate the issue with my MWE, but no solution was proposed. I'd be very interested in any solution. Looks like a bug in lilypond-book. I'm a bit surprised that it is reported to work in 2.14. Thanks to both of you for the reports, the bug squad should take note (in CC). Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Bibliography in LilyPond-Book
On 01/04/2014 9:34 PM, Conor Cook wrote: Dear All, I am having a heck of a time getting a bibliography to display in a LilyPond-Book document. I have a separate .bib file, and the .tex file, but they are not finding each other. I am not satisfied that I’ve found a good explanation of how to implement the bibliography, so I am including both files. The normal sequence would be something like lilypond-book Bibliotry.lytex pdflatex Bibliotry.tex bibtex Bibliotry.aux pdflatex Bibliotry.tex pdflatex Bibliotry.tex Do this on the command line, or teach the editor you are using to do it for you, and you should be all set. Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: LilyPond-Book on Windows
On 03/04/2014 9:48 AM, Phil Holmes wrote: - Original Message - From: "David Kastrup" To: "Phil Holmes" Cc: "Br. Samuel Springuel" ; Sent: Thursday, April 03, 2014 2:36 PM Subject: Re: LilyPond-Book on Windows Instead of trying to find something nicer, like os.exit or sys.exit or whatever, I think it would make more sense first to move to version 2.6 (which probably means updating to Jan's repository and/or merging it into Graham's) and see how we fare there. It's quite conceivable that blunders like that are fixed in later versions. It would only need Graham's repo to be updated: I pull from there. For any updates to Gub or -extra, only Graham's repo is used. However, I have no idea how the update would be performed. Clicking "Merge pull request" here for a start: https://github.com/gperciva/gub/pull/6 -- Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Embeddable MIDI
Hi, On 02/12/2013 9:17 PM, Anthony wrote: Invoking lilypond-book allows me to generate HTML with lilypond tags into HTML with PNG images. I've got that bit down. But is there a way to embed the MIDI into the document? Using \midi with generate the midi file but it doesn't embed it into the HTML document. There isn't support to embed the midi file, as far as I know. But it sounds like a good idea to have that option. Also, on a less important matter, is there a way to change where and what is generated? Meaning, I only need PNG images embedded into HTML. But I don't need eps, tex, texi, ly, ect. Some of these are needed by various output formats. It does seem odd that .tex and .texi files are generated for an HTML doc, though. Did you check the command-line arguments to lilypond-book? You can tell it how to call lilypond and probably avoid generating the unnecessary files. Each lilypond snippet seems to go into a directory XX. Could I change this and put them all into the same directory? You could do this yourself and change all the hyperlinks to the new locations (possibly with a script). Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Citing Lilypond in a paper?
On 27/10/2013 10:58 PM, ryanmichaelmcclure wrote: Hi Mark, Thank you for your response. I have a few quick questions about this quickly: Who should I put as the creator of the software at the beginning? Would this be the way I should do it, in your opinion? CREATOR INFORMATION (2013). Lilypond (Version 2.17.29) [Software]. Available from http://lilypond.org/download.html Another approach would be citing a conference proceeding where LilyPond was introduced, such as (from http://lilypond.org/publications.html) Han Wen Nienhuys and Jan Nieuwenhuizen. LilyPond, a system for automated music engraving. In Colloquium on Musical Informatics (XIV CIM 2003), May 2003. Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Images from Liedboek with attribution
On 12/06/2013 2:27 PM, James wrote: Nice. But where are the images of the score? ;) http://www.liedboek.nl/voorbeelden/proefbundel It looks really nice :) -- Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: latex with PNG images using lilypond-book?
On 30/04/2013 5:56 AM, Francisco Vila wrote: In theory yes, but does this make lilypond-book generate a myfile.tex that includes the PNG images? I think not. The generated .tex file does not specify the file extension for the imported graphic files, so that it is up to (pdf)latex to pick the preferred format. -- Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: latex with PNG images using lilypond-book?
On 29/04/2013 12:07 PM, Francisco Vila wrote: Hello. I am trying to create an e-book in ePub format from a latex document via lilypond-book and pandoc. EPubs can not have images in PDF format, so I'd like to prepare a latex file with PNG images. ... I imagine that PNG images are created for HTML, but what about PNG for latex? Does anybody know how to? Thank you, To accomplish what you want, I think passing your own lilypond flags through lilypond-book should work, for example: lilypond-book --process='lilypond --formats=png -dbackend=eps' \ myfile.lytex Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: LilyDev
On 16/04/2013 5:55 AM, Wim van Dommelen wrote: Hi, I'm trying to download LilyDev, the latest pointer I could find was: http://www.philholmes.net/lilypond/LilyDev/ubuntu-LilyDev-remix-2.6.iso from the v.2.17.15 Contributor's Guide, but that pointer starts to download and stalls for hours after 16.1 MB done. Is there something wrong with that copy, may be also an alternative location? Regards, Wim. I downloaded it successfully no later than yesterday. Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: all invisible bar lines reading as break in lilypond-book
On 21/03/2013 1:33 AM, Timothy Heckenlively wrote: I recently upgraded to OSX Mountain Lion and suddenly encountered a technical problem with lilypond-book. All of the invisible bar lines ( \bar "") in my .lytex file are suddenly processing as full breaks. Has anyone heard of this bug or of a way to correct it? Many thanks for any insight you can offer. It looks like the same symptoms as http://code.google.com/p/lilypond/issues/detail?id=3136 though to be sure you might want to send a minimal example input file reproducing the problem. Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange output with lilypond book
On 18/01/2013 4:56 PM, Stefan Thomas wrote: Dear community, when I compile the following file with latex and lilypondbook, it looks quite strange. There's is a break after every bar of the lilypond example. I think it has to do with the input-command. Here is the code of the latex-file: \documentclass[a4paper,12pt]{article} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[paper=a4paper,left=20mm,right=20mm,top=25mm,bottom=25mm]{geometry} \input{./semester.tex} \author{Myself} \title{Examination \Semester } \date{ \Datummontag } \begin{document} \maketitle \begin{flushright} Name, Vorname: \end{flushright} \textbf{First exercise:} \begin{lilypond} \relative { c d e f g2 e g 4 f e d e2 c } \end{lilypond} \end{document} And this is the code of the file semester.tex \newcommand{\Semester}{Wintersemester 2012/2013} \newcommand{\Datummontag}{31.1.2012} For compilation I use the following code: #!/bin/bash TEMP_DIR=temp CURRENT_DIR=$(pwd) lilypond-book --pdf \ --include="$CURRENT_DIR"\ --include=/home/stefan/partituren/lilyponds/vorlagen/\ --output="$TEMP_DIR" \ "$1".tex && \ (cd "$TEMP_DIR" && \ pdflatex "$1".tex && \ mv "$1".pdf ..) && \ rm -rf "$TEMP_DIR" ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Indeed, there is a bug here: the automatic line width detection fails because of the included file. This detection is done by copying the latex preamble to a temporary file in a temp dir, running latex on this file, and parsing some output about the line width from latex. When we compile from the temp dir, any file \input'ed or \include'd within the preamble should also be made available, otherwise latex will fail. Cheers, Julien -- Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange output with lilypond book
On 20/01/2013 4:35 AM, Stefan Thomas wrote: Dear Julien, the problem is the input command in latex. Without it (when I define the commands in the document itself), the pdf looks good but if the file is included, every bar of the music uses a single line. I would like to avoid it an I would like to use the input command in latex. Indeed, the automatic line width detection fails because of the included file. I'll forward your first message to bug-lilypond. As a workaround you can specify the line width as option to the lilypond snippet: \begin{lilypond}[line-width=494\pt] etc. \end{lilypond} Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
On 20/01/2013 6:12 PM, Henning Hraban Ramm wrote: I thought LilyPond used to write single EPS for every line when using lilypond-book. (I’d like to do the page breaking with TeX.) Do I mis-remember? I couldn’t find an appropriate command line switch. I think you accomplish that by adding this to your snippet: \include "lilypond-book-preamble.ly" Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange output with lilypond book
On 19/01/2013 1:17 PM, Stefan Thomas wrote: Dear Julien, unfortunately the blank line (do Yoy mean "\\"?) doesn't help! I mean a blank, empty line. %---snippet--- \begin{flushright} Name, Vorname: \end{flushright} \textbf{First exercise:} \begin{lilypond} \relative { c d e f g2 e g 4 f e d e2 c } \end{lilypond} %---snippet--- Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange output with lilypond book
On 18/01/2013 4:56 PM, Stefan Thomas wrote: Dear community, when I compile the following file with latex and lilypondbook, it looks quite strange. There's is a break after every bar of the lilypond example. I think it has to do with the input-command. Here is the code of the latex-file: \documentclass[a4paper,12pt]{article} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[paper=a4paper,left=20mm,right=20mm,top=25mm,bottom=25mm]{geometry} \input{./semester.tex} \author{Myself} \title{Examination \Semester } \date{ \Datummontag } \begin{document} \maketitle \begin{flushright} Name, Vorname: \end{flushright} It would help to insert a paragraph break (blank line) here... \textbf{First exercise:} and/or here. \begin{lilypond} \relative { c d e f g2 e g 4 f e d e2 c } \end{lilypond} \end{document} Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book include *.ly, cannot find file
On 08/01/2013 11:50 AM, Cognac Natanael wrote: Thank you very much for your answer Olivier, There is no spaces or fancy character in my directories or files names. And I think I’ve tried l’option that you've mentionned, and I tried with the option you’ve mentionned : lilypond-book --include=my-lilypond-repertory/ But after some new tests, I found something that works. This si how is the directory I’m working in : lilypond/ config.ly score.ly tuneA/ tuneA.ly tuneB/ tuneB.ly At the beginning and the end of tuneA.ly and tuneB.ly, I have those instructions : \include "../config.ly" \include "../score.ly" If you tell lilypond-book (using --include=lilypond) to look in the lilypond directory for the file ../config.ly, it can't find this file because it doesn't exist (because of .. you end up in the parent directory). It might be sufficient to specify only one subdirectory e.g. --include=lilypond/tuneA (and not all subdirectories one-by-one) since then it can find the file at lilypond/tuneA/../config.ly Makes sense? Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book include *.ly, cannot find file
On 08/01/2013 4:28 AM, Cognac Natanael wrote: Hello Everybody, I’m using : \include "../config.inc.ly" in the beginning of all my lilypond scores, and : \include "../new.score.ly" at the end. It works smoothly with lilypond. But now, I’m trying to make a book with lilypond-book & latex and include the scores into it, and I've got this message when I run : lilypond-book --include=lilypond --output=out --pdf lilybook.lytex lilypond/chapeau-mr-belzebuth/chapeau-mr-belzebuth.ly:1:9: error: cannot find file: `../config.inc.ly' (search path: `1d:/usr/share/lilypond/2.16.1/fonts/svg/:/usr/share/lilypond/2.16.1/fonts/type1/:/usr/share/lilypond/2.16.1/fonts/otf/:/usr/share/lilypond/2.16.1/scm:/usr/share/lilypond/2.16.1/ps:/usr/share/lilypond/2.16.1/ly:.:..:lilypond') The only way to make it work is to change all the include to an absolute path (\include "/home/aureliano/bez/lilypond/config.inc.ly"), which is not a solution (not maintanable). You might want to try using relative-includes, either by activating this option in your lilypond files: http://www.lilypond.org/doc/v2.16/Documentation/notation/including-lilypond-files or activating this option from the command line: http://www.lilypond.org/doc/v2.16/Documentation/usage/command_002dline-usage#advanced-command-line-options-for-lilypond When running lilypond-book, you can pass command-line options to lilypond by specifying the --process: http://www.lilypond.org/doc/v2.16/Documentation/usage/invoking-lilypond_002dbook Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond-book on Windows 2.16.1
On 04/01/2013 4:30 PM, Phil Holmes wrote: Thanks for testing this. 2.16.2 is currently uploading and the stable build (which you have actually already downloaded from my website) should be on lilypond.org tomorrow. -- Phil Holmes Thanks for tackling this, Phil, and thanks to those who ran tests. BTW, should the backported patches be marked fixed_2_16_2 on the issue tracker, as David did for 2_16_x before? -- Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Using lilypond-book on Win7 x64
On 02/01/2013 5:03 PM, Olivier Biot wrote: Dear all, I can't get lilypond-book.py to work. I added the LilyPond bin directory to %PATH%: C:\Program Files (x86)\LilyPond\usr\bin The PATH also contains a working LaTeX (proTeXt): C:\Program Files\MiKTeX 2.9\miktex\bin\x64\ When enabling verbose mode in lilypond-book.py the following errors are displayed at the end of lilypond-book.py, I can't get it to work: Traceback (most recent call last): File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line 766, in ? main () File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line 689, in main files = do_options () File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line 681, in do_options exit (2) File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line 114, in exit raise Exception (_ ('Exiting (%d)...') % i) Exception: Exiting (2)... Best regards, Olivier That looks like this bug: http://code.google.com/p/lilypond/issues/detail?id=3052 You could see if you can get around it by undoing the changes to the registry that is described here: http://code.google.com/p/lilypond/issues/detail?id=1455 Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond-book and TeXshop on Mac: Newbie questions
On 30/04/2012 5:13 AM, Dona Mommsen wrote: Just one more thing I found out: The engine(s) cannot handle special characters in the path names, even when they do not appear in a relative path. I had a subfolder ./Exemples with the Lilypond files, but the path further up contained french special characters, so I ran into «file not found» troubles. [...] Have a great time, Dona P.S: I'd like to apologize for the initial flood of messages, it actually took several hours for my first post to get through, so I kept trying… Maybe adding a little waring on the mailing list website would be helpful, like: «first posts may take longer because they are moderated» Please submit your findings as individual requests (the first is a bug, the second an enhancement request) to bug-lilyp...@gnu.org Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Possible regression in lilypond-book: including a file in a parent directory
Jakub Pavlík gmail.com> writes: > I've found a serious difference in behaviour between lilypond-book 2.12.3 and 2.15.34: Thanks, I've added it here: http://code.google.com/p/lilypond/issues/detail?id=2423 Regards, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Build error. MergeFonts: Can't find font: feta11.pfb
On 06/03/2012 4:03 PM, Nils wrote: Hello, The system is Archlinux and I'm building from AUR with this small script. It does nothing special: https://aur.archlinux.org/packages/li/lilypond-git/PKGBUILD The git version does not build on my 64bit system anymore, however it does build on my 32bit laptop. Both systems are arch linux with the same dependency versions, at least as close as possible you can get with 32/64 bit differences. I tried a few weeks ago and it was the same. I am not sure about the real error since the build process is so insanely verbose, especially in the font generation process. This is at least the symptom and the only thing in the log with "error", except the file error.something Converting PostScript graphics to Type 1 font programs... Cannot open /var/abs/local/yaourtbuild/lilypond-git/src/lilypond-build/mf/out/feta11.pfb The requested file, feta11.pfb, does not exist MergeFonts: Can't find font: feta11.pfb Called from... emmentaler-11.pe: line 17 make[1]: *** [out/emmentaler-11.svg] Error 1 make[1]: *** Waiting for unfinished jobs Additional information: No *11.pfb is existent. But all other font sizes.pfb were generated correctly. Nils If you type make again multiple times, do you see the same problem or does the build eventually complete? What's your version of make? Regards, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: ubuntu lyx lilypond latex
On 13/09/2011 10:38 PM, Pablo Zumarán wrote: Thank you! I've got it running now! There's only a little snag, though. Some times, the preview doesn't work; it just shows the code in the default document font (not the code font). However, all I have to do is select Tools>Reconfigure again and restart. It's not much bother, and I wouldn't have mention it if you hadn't asked for feedback some time ago. Thanks again! Julien Rioux-2 wrote: On 13/09/2011 7:43 PM, Josiah Boothby wrote: When I experimented with this, it seemed that LyX required a sufficiently recent minimum version of Lilypond. If the version of Ubuntu you're using has an outdated version of Lilypond, LyX won't use it. Make sure you have lilypond version 2.14.x or greater as well as Lyx 2.0.x. --Josiah That's right, you will need version 2.14 of lilypond. Once you have it installed, run LyX and select the menu Tools> Reconfigure, then restart LyX. Also have a look at the example file lilypond.lyx in the menu File> Open, click the Examples button, and you will see the file lilypond.lyx among other example files. Open it and see. Do File> Save as... and then do some modifications if you would like. Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user You won't need to do Tools>Reconfigure each time. This is only when you install a new external tool, and you want LyX to detect it. As in: after installing a newer version of lilypond. When playing around with lilypond in LyX, I also sometimes got previews showing the code in the document font. This occurred each time I had made a mistake in the lilypond code. The bad code is then not replaced by an image, since lilypond failed to produce any image. Instead the code is interpreted as text by latex. I hope it is not too much of a bother. I though we were already catching lilypond errors and interrupting the preview process in such case, but it seems not. Anyway, good luck with your book project. Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: ubuntu lyx lilypond latex
On 13/09/2011 7:43 PM, Josiah Boothby wrote: When I experimented with this, it seemed that LyX required a sufficiently recent minimum version of Lilypond. If the version of Ubuntu you're using has an outdated version of Lilypond, LyX won't use it. Make sure you have lilypond version 2.14.x or greater as well as Lyx 2.0.x. --Josiah That's right, you will need version 2.14 of lilypond. Once you have it installed, run LyX and select the menu Tools > Reconfigure, then restart LyX. Also have a look at the example file lilypond.lyx in the menu File > Open, click the Examples button, and you will see the file lilypond.lyx among other example files. Open it and see. Do File > Save as... and then do some modifications if you would like. Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lyx usage [WAS: Re: lilypond-book download]
On 31/08/2011 3:00 AM, Pablo Zumarán wrote: Thank you very much for the tip! Now I can see the music on LyX and view the pdf file. This is exactly the sort of program I was looking for, and now I can get down to work on my book. Who must I thank? Federico Bruni-5 wrote: Il 30/08/2011 23:42, Pablo Zumarán ha scritto: Thank you very much for that tip. Following your advice, I've installed Lyx in my Ubuntu. In the included documentation, I've found only one reference to Lilypond (to use Insert>File>External Material>Lilypond file). When I do this (ie, insert a .ly file) all I get is a field saying "Lilypond typeset music". Then, when I do Insert>Custom Insets>Lilypond, I get an inset where I can type in lilypond code. BUT I haven't been able to see the actual music, nor to export the LyX file as a pdf. If it's not asking too much, how do you do that? Click on the first icon in the icon bar (the two eyes) or type "Ctrl + R". You should see the PDF file in your external pdf viewer. Otherwise you can see the output inside Lyx, if you enable the instant preview: http://wiki.lyx.org/LyX/InstantPreview HTH, Federico PS (just a memo for me) The custom insets for Lilypond must be enabled in Document>Settings>Modules (add lilypond book). The instant preview doesn't show the image generated by the code in the inset, you can see it only in the external pdf. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Glad you like it. Enjoy! There's a example file lilypond.lyx included in the LyX installation. Please have a look there for a description of usage, and perhaps some inspiration. Also, see the LyX tutorial from the help menu for a general introduction to LyX philosophy and usage. By the way, to any users of LyX together with lilypond-book, please provide your feedback on how to improve the support. I do not use the module myself, but would work together with you if you bring good, valid improvement ideas. Drop an email to the LyX user list, lyx-us...@lists.lyx.org Best regards, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyx 2.0 Beta 1, LilyPond OS X, MacTeX etc. - no lilypond integration
On 03/12/2010 12:22 PM, Henry Flurry wrote: My guess is that either: - LyX can't find where I put LilyPond, and I need to set some shell variables or run a script or move the LilyPond app - I need a different installation of LilyPond that goes directly into the bowels of Unix. Hi, The first guess looks like the correct diagnostic, or at least that's what I would guess, too. You can verify this: In LyX, under Tools > Preferences > File Handling > File formats, there should at least one entry of Lilypond and one of Lilypond-Book. If those are missing then LyX did not find your lilypond installation or it did not find a recent enough version. (2.13.39 is recent enough, but maybe another installation?) So the way forward to solve this is to 1) Make sure that the latest version of lilypond-book is the first occurrence of lilypond found in your global PATH variable, or (alternatively) in the PATH prefix that you set in the LyX settings under Tools > Preferences > Paths. 2) Reconfigure LyX (Tools > Reconfigure) and restart LyX If the automatic detection does not work, you could a) Run LyX from a terminal window, redo step 2) above and glimpse at the output on the terminal window for any error messages regarding the detection of your lilypond installation to try to understand why it fails. b) Set up the converters manually as described earlier in the thread. Best, Julien ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: What setup for a Pedagogy Book?
On 21/11/2010 12:19 PM, Damian leGassick wrote: 2.13.39 yes, I restarted LyX but I still can't view it in any format except LyXHTML should I enter the lilypond-book converters manually? Damian Hi Damian, So, it sounds like LyX is not detecting your lilypond installation. This is a bug. Can you please let me know your system and which installer did you use for LyX? Also very useful would be if you can capture the output of the LyX's configuration step. To do this you would start lyx from a terminal, click the "Tools > reconfigure" menu, then copy&paste what you get in the terminal window. Howver, I don't know how to do this on a MS Windows OS. To set up the converters manually: In Tools > Preferences > File Handling In File Formats Click New, then fill the following: Format: Lilypond book (LaTeX) Document format: yes Vector graphics format: no Short Name: lilypond-book Extension: lytex In Converters Select these: From format: Lilypond book (LaTeX) To format: LaTeX (plain) Converter: lilypond-book --safe --lily-output-dir=ly-eps $$i Click Add Then select these: From format: Lilypond book (LaTeX) To format: LaTeX (pdflatex) Converter: lilypond-book --safe --pdf --latex-program=pdflatex --lily-output-dir=ly-pdf $$i (all on one line; line-wrappings appear due to email client) Click Add -- Julien ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: What setup for a Pedagogy Book?
On 21/11/2010 11:45 AM, Damian leGassick wrote: Hi Julien lilypond-book is in my path I see no convertors for lilypond or lilypond-book in preferences/file handling/convertors maybe this is my problem? Damian On 19 Nov 2010, at 17:14, Julien Rioux wrote: On 19/11/2010 5:26 AM, Damian leGassick wrote: lyx is also telling me (modules) that i can't enable lilypond-book because some packages are unavailable - which packages are those? Sorry I just realised that my previous message wasn't useful in understanding the error. Is "lilypond-book" in your PATH? It must be found by LyX at configure time. Could you please make sure it is in your PATH, reconfigure LyX (Tools> reconfigure), restart LyX and try again? To specify your PATH either modify the environment variable or the PATH prefix in LyX Tools> Preferences> Paths Let us know how this goes! Thanks, Regards, Julien ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user What's the output of: lilypond-book --version Also, did you restart LyX after running reconfigure? -- Julien ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: What setup for a Pedagogy Book?
On 19/11/2010 5:26 AM, Damian leGassick wrote: lyx is also telling me (modules) that i can't enable lilypond-book because some packages are unavailable - which packages are those? Sorry I just realised that my previous message wasn't useful in understanding the error. Is "lilypond-book" in your PATH? It must be found by LyX at configure time. Could you please make sure it is in your PATH, reconfigure LyX (Tools > reconfigure), restart LyX and try again? To specify your PATH either modify the environment variable or the PATH prefix in LyX Tools > Preferences > Paths Let us know how this goes! Thanks, Regards, Julien ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: What setup for a Pedagogy Book?
On 19/11/2010 5:26 AM, Damian leGassick wrote: has anyone got a link for the lilypond.lyx file - i can't see it Here's the beta version of the file. Where did you download your copy? Did you download the .dmg file for Mac? lyx is also telling me (modules) that i can't enable lilypond-book because some packages are unavailable - which packages are those? these bugs have already been reported: http://www.lyx.org/trac/ticket/7044 http://www.lyx.org/trac/ticket/7045 We'll fix those soon! Please let us know how it goes! Thanks, Julien lilypond.lyx Description: application/lyx ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: What setup for a Pedagogy Book?
On 13/11/2010 3:08 PM, Bernardo Barros wrote: How about Lyx and Lilypond integration? How is it going? The first beta version of LyX 2.0 is out since last week. New in this version is support for Lilypond-book (version 2.13 or above) backend: http://wiki.lyx.org/LyX/NewInLyX20#toc24 Source code tarballs can be found at ftp://ftp.lyx.org/pub/lyx/devel/ and binaries should follow soon. (some linux binaries are available already) To get started with LyX and Lilypond, look for the sample file lilypond.lyx in the examples directory. The LyX projects would very much welcome feedback from lilypond users to improve support before the final release. Regards, Julien ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: safe mode
On 21/09/2010 5:36 PM, Graham Percival wrote: I think this is a sufficiently esoteric request Well, seeing that such a feature has made it into lilypond, there is some use-case for it. Is the maintainer of lilypond-book reading this list, and/or is there some other channel by which I can communicate a feature request? Kind regards, Julien ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: safe mode
On 21/09/2010 5:36 PM, Graham Percival wrote: On Tue, Sep 21, 2010 at 04:49:08PM -0400, Julien Rioux wrote: One can run lilypond with the --safe switch (or, in recent versions, -dsafe) to avoid a security risk when compiling .ly files. Is there an equivalent switch for lilypond-book? Other than using --process (which you did already), no. I think this is a sufficiently esoteric request that anybody wanting to do it could just use --process. Cheers, - Graham But if you have a look at the output, using --process does not work. Possibly because lilypond-book itself relies on some scheme code. (sorry I am not familiar with the code) Thanks again, Julien ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
safe mode
Dear list, One can run lilypond with the --safe switch (or, in recent versions, -dsafe) to avoid a security risk when compiling .ly files. Is there an equivalent switch for lilypond-book? I'll post below a simple example. Thanks, Julien --- $ cat docu.lytex \documentclass{article} \begin{document} \begin{lilypond} {c' d' e'} \end{lilypond} \end{document} $ lilypond-book --process="lilypond -dsafe -dbackend=eps" docu.lytex lilypond-book (GNU LilyPond) 2.12.3 Reading docu.lytex... Running latex...This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) restricted \write18 enabled. entering extended mode (/tmp/tmpgwVO1K.tex LaTeX2e <2009/09/24> Babel and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, french, basque, ngerman, german, german-x-2009-06-19, ngerman-x-200 9-06-19, ukenglish, loaded. (/usr/share/texmf-texlive/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texmf-texlive/tex/latex/base/size10.clo)) No file tmpgwVO1K.aux. textwidth=345.0pt columnsep=10.0pt (./tmpgwVO1K.aux) ) No pages of output. Transcript written on tmpgwVO1K.log. Dissecting... Writing snippets... Processing... Running lilypond...GNU LilyPond 2.12.3 Processing `/scratch/examples/Test/snippet-map--1168004333.ly' Parsing... /scratch/examples/Test/snippet-map--1168004333.ly:4:1: error: GUILE signaled an error for the expression beginning here # (ly:add-file-name-alist '(("d6/lily-79fd5fcc.ly" . "docu.lytex") Unbound variable: ly:add-file-name-alist /scratch/examples/Test/snippet-map--1168004333.ly:0: warning: no \version statement found, please add \version "2.12.3" for future compatibility Processing `/scratch/examples/Test/d6/lily-79fd5fcc.ly' Parsing... /scratch/examples/Test/d6/lily-79fd5fcc.ly:3:9: error: include files are not allowed in safe mode \include "lilypond-book-preamble.ly" /scratch/examples/Test/d6/lily-79fd5fcc.ly:13:3: error: GUILE signaled an error for the expression beginning here # (define dump-extents #t) Wrong type argument in position 1: #40) (column . 7) (filename . "/usr/share/lilypond/2.12.3/ly/music-functions-init.ly"))> /scratch/examples/Test/d6/lily-79fd5fcc.ly:17:22: error: GUILE signaled an error for the expression beginning here force-assignment = # "" Wrong type argument in position 1: #40) (column . 7) (filename . "/usr/share/lilypond/2.12.3/ly/music-functions-init.ly"))> /scratch/examples/Test/d6/lily-79fd5fcc.ly:18:16: error: GUILE signaled an error for the expression beginning here line-width = # (- line-width (* mm 3.00)) Wrong type argument in position 1: #40) (column . 7) (filename . "/usr/share/lilypond/2.12.3/ly/music-functions-init.ly"))> /scratch/examples/Test/d6/lily-79fd5fcc.ly:0: warning: no \version statement found, please add \version "2.12.3" for future compatibility Interpreting music... Preprocessing graphical objects.../usr/share/lilypond/2.12.3/scm/titling.scm:9:34: In procedure ly:paper-get-number in expression (ly:paper-get-number layout (quote line-width)): /usr/share/lilypond/2.12.3/scm/titling.scm:9:34: Wrong type (expecting real number): # command failed: lilypond -dsafe -dbackend=eps -I "/scratch/examples/Test" --formats=eps -deps-box-padding=3.00 -dread-file-list -dno-strip-output-dir "/scratch/examples/Test/snippet-names--1168004333.ly" Child returned 1 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user