]> git.lyx.org Git - lyx.git/blob - lib/layouts/chess.layout
Use Buffer const reference in most placees possible.
[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
22         %%% initialize board
23         %
24         \newgame
25
26 EndPreamble
27
28 Style Standard
29 # To be filled in later. This makes Standard first on the list of layouts.
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 #
36 Style Mainline
37         LatexType Command
38         LatexName mainline
39         Margin Static
40         LeftMargin MMMMMM
41         Labeltype Static
42         LabelString "Mainline: "
43         Newline 0
44         PassThru 1
45         TopSep 0.0
46         ParSep 0.0
47
48         LabelFont
49           Color blue
50           Series bold
51         EndFont
52
53         TextFont
54           Color blue
55         EndFont
56 End
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 #
62 Style Variation
63         CopyStyle Mainline
64         LatexType Command
65         LatexName lyxvariation[1]
66         LabelString "Variation: "
67         LeftMargin MMMMMMMM
68 End
69
70 # This is a subvariation. 
71 #
72 Style SubVariation
73         CopyStyle Variation
74         LatexName lyxvariation[2]
75         LabelString "Subvariation: "
76         LeftMargin MMMMMMMMMMM
77 End
78
79 # This is a subsubvariation. 
80 #
81 Style SubVariation2
82         CopyStyle Variation
83         LatexName lyxvariation[3]
84         LabelString "Subvariation(2): "
85         LeftMargin MMMMMMMMMMMMMM
86 End
87
88 # This is a subsubsubvariation. 
89 #
90 Style SubVariation3
91         CopyStyle Variation
92         LatexName lyxvariation[4]
93         LabelString "Subvariation(3): "
94         LeftMargin MMMMMMMMMMMMMMMMM
95 End
96
97 # This is a subsubsubsubvariation. 
98 #
99 Style SubVariation4
100         CopyStyle Variation
101         LatexName lyxvariation[5]
102         LabelString "Subvariation(4): "
103         LeftMargin MMMMMMMMMMMMMMMMMMMM
104 End
105
106 # This is a subsubsubsubsubvariation. 
107 #
108 Style SubVariation5
109         CopyStyle Variation
110         LatexName lyxvariation[6]
111         LabelString "Subvariation(5): "
112         LeftMargin MMMMMMMMMMMMMMMMMMMMMMM
113 End
114
115 # Same as mainline, but it does not print the moves (only updates the
116 # board position.
117 #
118 Style HideMoves
119         CopyStyle Mainline
120         LatexName hidemoves
121         LabelString "HideMoves: "
122 End
123
124 # This simply prints a block left chessboard.
125 #
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 # This prints a centered chessboard.
138 #
139 Style BoardCentered
140         CopyStyle Mainline
141         LatexType Command
142         LatexName [\showboard\]
143         LeftMargin MMMMMMMMMMMMM
144         LabelString "[centered board]"
145         KeepEmpty 1
146         LabelFont
147           Color red
148         EndFont
149 End
150
151 # This should be a list of comma-separated chessboard squares.
152 # Should be placed after a ChessBoard or BoardCentered.
153 #
154 Style HighLight
155         CopyStyle Mainline
156         LatexType Command
157         LatexName lyxhighlight
158         LeftMargin MMMMMMM
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 # This should be a list of two squares with an ascii arrow (a1->c3)
172 # Should be placed after a ChessBoard or BoardCentered.
173 #
174 Style Arrow
175         CopyStyle HighLight
176         LatexType Command
177         LatexName lyxprintarrow
178         LeftMargin MMMMMMM
179         LabelString "Arrow: "
180 End
181
182 # This should be a list of two chessboard squares (again, like g1->e2)
183 # Should be placed after a ChessBoard or BoardCentered.
184 #
185 Style KnightMove
186         CopyStyle Arrow
187         LatexType Command
188         LatexName lyxknightmove
189         LeftMargin MMMMMMM
190         LabelString "KnightMove: "
191 End
192
193 Input article.layout