2019-04-07 09:21:21 +00:00
|
|
|
#\DeclareLyXModule[chessboard.sty,chessfss.sty,xskak.sty]{Chess Board}
|
|
|
|
#\DeclareCategory{Leisure, Sports & Music}
|
2018-09-23 10:26:43 +00:00
|
|
|
#DescriptionBegin
|
|
|
|
#Support for the chessboard package to print chess games
|
|
|
|
#See chessboard-article.lyx example file.
|
|
|
|
#DescriptionEnd
|
|
|
|
# Author: Kornel Benko <kornel@lyx.org>
|
|
|
|
# Jürgen Spitzmüller <spitz@lyx.org>
|
|
|
|
|
2021-02-13 14:16:58 +00:00
|
|
|
Format 93
|
2018-09-23 10:26:43 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|
2020-12-11 10:46:31 +00:00
|
|
|
Color latex
|
2018-09-23 10:26:43 +00:00
|
|
|
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
|
2020-11-12 03:45:02 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='new-chess-game'
|
2018-09-23 10:26:43 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
|
|
|
|
InsetLayout Flex:Mainline
|
|
|
|
LyXType custom
|
|
|
|
LatexType command
|
|
|
|
LatexName mainline
|
|
|
|
Decoration classic
|
|
|
|
LabelString "Mainline:"
|
|
|
|
PassThru 1
|
|
|
|
ParbreakIsNewline 1
|
|
|
|
LabelFont
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel1
|
2018-09-23 10:26:43 +00:00
|
|
|
EndFont
|
|
|
|
Font
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel1
|
2018-09-23 10:26:43 +00:00
|
|
|
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
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel2
|
2018-09-23 10:26:43 +00:00
|
|
|
EndFont
|
|
|
|
EndArgument
|
|
|
|
Requires xskak
|
2020-11-12 03:45:02 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='mainline'
|
2018-09-23 10:26:43 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
InsetLayout Flex:Variation
|
|
|
|
CopyStyle Flex:Mainline
|
|
|
|
LatexName variation
|
|
|
|
LabelString Variation
|
2020-11-12 03:45:02 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='variation'
|
2018-09-23 10:26:43 +00:00
|
|
|
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
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel1
|
2018-09-23 10:26:43 +00:00
|
|
|
EndFont
|
|
|
|
Requires chessboard
|
2020-11-12 03:45:02 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='set-chess-board'
|
2018-09-23 10:26:43 +00:00
|
|
|
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
|
2020-11-12 03:45:02 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='set-board-store-style'
|
2018-09-23 10:26:43 +00:00
|
|
|
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
|
2020-11-12 03:45:02 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='chess-board'
|
2018-09-23 10:26:43 +00:00
|
|
|
End
|
|
|
|
|