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