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