Bernard,
thanks for your detailed explanation of lilypond. I played a bit with it 
and am impressed. I even found some similarities to lyx (.lyx <-> .ly, 
lyx2lyx <-> convert-ly.py), and I like that they tried to approach the 
quality of hand engraved music.
The only thing that I don't like so much and that makes integration with 
LyX difficult is the implementation of the "mixed LaTeX and LilyPond 
format" with the preprocessor lilypond-book.
I would rather like a solution where you convert your LilyPond file to 
LaTeX and then include it with \include or \input. Do you know why they 
took the present approach?

Am Sonntag, 13. Februar 2005 05:15 schrieb Bernard Hurley:

> Sorry now I am really confused! I got the fig_copy.sh script from CVS,
> but a script like that needs to know the directory it is copying from.
> So is a "copier" a Version 1.4 concept? If so I will use my kludge for
> now and wait for the next stable version.

Yes, copiers are not available in 1.3. And the copier is indeed the way to 
go for 1.4. You will have to use your existing kludge for 1.3, since we 
can't easily add the $$p parameter as Angus explained.
You can add the attached external template to your external_templates file 
and use it if you like. The advantage over ERT is that it is possible to 
view, edit and choose the .ly file  from within LyX. Of course you will 
have to adjust the ViewCommand and EditCommand to your liking. The script 
view-lilypond.sh is a very quick hack. Please examine it carefully for 
unwanted side effects if you want to use it.



Georg
Template LilyPond
        GuiName "[LilyPond: $$Basename]"
        HelpText
                A LilyPond music sheet.
                If you use this, you must run lilypond-book on your .tex file
                before it can be processed with LaTeX.
        HelpTextEnd
        FileFilter "*.ly"
        ViewCommand "/home/georg/.lyx/scripts/view-lilypond.sh $$FName"
        EditCommand "gvim $$FName"
        AutomaticProduction true
        Format LaTeX
                Product "\\lilypondfile{$$FName}"
                UpdateCommand "echo \"Nothing to do for $$FName!\""
                UpdateResult "$$FName"
        FormatEnd
        Format Ascii
                Product "[LilyPond: $$FName]"
        FormatEnd
        Format DocBook
                Product "[LilyPond: $$FName]"
        FormatEnd
        Format LinuxDoc
                Product "[LilyPond: $$FName]"
        FormatEnd
TemplateEnd

Attachment: view-lilypond.sh
Description: application/shellscript

Reply via email to