Helge Hafting wrote:

Attached v.3 of the lilypond external inset.
(The patch to preferences and the script is unchanged.)

The only change is a correction to the text shown when
you select lilypond in the external inset dialog.  It documents the
fact that you need lilypond 2.9, not 2.8 to be able to use pdflatex.
Lilypond 2.6-2.8 don't work well with the --pdf option.  .eps
should be ok though.

Helge Hafting



--- /usr/local/share/lyx/external_templates     2006-08-09 12:07:31.000000000 
+0200
+++ external_templates  2006-09-09 17:51:37.000000000 +0200
@@ -33,7 +33,51 @@
                \IfFileExists{#1}{\input{#1}}{\warnNotFound{#1}}}
 PreambleDefEnd
 
-
+Template LilyPond
+       GuiName "Lilypond typeset music"
+       HelpText
+               Sheet music typeset by GNU LilyPond,
+               converted to .pdf or .eps for inclusion
+               Using .eps require at least lilypond 2.6
+               Using .pdf require at least lilypond 2.9
+       HelpTextEnd
+       InputFormat "lilypond"
+       FileFilter "*.ly"
+       AutomaticProduction true
+               Transform Rotate
+       Transform Resize
+       Transform Clip
+       Transform Extra
+       Format LaTeX
+               TransformOption Rotate RotationLatexOption
+               TransformOption Resize ResizeLatexOption
+               TransformOption Clip   ClipLatexOption
+               TransformOption Extra  ExtraOption
+               Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
+               Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
+               UpdateFormat eps
+               UpdateResult "$$AbsPath$$Basename.eps"
+               Requirement "graphicx"
+               ReferencedFile latex "$$AbsPath$$Basename.eps"
+               ReferencedFile dvi   "$$AbsPath$$Basename.eps"
+       FormatEnd
+        Format PDFLaTeX
+                TransformOption Rotate RotationLatexOption
+                TransformOption Resize ResizeLatexOption
+                TransformOption Clip   ClipLatexOption
+                TransformOption Extra  ExtraOption
+                Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
+                Product 
"\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
+                UpdateFormat pdf
+                UpdateResult "$$AbsPath$$Basename.pdf"
+                Requirement "graphicx"
+                ReferencedFile pdflatex "$$AbsPath$$Basename.pdf"
+        FormatEnd
+       Format LinuxDoc
+               Product "[LilyPond: $$FName]"
+       FormatEnd
+TemplateEnd
+                               
 Template RasterImage
        # By default, InsetExternal is displayed as a grey button
        # containing this text.

Reply via email to