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