]> git.lyx.org Git - lyx.git/blob - lib/layouts/chessboard.module
Update layouts
[lyx.git] / lib / layouts / chessboard.module
1 #\DeclareLyXModule[chessboard.sty,chessfss.sty,xskak.sty]{Chess Board}
2 #\DeclareCategory{Leisure, Sports & Music}
3 #DescriptionBegin
4 #Support for the chessboard package to print chess games
5 #See chessboard-article.lyx example file.
6 #DescriptionEnd
7 # Author: Kornel Benko <kornel@lyx.org>
8 #         Jürgen Spitzmüller <spitz@lyx.org>
9
10 Format 89
11
12 #
13 # XSkak basics
14 #
15
16 Style NewChessGame
17         LatexType               command
18         LatexName               newchessgame
19         Margin                  Dynamic
20         LabelType               Static
21         LabelSep                XX
22         LabelString             "[Start New Chess Game]"
23         LabelFont
24                 Family         typewriter
25                 Series         Medium
26                 Size           Normal
27                 Color          red
28         EndFont
29         KeepEmpty               1
30         Argument 1
31                 LabelString     "Options"
32                 MenuString      "Chessgame Options"
33                 ToolTip         "See xskak manual for a comprehensive list of keys and values"
34                 PassThru        1
35                 Font
36                         Color   latex
37                         Family  typewriter
38                 EndFont
39         EndArgument
40         Requires                xskak
41         DocBookTag      para
42         DocBookAttr     role='new-chess-game'
43 End
44
45
46 InsetLayout Flex:Mainline
47         LyXType                 custom
48         LatexType               command
49         LatexName               mainline
50         Decoration              classic
51         LabelString             "Mainline:"
52         PassThru                1
53         ParbreakIsNewline       1
54         LabelFont
55                 Color           blue
56         EndFont
57         Font
58                 Color           blue
59         EndFont
60         Argument 1
61                 LabelString     "Options"
62                 MenuString      "Mainline Options"
63                 ToolTip         "See xskak manual for possible options"
64                 Font
65                         Color   latex
66                         Family  typewriter
67                 EndFont
68         EndArgument
69         Argument post:1
70                 LabelString     "Comment"
71                 MenuString      "Comment"
72                 LeftDelim       "<br/>"
73                 RightDelim      "%"
74                 Font
75                         Color   green
76                 EndFont
77         EndArgument
78         Requires                xskak
79         DocBookTag      para
80         DocBookAttr     role='mainline'
81 End
82
83 InsetLayout Flex:Variation
84         CopyStyle               Flex:Mainline
85         LatexName               variation
86         LabelString             Variation
87         DocBookTag      para
88         DocBookAttr     role='variation'
89 End
90
91
92 #
93 # Chessboard additions
94 #
95
96 InsetLayout Flex:SetChessBoard
97         LyxType                 custom
98         Decoration              classic
99         LatexType               command
100         LatexName               setchessboard
101         LabelString             "Global Chessboard Settings"
102         Font
103                 Color           latex
104                 Family          typewriter
105         EndFont
106         LabelFont
107                 Color           blue
108         EndFont
109         Requires                chessboard
110         DocBookTag      para
111         DocBookAttr     role='set-chess-board'
112 End
113
114
115 InsetLayout Flex:SetBoardStoreStyle
116         CopyStyle               Flex:SetChessBoard
117         LabelString             "Set Chessboard Style"
118         Argument 1
119                 Mandatory       true
120                 LabelString     "Style Name"
121                 MenuString      "Chessboard Style Name"
122                 ToolTip         "Here you can store chessboard settings under a style name for later reuse. See chessboard manual for details."
123                 AutoInsert      true
124                 Decoration      conglomerate
125         EndArgument
126         DocBookTag      para
127         DocBookAttr     role='set-board-store-style'
128 End
129
130
131 InsetLayout Flex:ChessBoard
132         LyxType                 custom
133         Decoration              classic
134         LatexType               command
135         LatexType               command
136         LatexName               chessboard
137         LabelString             "Chessboard"
138         Argument 1
139                 LabelString     "Options"
140                 MenuString      "Chessboard Options"
141                 ToolTip         "See chessboard manual for a comprehensive list of keys and values"
142                 PassThru        1
143                 Font
144                         Color   latex
145                         Family  typewriter
146                 EndFont
147         EndArgument
148         Requires                chessboard
149         DocBookTag      para
150         DocBookAttr     role='chess-board'
151 End
152