2 # Chess Diagram External Template
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
7 # author Asger Alstrup Nielsen
9 # author Johnathan Burchill
11 # Full author contact details are available in file CREDITS.
15 GuiName "Chess diagram"
17 A chess position diagram.
18 This template will use XBoard to edit the position.
19 Use the 'File->Save Position' in XBoard to save
20 the position that you want to display.
21 Make sure to give it a '.fen' extension
22 and remember to type in a relative path
23 to the LyX document location.
24 Within XBoard, use 'Edit->Edit Position'
25 to enable general editing of the board.
26 You might also check out the
27 'Options->Test legality' option, and
28 remember to middle and right click to
29 insert new material in the board.
30 In order for this to work, you have to
31 put the bundled lyxskak.sty in a place
32 that TeX will find it, and you will need
33 to install the skak package from CTAN.
37 AutomaticProduction true
38 Preview InstantPreview
40 Product "\\loadgame{$$AbsOrRelPathMaster$$Basename}\\showboard"
43 UpdateResult "$$AbsPath$$Basename$$Extension"
44 ReferencedFile latex "$$AbsPath$$Basename$$Extension"
47 Product "\\loadgame{$$AbsOrRelPathMaster$$Basename}\\showboard"
50 UpdateResult "$$AbsPath$$Basename$$Extension"
51 ReferencedFile pdflatex "$$AbsPath$$Basename$$Extension"
54 Product "$$Contents(\"$$AbsPath$$Basename.asc\")"
55 UpdateFormat asciichess
56 UpdateResult "$$AbsPath$$Basename.asc"
59 Product "[Chess: $$AbsOrRelPathMaster$$Basename]"
62 Product "<pre>$$Contents(\"$$AbsPath$$Basename.asc\")</pre>"
63 UpdateFormat asciichess
64 UpdateResult "$$AbsPath$$Basename.asc"