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