1 # Basic External Templates for LyX
4 GuiName "[Bitmap: $$FName]"
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
15 This template uses Gimp for editing.
18 FileFilter "*.(gif|png|jpg|bmp|pbm|ppm|tga|tif|xpm|xbm)"
19 EditCommand "gimp $$FName"
20 AutomaticProduction true
22 Product "\\includegraphics{$$Basename}"
24 UpdateResult "$$Basename.eps"
25 Requirement "graphicx"
28 Product "\\includegraphics{$$Basename}"
30 UpdateResult "$$Basename.png"
31 Requirement "graphicx"
34 Product "$$Contents(\"$$Basename.asc\")"
35 UpdateFormat asciiimage
36 UpdateResult "$$Basename.asc"
39 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
41 UpdateResult "$$Basename.eps"
44 Product "[Bitmap: $$FName]"
49 GuiName "[XFig: $$Basename]"
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
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
62 This template uses XFig for editing.
66 EditCommand "xfig $$FName"
67 AutomaticProduction true
69 Product "\\input{$$Basename.pstex_t}"
71 UpdateResult "$$Basename.pstex_t"
72 Requirement "graphicx"
75 Product "\\input{$$Basename.pdftex_t}"
77 UpdateResult "$$Basename.pdftex_t"
78 Requirement "graphicx"
81 Product "$$Contents(\"$$Basename.asc\")"
82 UpdateFormat asciixfig
83 UpdateResult "$$Basename.asc"
86 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
88 UpdateResult "$$Basename.eps"
91 Product "[XFig: $$FName]"
96 GuiName "[Chess: $$Basename]"
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.
118 EditCommand "xboard -lpf $$FName -mode EditPosition"
119 AutomaticProduction true
121 Product "\\loadgame{$$FPath$$Basename}\\showboard"
125 Product "$$Contents(\"$$Basename.asc\")"
126 UpdateFormat asciichess
127 UpdateResult "$$Basename.asc"
130 Product "[Chess: $$Basename]"
133 Product "[Chess: $$FName]"
141 In the parameters box, you can provide
142 optional parameters for the date
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.
154 AutomaticProduction true
156 Product "$$Contents(\"$$Tempname\")"
158 UpdateResult "$$Tempname"
161 Product "$$Contents(\"$$Tempname\")"
163 UpdateResult "$$Tempname"
166 Product "$$Contents(\"$$Tempname\")"
168 UpdateResult "$$Tempname"
171 Product "$$Contents(\"$$Tempname\")"
173 UpdateResult "$$Tempname"