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