]> git.lyx.org Git - lyx.git/blob - lib/layouts/chessboard.module
update layout formats
[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 78
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 End
42
43
44 InsetLayout Flex:Mainline
45         LyXType                 custom
46         LatexType               command
47         LatexName               mainline
48         Decoration              classic
49         LabelString             "Mainline:"
50         PassThru                1
51         ParbreakIsNewline       1
52         LabelFont
53                 Color           blue
54         EndFont
55         Font
56                 Color           blue
57         EndFont
58         Argument 1
59                 LabelString     "Options"
60                 MenuString      "Mainline Options"
61                 ToolTip         "See xskak manual for possible options"
62                 Font
63                         Color   latex
64                         Family  typewriter
65                 EndFont
66         EndArgument
67         Argument post:1
68                 LabelString     "Comment"
69                 MenuString      "Comment"
70                 LeftDelim       "<br/>"
71                 RightDelim      "%"
72                 Font
73                         Color   green
74                 EndFont
75         EndArgument
76         Requires                xskak
77 End
78
79 InsetLayout Flex:Variation
80         CopyStyle               Flex:Mainline
81         LatexName               variation
82         LabelString             Variation
83 End
84
85
86 #
87 # Chessboard additions
88 #
89
90 InsetLayout Flex:SetChessBoard
91         LyxType                 custom
92         Decoration              classic
93         LatexType               command
94         LatexName               setchessboard
95         LabelString             "Global Chessboard Settings"
96         Font
97                 Color           latex
98                 Family          typewriter
99         EndFont
100         LabelFont
101                 Color           blue
102         EndFont
103         Requires                chessboard
104 End
105
106
107 InsetLayout Flex:SetBoardStoreStyle
108         CopyStyle               Flex:SetChessBoard
109         LabelString             "Set Chessboard Style"
110         Argument 1
111                 Mandatory       true
112                 LabelString     "Style Name"
113                 MenuString      "Chessboard Style Name"
114                 ToolTip         "Here you can store chessboard settings under a style name for later reuse. See chessboard manual for details."
115                 AutoInsert      true
116                 Decoration      conglomerate
117         EndArgument
118 End
119
120
121 InsetLayout Flex:ChessBoard
122         LyxType                 custom
123         Decoration              classic
124         LatexType               command
125         LatexType               command
126         LatexName               chessboard
127         LabelString             "Chessboard"
128         Argument 1
129                 LabelString     "Options"
130                 MenuString      "Chessboard Options"
131                 ToolTip         "See chessboard manual for a comprehensive list of keys and values"
132                 PassThru        1
133                 Font
134                         Color   latex
135                         Family  typewriter
136                 EndFont
137         EndArgument
138         Requires                chessboard
139 End
140