]> git.lyx.org Git - lyx.git/blob - lib/external_templates
remove last of NO_STD_LIST stuff
[lyx.git] / lib / external_templates
1 # Basic External Templates for LyX
2
3 Template RasterImage
4         GuiName "[Bitmap: $$FName]"
5         HelpText
6                 A bitmap file.
7                 In the parameters box, you can provide optional
8                 parameters for the ImageMagick convert program.
9                 E.g., use `-border 10x10 -bordercolor black'
10                 to surround the picture with a black border 
11                 when you export to LaTeX.
12                 When you export to Ascii, you can provide a
13                 number describing how many columns the picture
14                 should expand to.
15                 This template uses Gimp for editing.
16         HelpTextEnd
17         InputFormat "*"
18         FileFilter "*.(gif|png|jpg|bmp|pbm|ppm|tga|tif|xpm|xbm)"
19         EditCommand "gimp $$FName"
20         AutomaticProduction true
21         Format LaTeX
22                 Product "\\includegraphics{$$Basename}"
23                 UpdateFormat eps
24                 UpdateResult "$$Basename.eps"
25                 Requirement "graphicx"
26         FormatEnd
27         Format PDFLaTeX
28                 Product "\\includegraphics{$$Basename}"
29                 UpdateFormat png
30                 UpdateResult "$$Basename.png"
31                 Requirement "graphicx"  
32         FormatEnd
33         Format Ascii
34                 Product "$$Contents(\"$$Basename.asc\")"
35                 UpdateFormat asciiimage
36                 UpdateResult "$$Basename.asc"
37         FormatEnd
38         Format DocBook
39                 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
40                 UpdateFormat eps
41                 UpdateResult "$$Basename.eps"
42         FormatEnd
43         Format LinuxDoc
44                 Product "[Bitmap: $$FName]"
45         FormatEnd
46 TemplateEnd
47
48 Template XFig
49         GuiName "[XFig: $$Basename]"
50         HelpText
51                 An XFig figure.
52                 In the parameters box, you can provide
53                 optional parameters for fig2dev in the
54                 case of LaTeX export. E.g., -m .69 to
55                 reduce the size.
56                 For Ascii export, you can provide a
57                 number that specifies the width of an
58                 Ascii approximation of the figure.
59                 For DocBook export, you can provide
60                 optional parameters for the ImageMagick
61                 convert script.
62                 This template uses XFig for editing.
63         HelpTextEnd
64         InputFormat fig
65         FileFilter "*.fig"
66         EditCommand "xfig $$FName"
67         AutomaticProduction true
68         Format LaTeX
69                 Product "\\input{$$Basename.pstex_t}"
70                 UpdateFormat pstex
71                 UpdateResult "$$Basename.pstex_t"
72                 Requirement "graphicx"
73         FormatEnd
74         Format PDFLaTeX
75                 Product "\\input{$$Basename.pdftex_t}"
76                 UpdateFormat pdftex
77                 UpdateResult "$$Basename.pdftex_t"
78                 Requirement "graphicx"  
79         FormatEnd
80         Format Ascii
81                 Product "$$Contents(\"$$Basename.asc\")"
82                 UpdateFormat asciixfig
83                 UpdateResult "$$Basename.asc"
84         FormatEnd
85         Format DocBook
86                 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
87                 UpdateFormat eps
88                 UpdateResult "$$Basename.eps"
89         FormatEnd
90         Format LinuxDoc
91                 Product "[XFig: $$FName]"
92         FormatEnd
93 TemplateEnd
94
95 Template ChessDiagram
96         GuiName "[Chess: $$Basename]"
97         HelpText
98                 A chess position diagram.
99                 This template will use XBoard to edit the position.
100                 Use the 'File->Save Position' in XBoard to save 
101                 the position that you want to display.
102                 Make sure to give it a '.fen' extension
103                 and remember to type in a relative path
104                 to the LyX document location.
105                 Within XBoard, use 'Edit->Edit Position'
106                 to enable general editing of the board.
107                 You might also check out the
108                 'Options->Test legality' option, and
109                 remember to middle and right click to 
110                 insert new material in the board.
111                 In order for this to work, you have to
112                 put the bundled lyxskak.sty in a place
113                 that TeX will find it, and you will need
114                 to install the skak package from CTAN.
115         HelpTextEnd
116         InputFormat fen
117         FileFilter "*.fen"
118         EditCommand "xboard -lpf $$FName -mode EditPosition"
119         AutomaticProduction true
120         Format LaTeX
121                 Product "\\loadgame{$$FPath$$Basename}\\showboard"
122                 Requirement "chess"
123         FormatEnd
124         Format Ascii
125                 Product "$$Contents(\"$$Basename.asc\")"
126                 UpdateFormat asciichess
127                 UpdateResult "$$Basename.asc"
128         FormatEnd
129         Format DocBook
130                 Product "[Chess: $$Basename]"
131         FormatEnd
132         Format LinuxDoc
133                 Product "[Chess: $$FName]"
134         FormatEnd
135 TemplateEnd
136
137 Template Date
138         GuiName "[Date]"
139         HelpText
140                 Todays date.
141                 In the parameters box, you can provide
142                 optional parameters for the date
143                 command.
144                 No parameters gives "Mon Jun 12 05:20:41 CEST 2000"
145                 Use -u to get "Mon Jun 12 03:20:41 UTC 2000"
146                 Use -I to get "2000-06-12".
147                 Use -R to get "Mon, 12 Jun 2000 05:20:41 +0200"
148                 Use +%d-%m-%Y to get "20-06-2000"
149                 Use +%T to get the time as "23:23:00"
150                 Read 'info date' for more information.
151         HelpTextEnd
152         InputFormat date
153         FileFilter "*"
154         AutomaticProduction true
155         Format LaTeX
156                 Product "$$Contents(\"$$Tempname\")"
157                 UpdateFormat dateout
158                 UpdateResult "$$Tempname"
159         FormatEnd
160         Format Ascii
161                 Product "$$Contents(\"$$Tempname\")"
162                 UpdateFormat dateout
163                 UpdateResult "$$Tempname"
164         FormatEnd
165         Format DocBook
166                 Product "$$Contents(\"$$Tempname\")"
167                 UpdateFormat dateout
168                 UpdateResult "$$Tempname"
169         FormatEnd
170         Format LinuxDoc
171                 Product "$$Contents(\"$$Tempname\")"
172                 UpdateFormat dateout
173                 UpdateResult "$$Tempname"
174         FormatEnd
175 TemplateEnd
176