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