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