]> git.lyx.org Git - lyx.git/blob - lib/external_templates
fix bug when reading bind files
[lyx.git] / lib / external_templates
1 # Basic External Templates for LyX
2
3 Template XFig
4         GuiName "[XFig: $$Basename]"
5         HelpText
6                 An XFig figure.
7                 This template uses XFig for editing.
8         HelpTextEnd
9         InputFormat fig
10         FileFilter "*.fig"
11         EditCommand "xfig $$FName"
12         AutomaticProduction true
13         Format LaTeX
14                 Product "\\input{$$Basename.pstex_t}"
15                 UpdateFormat pstex
16                 UpdateResult "$$Basename.pstex_t"
17                 Requirement "graphicx"
18         FormatEnd
19         Format PDFLaTeX
20                 Product "\\input{$$Basename.pdftex_t}"
21                 UpdateFormat pdftex
22                 UpdateResult "$$Basename.pdftex_t"
23                 Requirement "graphicx"  
24         FormatEnd
25         Format Ascii
26                 Product "$$Contents(\"$$Basename.asc\")"
27                 UpdateFormat asciixfig
28                 UpdateResult "$$Basename.asc"
29         FormatEnd
30         Format DocBook
31                 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
32                 UpdateFormat eps
33                 UpdateResult "$$Basename.eps"
34         FormatEnd
35         Format LinuxDoc
36                 Product "[XFig: $$FName]"
37         FormatEnd
38 TemplateEnd
39
40 Template ChessDiagram
41         GuiName "[Chess: $$Basename]"
42         HelpText
43                 A chess position diagram.
44                 This template will use XBoard to edit the position.
45                 Use the 'File->Save Position' in XBoard to save 
46                 the position that you want to display.
47                 Make sure to give it a '.fen' extension
48                 and remember to type in a relative path
49                 to the LyX document location.
50                 Within XBoard, use 'Edit->Edit Position'
51                 to enable general editing of the board.
52                 You might also check out the
53                 'Options->Test legality' option, and
54                 remember to middle and right click to 
55                 insert new material in the board.
56                 In order for this to work, you have to
57                 put the bundled lyxskak.sty in a place
58                 that TeX will find it, and you will need
59                 to install the skak package from CTAN.
60         HelpTextEnd
61         InputFormat fen
62         FileFilter "*.fen"
63         EditCommand "xboard -lpf $$FName -mode EditPosition"
64         AutomaticProduction true
65         Format LaTeX
66                 Product "\\loadgame{$$FPath$$Basename}\\showboard"
67                 Requirement "chess"
68         FormatEnd
69         Format Ascii
70                 Product "$$Contents(\"$$Basename.asc\")"
71                 UpdateFormat asciichess
72                 UpdateResult "$$Basename.asc"
73         FormatEnd
74         Format DocBook
75                 Product "[Chess: $$Basename]"
76         FormatEnd
77         Format LinuxDoc
78                 Product "[Chess: $$FName]"
79         FormatEnd
80 TemplateEnd
81
82 Template Date
83         GuiName "[Date]"
84         HelpText
85                 Todays date.
86                 Read 'info date' for more information.
87         HelpTextEnd
88         InputFormat date
89         FileFilter "*"
90         AutomaticProduction true
91         Format LaTeX
92                 Product "$$Contents(\"$$Tempname\")"
93                 UpdateFormat dateout
94                 UpdateResult "$$Tempname"
95         FormatEnd
96         Format Ascii
97                 Product "$$Contents(\"$$Tempname\")"
98                 UpdateFormat dateout
99                 UpdateResult "$$Tempname"
100         FormatEnd
101         Format DocBook
102                 Product "$$Contents(\"$$Tempname\")"
103                 UpdateFormat dateout
104                 UpdateResult "$$Tempname"
105         FormatEnd
106         Format LinuxDoc
107                 Product "$$Contents(\"$$Tempname\")"
108                 UpdateFormat dateout
109                 UpdateResult "$$Tempname"
110         FormatEnd
111 TemplateEnd
112