1 # Basic External Templates for LyX
4 GuiName "[XFig: $$Basename]"
7 This template uses XFig for editing.
11 EditCommand "xfig $$FName"
12 AutomaticProduction true
14 Product "\\input{$$Basename.pstex_t}"
16 UpdateResult "$$Basename.pstex_t"
17 Requirement "graphicx"
20 Product "\\input{$$Basename.pdftex_t}"
22 UpdateResult "$$Basename.pdftex_t"
23 Requirement "graphicx"
26 Product "$$Contents(\"$$Basename.asc\")"
27 UpdateFormat asciixfig
28 UpdateResult "$$Basename.asc"
31 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
33 UpdateResult "$$Basename.eps"
36 Product "[XFig: $$FName]"
41 GuiName "[Chess: $$Basename]"
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.
63 EditCommand "xboard -lpf $$FName -mode EditPosition"
64 AutomaticProduction true
66 Product "\\loadgame{$$FPath$$Basename}\\showboard"
70 Product "$$Contents(\"$$Basename.asc\")"
71 UpdateFormat asciichess
72 UpdateResult "$$Basename.asc"
75 Product "[Chess: $$Basename]"
78 Product "[Chess: $$FName]"
86 Read 'info date' for more information.
90 AutomaticProduction true
92 Product "$$Contents(\"$$Tempname\")"
94 UpdateResult "$$Tempname"
97 Product "$$Contents(\"$$Tempname\")"
99 UpdateResult "$$Tempname"
102 Product "$$Contents(\"$$Tempname\")"
104 UpdateResult "$$Tempname"
107 Product "$$Contents(\"$$Tempname\")"
109 UpdateResult "$$Tempname"