]> git.lyx.org Git - lyx.git/blob - lib/xtemplates/lilypond.xtemplate
Provide proper fallback if a bibliography processor is not found
[lyx.git] / lib / xtemplates / lilypond.xtemplate
1 #
2 # LilyPond External Template
3 #
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6 #
7 # author Asger Alstrup Nielsen
8 # author Angus Leeming
9 # author Johnathan Burchill
10 #
11 # Full author contact details are available in file CREDITS.
12
13
14 Template LilyPond
15         GuiName "Lilypond typeset music"
16         HelpText
17                 Sheet music typeset by GNU LilyPond,
18                 converted to .pdf or .eps for inclusion
19                 Using .eps requires at least lilypond 2.6
20                 Using .pdf requires at least lilypond 2.9
21         HelpTextEnd
22         InputFormat "lilypond"
23         FileFilter "*.ly"
24         AutomaticProduction true
25         Transform Rotate
26         Transform Resize
27         Transform Clip
28         Transform Extra
29         Preview InstantPreview
30         Format LaTeX
31                 TransformOption Rotate RotationLatexOption
32                 TransformOption Resize ResizeLatexOption
33                 TransformOption Clip   ClipLatexOption
34                 TransformOption Extra  ExtraOption
35                 Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
36                 Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
37                 UpdateFormat eps
38                 UpdateResult "$$AbsPath$$Basename.eps"
39                 Requirement "graphicx"
40                 ReferencedFile latex "$$AbsPath$$Basename.eps"
41                 ReferencedFile dvi   "$$AbsPath$$Basename.eps"
42         FormatEnd
43         Format PDFLaTeX
44                 TransformOption Rotate RotationLatexOption
45                 TransformOption Resize ResizeLatexOption
46                 TransformOption Clip   ClipLatexOption
47                 TransformOption Extra  ExtraOption
48                 Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
49                 Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
50                 UpdateFormat pdf6
51                 UpdateResult "$$AbsPath$$Basename.pdf"
52                 Requirement "graphicx"
53                 ReferencedFile pdflatex "$$AbsPath$$Basename.pdf"
54         FormatEnd
55         Format Ascii
56                 Product "[LilyPond: $$FName]"
57         FormatEnd
58         Format DocBook
59                 Product "[LilyPond: $$FName]"
60         FormatEnd
61         Format XHTML
62                 Product "<img src=\"$$AbsOrRelPathMaster$$Basename.png\" />"
63                 UpdateFormat png
64                 UpdateResult "$$AbsPath$$Basename.png"
65                 ReferencedFile xhtml "$$AbsPath$$Basename.png"
66         FormatEnd
67 TemplateEnd
68