]> git.lyx.org Git - lyx.git/blob - lib/xtemplates/chess.xtemplate
Split external_templates to individual *.xtemplate files
[lyx.git] / lib / xtemplates / chess.xtemplate
1 #
2 # Chess Diagram External Template
3 #
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6 #
7 # author Asger Alstrup Nielsen
8 # author Angus Leeming
9 # author Johnathan Burchill
10 #
11 # Full author contact details are available in file CREDITS.
12
13
14 Template ChessDiagram
15         GuiName "Chess diagram"
16         HelpText
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.
34         HelpTextEnd
35         InputFormat fen
36         FileFilter "*.fen"
37         AutomaticProduction true
38         Preview InstantPreview
39         Format LaTeX
40                 Product "\\loadgame{$$AbsOrRelPathMaster$$Basename}\\showboard"
41                 Requirement "chess"
42                 UpdateFormat fen
43                 UpdateResult "$$AbsPath$$Basename$$Extension"
44                 ReferencedFile latex "$$AbsPath$$Basename$$Extension"
45         FormatEnd
46         Format PDFLaTeX
47                 Product "\\loadgame{$$AbsOrRelPathMaster$$Basename}\\showboard"
48                 Requirement "chess"
49                 UpdateFormat fen
50                 UpdateResult "$$AbsPath$$Basename$$Extension"
51                 ReferencedFile pdflatex "$$AbsPath$$Basename$$Extension"
52         FormatEnd
53         Format Ascii
54                 Product "$$Contents(\"$$AbsPath$$Basename.asc\")"
55                 UpdateFormat asciichess
56                 UpdateResult "$$AbsPath$$Basename.asc"
57         FormatEnd
58         Format DocBook
59                 Product "[Chess: $$AbsOrRelPathMaster$$Basename]"
60         FormatEnd
61         Format XHTML
62                 Product "<pre>$$Contents(\"$$AbsPath$$Basename.asc\")</pre>"
63                 UpdateFormat asciichess
64                 UpdateResult "$$AbsPath$$Basename.asc"
65         FormatEnd
66 TemplateEnd
67