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