mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 11:52:25 +00:00
134 lines
3.0 KiB
Plaintext
134 lines
3.0 KiB
Plaintext
#% Do not delete the line below; configure depends on this
|
|
# \DeclareLaTeXClass[scrartcl]{Chessboard}
|
|
# \DeclareCategory{Articles}
|
|
# chessboard article textclass definition file.
|
|
|
|
Format 69
|
|
|
|
Requires chessfss
|
|
|
|
ClassOptions
|
|
Other "parskip"
|
|
End
|
|
|
|
Preamble
|
|
\usepackage{xskak}
|
|
\pagestyle{empty}
|
|
\AtBeginDocument{
|
|
\newchessgame
|
|
\setchessboard{pgfstyle=straightmove, arrow=to,linewidth=0.1em, smallboard}
|
|
}
|
|
EndPreamble
|
|
|
|
Style Standard
|
|
Align Block
|
|
AlignPossible Block, Left, Right, Center
|
|
End
|
|
|
|
Input stdsections.inc
|
|
Input stdtitle.inc
|
|
|
|
InsetLayout Flex:Mainline
|
|
LyXType custom
|
|
LatexType Command
|
|
LatexName mainline
|
|
Decoration Classic
|
|
LabelString "Mainline:"
|
|
PassThru 1
|
|
ParbreakIsNewline 1
|
|
LabelFont
|
|
Color blue
|
|
Series bold
|
|
EndFont
|
|
Font
|
|
Color blue
|
|
EndFont
|
|
Argument 1
|
|
LabelString id
|
|
ToolTip "'invar' or 'outvar'"
|
|
Decoration Conglomerate
|
|
EndArgument
|
|
Argument 2
|
|
Mandatory 1
|
|
LabelString "Moves"
|
|
PassThru 1
|
|
Decoration Conglomerate
|
|
EndArgument
|
|
Argument 3
|
|
LabelString "Comment"
|
|
Mandatory 1
|
|
LeftDelim "{ "
|
|
Font
|
|
Color Green
|
|
EndFont
|
|
Decoration Conglomerate
|
|
EndArgument
|
|
End
|
|
|
|
InsetLayout Flex:Variation
|
|
CopyStyle Flex:Mainline
|
|
LatexName variation
|
|
LabelString Variation
|
|
End
|
|
|
|
InsetLayout Flex:ChessBoard
|
|
LyXType custom
|
|
LatexType Command
|
|
LatexName chessboard
|
|
LabelString "[chessboard]"
|
|
Decoration Classic
|
|
KeepEmpty 1
|
|
LabelFont
|
|
Color Red
|
|
EndFont
|
|
Argument 1
|
|
LabelString "Arrows"
|
|
ToolTip "Comma separated list of the form from-to (like d2-d4)"
|
|
LeftDelim "[pgfstyle=straightmove,markmoves={"
|
|
RightDelim "},"
|
|
DefaultArg " "
|
|
PassThru 1
|
|
Decoration Conglomerate
|
|
EndArgument
|
|
Argument 2
|
|
LabelString "Knigt"
|
|
ToolTip "List of knight moves (crooked arrows) g1-e2, g1-h3"
|
|
LeftDelim "pgfstyle=knightmove,markmove={"
|
|
RightDelim "},"
|
|
Decoration Conglomerate
|
|
EndArgument
|
|
Argument 3
|
|
LabelString "Mark"
|
|
ToolTip "Comma separated list of fields to be marked with a circle (like d4,f4,c7)"
|
|
DefaultArg " "
|
|
LeftDelim "pgfstyle=circle,markfields={"
|
|
RightDelim "}]"
|
|
Decoration Conglomerate
|
|
EndArgument
|
|
End
|
|
|
|
InsetLayout Flex:ChessBoardStore
|
|
CopyStyle Flex:ChessBoard
|
|
ResetArgs 1
|
|
LabelString "StoreChessboard"
|
|
Argument 1
|
|
LabelString "Store FEN"
|
|
ToolTip "Store the 'FEN' under the given name"
|
|
LeftDelim "[print=false,storefen={"
|
|
RightDelim "}]"
|
|
EndArgument
|
|
End
|
|
|
|
InsetLayout Flex:ChessBoardRestore
|
|
CopyStyle Flex:ChessBoard
|
|
ResetArgs 1
|
|
LabelString "RestoreChessboard"
|
|
Argument 1
|
|
LabelString "Restore FEN"
|
|
ToolTip "Restore the 'FEN' to the version saved under the given name"
|
|
LeftDelim "[print=false,restorefen={"
|
|
RightDelim "}]"
|
|
EndArgument
|
|
End
|
|
|