]> git.lyx.org Git - lyx.git/blob - lib/layouts/chess.layout
92d76a0487361fba04a1ad6f6c6f89c90adbbdad
[lyx.git] / lib / layouts / chess.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[article,lyxskak.sty]{article (Chess)}
3 # chess article textclass definition file.
4
5 # This layout file was designed to allow easy access to all
6 # the cool features of the skak package for chess notation.
7 #
8 # Author : Kayvan A. Sylvan <kayvan@sylvan.com>
9 #
10 # Remaining minor problem:
11 #
12 # Sometimes there is too much space under a \showboard, especially
13 # if you use some of the ornamentation commands (\printknightmove,
14 # \highlight or \printarrow). For now, a workaround for the problem
15 # is to insert (using ERT) a \vspace* command (for example,
16 # \vspace*{-0.5in})
17 #
18
19 Preamble
20         \usepackage[ps,mover]{lyxskak}
21         %%% initialize board
22         \newgame
23 EndPreamble
24
25 # To be filled in later. This makes Standard first on the list of layouts.
26 Style Standard
27 End
28
29 # This is the main line of the chess game. Use PGN notation here.
30 # Also, this layout can be continued with Control-Enter without
31 # starting a new paragraph.
32 Style Mainline
33         LatexType             Command
34         LatexName             mainline
35         Margin                Static
36         LeftMargin            MMMMMMM
37         Labeltype             Static
38         LabelSep              M
39         LabelString           "Mainline:"
40         Newline               0
41         PassThru              1
42         TopSep                0.0
43         ParSep                0.0
44         LabelFont
45           Color               blue
46           Series              bold
47         EndFont
48         TextFont
49           Color               blue
50         EndFont
51 End
52
53
54 # This is a variation. It shows up in the normal fashion (styleB).
55 # You are free to redefine it by making a new \variationstyle
56 # as talked about in the skak documentation.
57 Style Variation
58         CopyStyle             Mainline
59         LatexType             Command
60         LatexName             lyxvariation[1]
61         LabelString           "Variation:"
62         LeftMargin            MMMMMMMMM
63 End
64
65
66 # This is a subvariation.
67 Style SubVariation
68         CopyStyle             Variation
69         LatexName             lyxvariation[2]
70         LabelString           "Subvariation:"
71         LeftMargin            MMMMMMMMMMMM
72 End
73
74
75 # This is a subsubvariation.
76 Style SubVariation2
77         CopyStyle             Variation
78         LatexName             lyxvariation[3]
79         LabelString           "Subvariation(2):"
80         LeftMargin            MMMMMMMMMMMMMMM
81 End
82
83
84 # This is a subsubsubvariation.
85 Style SubVariation3
86         CopyStyle             Variation
87         LatexName             lyxvariation[4]
88         LabelString           "Subvariation(3):"
89         LeftMargin            MMMMMMMMMMMMMMMMMM
90 End
91
92
93 # This is a subsubsubsubvariation.
94 Style SubVariation4
95         CopyStyle             Variation
96         LatexName             lyxvariation[5]
97         LabelString           "Subvariation(4):"
98         LeftMargin            MMMMMMMMMMMMMMMMMMMMM
99 End
100
101
102 # This is a subsubsubsubsubvariation.
103 Style SubVariation5
104         CopyStyle             Variation
105         LatexName             lyxvariation[6]
106         LabelString           "Subvariation(5):"
107         LeftMargin            MMMMMMMMMMMMMMMMMMMMMMMM
108 End
109
110
111 # Same as mainline, but it does not print the moves (only updates the
112 # board position.
113 Style HideMoves
114         CopyStyle             Mainline
115         LatexName             hidemoves
116         LeftMargin            "HideMoves:M"
117         LabelSep              M
118         LabelString           "HideMoves:"
119 End
120
121
122 # This simply prints a block left chessboard.
123 Style ChessBoard
124         CopyStyle             Mainline
125         LatexType             Command
126         LatexName             showboard
127         LabelString           "[chessboard]"
128         KeepEmpty             1
129         LabelFont
130           Color               red
131         EndFont
132 End
133
134
135 # This prints a centered chessboard.
136 Style BoardCentered
137         CopyStyle              Mainline
138         LatexType              Command
139         LatexName              [\showboard\]
140         LeftMargin             MMMMMMMMMMMMMM
141         LabelString            "[centered board]"
142         KeepEmpty              1
143         LabelFont
144           Color                red
145         EndFont
146 End
147
148
149 # This should be a list of comma-separated chessboard squares.
150 # Should be placed after a ChessBoard or BoardCentered.
151 Style HighLight
152         CopyStyle             Mainline
153         LatexType             Command
154         LatexName             lyxhighlight
155         LeftMargin            MMMMMMMM
156         LabelString           "Highlights:"
157         LabelFont
158           Color               black
159           Series              Bold
160           Shape               SmallCaps
161         EndFont
162         TextFont
163           Series              Bold
164           Color               black
165         EndFont
166 End
167
168
169 # This should be a list of two squares with an ascii arrow (a1->c3)
170 # Should be placed after a ChessBoard or BoardCentered.
171 Style Arrow
172         CopyStyle             HighLight
173         LatexType             Command
174         LatexName             lyxprintarrow
175         LeftMargin            MMMMMMMM
176         LabelString           "Arrow:"
177 End
178
179
180 # This should be a list of two chessboard squares (again, like g1->e2)
181 # Should be placed after a ChessBoard or BoardCentered.
182 Style KnightMove
183         CopyStyle             Arrow
184         LatexType             Command
185         LatexName             lyxknightmove
186         LeftMargin            MMMMMMMM
187         LabelString           "KnightMove:"
188 End
189
190 Input article.layout