2001-11-05 16:42:09 +00:00
|
|
|
#% Do not delete the line below; configure depends on this
|
|
|
|
# \DeclareLaTeXClass[article,lyxskak.sty]{article (Chess)}
|
|
|
|
# chess article textclass definition file.
|
|
|
|
|
|
|
|
# This layout file was designed to allow easy access to all
|
|
|
|
# the cool features of the skak package for chess notation.
|
|
|
|
#
|
|
|
|
# Author : Kayvan A. Sylvan <kayvan@sylvan.com>
|
|
|
|
#
|
|
|
|
# Remaining minor problem:
|
|
|
|
#
|
|
|
|
# Sometimes there is too much space under a \showboard, especially
|
|
|
|
# if you use some of the ornamentation commands (\printknightmove,
|
|
|
|
# \highlight or \printarrow). For now, a workaround for the problem
|
|
|
|
# is to insert (using ERT) a \vspace* command (for example,
|
|
|
|
# \vspace*{-0.5in})
|
2003-10-13 09:50:10 +00:00
|
|
|
#
|
2001-11-05 16:42:09 +00:00
|
|
|
|
2010-03-18 22:21:56 +00:00
|
|
|
Format 25
|
2008-01-07 18:15:49 +00:00
|
|
|
|
|
|
|
Requires chess
|
|
|
|
|
2001-11-05 16:42:09 +00:00
|
|
|
Preamble
|
2003-05-02 08:55:48 +00:00
|
|
|
%%% initialize board
|
|
|
|
\newgame
|
2001-11-05 16:42:09 +00:00
|
|
|
EndPreamble
|
|
|
|
|
|
|
|
# To be filled in later. This makes Standard first on the list of layouts.
|
2003-09-15 15:20:19 +00:00
|
|
|
Style Standard
|
2001-11-05 16:42:09 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
# This is the main line of the chess game. Use PGN notation here.
|
|
|
|
# Also, this layout can be continued with Control-Enter without
|
|
|
|
# starting a new paragraph.
|
|
|
|
Style Mainline
|
2003-09-15 15:20:19 +00:00
|
|
|
LatexType Command
|
|
|
|
LatexName mainline
|
|
|
|
Margin Static
|
2005-07-17 10:48:55 +00:00
|
|
|
LeftMargin MMMMMMM
|
2003-09-15 15:20:19 +00:00
|
|
|
Labeltype Static
|
2005-07-17 10:48:55 +00:00
|
|
|
LabelSep M
|
|
|
|
LabelString "Mainline:"
|
2003-09-15 15:20:19 +00:00
|
|
|
Newline 0
|
|
|
|
PassThru 1
|
|
|
|
TopSep 0.0
|
|
|
|
ParSep 0.0
|
2003-05-02 08:55:48 +00:00
|
|
|
LabelFont
|
2003-09-15 15:20:19 +00:00
|
|
|
Color blue
|
|
|
|
Series bold
|
2003-05-02 08:55:48 +00:00
|
|
|
EndFont
|
|
|
|
TextFont
|
2003-09-15 15:20:19 +00:00
|
|
|
Color blue
|
2003-05-02 08:55:48 +00:00
|
|
|
EndFont
|
2001-11-05 16:42:09 +00:00
|
|
|
End
|
|
|
|
|
2003-09-15 15:20:19 +00:00
|
|
|
|
2001-11-05 16:42:09 +00:00
|
|
|
# This is a variation. It shows up in the normal fashion (styleB).
|
|
|
|
# You are free to redefine it by making a new \variationstyle
|
|
|
|
# as talked about in the skak documentation.
|
|
|
|
Style Variation
|
2003-09-15 15:20:19 +00:00
|
|
|
CopyStyle Mainline
|
|
|
|
LatexType Command
|
|
|
|
LatexName lyxvariation[1]
|
2005-07-17 10:48:55 +00:00
|
|
|
LabelString "Variation:"
|
|
|
|
LeftMargin MMMMMMMMM
|
2001-11-05 16:42:09 +00:00
|
|
|
End
|
|
|
|
|
2003-09-15 15:20:19 +00:00
|
|
|
|
2003-10-13 09:50:10 +00:00
|
|
|
# This is a subvariation.
|
2001-11-21 09:59:04 +00:00
|
|
|
Style SubVariation
|
2003-09-15 15:20:19 +00:00
|
|
|
CopyStyle Variation
|
|
|
|
LatexName lyxvariation[2]
|
2005-07-17 10:48:55 +00:00
|
|
|
LabelString "Subvariation:"
|
|
|
|
LeftMargin MMMMMMMMMMMM
|
2001-11-21 09:59:04 +00:00
|
|
|
End
|
|
|
|
|
2003-09-15 15:20:19 +00:00
|
|
|
|
2003-10-13 09:50:10 +00:00
|
|
|
# This is a subsubvariation.
|
2001-11-21 09:59:04 +00:00
|
|
|
Style SubVariation2
|
2003-09-15 15:20:19 +00:00
|
|
|
CopyStyle Variation
|
|
|
|
LatexName lyxvariation[3]
|
2005-07-17 10:48:55 +00:00
|
|
|
LabelString "Subvariation(2):"
|
|
|
|
LeftMargin MMMMMMMMMMMMMMM
|
2001-11-21 09:59:04 +00:00
|
|
|
End
|
|
|
|
|
2003-09-15 15:20:19 +00:00
|
|
|
|
2003-10-13 09:50:10 +00:00
|
|
|
# This is a subsubsubvariation.
|
2003-12-01 21:26:16 +00:00
|
|
|
Style SubVariation3
|
2003-09-15 15:20:19 +00:00
|
|
|
CopyStyle Variation
|
|
|
|
LatexName lyxvariation[4]
|
2005-07-17 10:48:55 +00:00
|
|
|
LabelString "Subvariation(3):"
|
|
|
|
LeftMargin MMMMMMMMMMMMMMMMMM
|
2001-11-21 09:59:04 +00:00
|
|
|
End
|
|
|
|
|
2003-09-15 15:20:19 +00:00
|
|
|
|
2003-10-13 09:50:10 +00:00
|
|
|
# This is a subsubsubsubvariation.
|
2001-11-21 09:59:04 +00:00
|
|
|
Style SubVariation4
|
2003-09-15 15:20:19 +00:00
|
|
|
CopyStyle Variation
|
|
|
|
LatexName lyxvariation[5]
|
2005-07-17 10:48:55 +00:00
|
|
|
LabelString "Subvariation(4):"
|
|
|
|
LeftMargin MMMMMMMMMMMMMMMMMMMMM
|
2001-11-21 09:59:04 +00:00
|
|
|
End
|
|
|
|
|
2003-09-15 15:20:19 +00:00
|
|
|
|
2003-10-13 09:50:10 +00:00
|
|
|
# This is a subsubsubsubsubvariation.
|
2001-11-21 09:59:04 +00:00
|
|
|
Style SubVariation5
|
2003-09-15 15:20:19 +00:00
|
|
|
CopyStyle Variation
|
|
|
|
LatexName lyxvariation[6]
|
2005-07-17 10:48:55 +00:00
|
|
|
LabelString "Subvariation(5):"
|
|
|
|
LeftMargin MMMMMMMMMMMMMMMMMMMMMMMM
|
2001-11-21 09:59:04 +00:00
|
|
|
End
|
|
|
|
|
2003-09-15 15:20:19 +00:00
|
|
|
|
2001-11-05 16:42:09 +00:00
|
|
|
# Same as mainline, but it does not print the moves (only updates the
|
|
|
|
# board position.
|
|
|
|
Style HideMoves
|
2003-09-15 15:20:19 +00:00
|
|
|
CopyStyle Mainline
|
|
|
|
LatexName hidemoves
|
2005-07-17 10:48:55 +00:00
|
|
|
LeftMargin "HideMoves:M"
|
|
|
|
LabelSep M
|
|
|
|
LabelString "HideMoves:"
|
2001-11-05 16:42:09 +00:00
|
|
|
End
|
|
|
|
|
2003-09-15 15:20:19 +00:00
|
|
|
|
2001-11-05 16:42:09 +00:00
|
|
|
# This simply prints a block left chessboard.
|
|
|
|
Style ChessBoard
|
2003-09-15 15:20:19 +00:00
|
|
|
CopyStyle Mainline
|
|
|
|
LatexType Command
|
|
|
|
LatexName showboard
|
|
|
|
LabelString "[chessboard]"
|
|
|
|
KeepEmpty 1
|
2003-05-02 08:55:48 +00:00
|
|
|
LabelFont
|
2003-09-15 15:20:19 +00:00
|
|
|
Color red
|
2003-05-02 08:55:48 +00:00
|
|
|
EndFont
|
2001-11-05 16:42:09 +00:00
|
|
|
End
|
|
|
|
|
2003-09-15 15:20:19 +00:00
|
|
|
|
2001-11-05 16:42:09 +00:00
|
|
|
# This prints a centered chessboard.
|
|
|
|
Style BoardCentered
|
2003-09-15 15:20:19 +00:00
|
|
|
CopyStyle Mainline
|
|
|
|
LatexType Command
|
|
|
|
LatexName [\showboard\]
|
2005-07-17 10:48:55 +00:00
|
|
|
LeftMargin MMMMMMMMMMMMMM
|
2003-09-15 15:20:19 +00:00
|
|
|
LabelString "[centered board]"
|
|
|
|
KeepEmpty 1
|
2003-05-02 08:55:48 +00:00
|
|
|
LabelFont
|
2003-09-15 15:20:19 +00:00
|
|
|
Color red
|
2003-05-02 08:55:48 +00:00
|
|
|
EndFont
|
2001-11-05 16:42:09 +00:00
|
|
|
End
|
|
|
|
|
2003-09-15 15:20:19 +00:00
|
|
|
|
2001-11-05 16:42:09 +00:00
|
|
|
# This should be a list of comma-separated chessboard squares.
|
|
|
|
# Should be placed after a ChessBoard or BoardCentered.
|
|
|
|
Style HighLight
|
2003-09-15 15:20:19 +00:00
|
|
|
CopyStyle Mainline
|
|
|
|
LatexType Command
|
|
|
|
LatexName lyxhighlight
|
2005-07-17 10:48:55 +00:00
|
|
|
LeftMargin MMMMMMMM
|
|
|
|
LabelString "Highlights:"
|
2003-05-02 08:55:48 +00:00
|
|
|
LabelFont
|
2003-09-15 15:20:19 +00:00
|
|
|
Color black
|
|
|
|
Series Bold
|
|
|
|
Shape SmallCaps
|
2003-05-02 08:55:48 +00:00
|
|
|
EndFont
|
|
|
|
TextFont
|
2003-09-15 15:20:19 +00:00
|
|
|
Series Bold
|
|
|
|
Color black
|
2003-05-02 08:55:48 +00:00
|
|
|
EndFont
|
2001-11-05 16:42:09 +00:00
|
|
|
End
|
|
|
|
|
2003-09-15 15:20:19 +00:00
|
|
|
|
2001-11-05 16:42:09 +00:00
|
|
|
# This should be a list of two squares with an ascii arrow (a1->c3)
|
|
|
|
# Should be placed after a ChessBoard or BoardCentered.
|
|
|
|
Style Arrow
|
2003-09-15 15:20:19 +00:00
|
|
|
CopyStyle HighLight
|
|
|
|
LatexType Command
|
|
|
|
LatexName lyxprintarrow
|
2005-07-17 10:48:55 +00:00
|
|
|
LeftMargin MMMMMMMM
|
|
|
|
LabelString "Arrow:"
|
2001-11-05 16:42:09 +00:00
|
|
|
End
|
|
|
|
|
2003-09-15 15:20:19 +00:00
|
|
|
|
2001-11-05 16:42:09 +00:00
|
|
|
# This should be a list of two chessboard squares (again, like g1->e2)
|
|
|
|
# Should be placed after a ChessBoard or BoardCentered.
|
|
|
|
Style KnightMove
|
2003-09-15 15:20:19 +00:00
|
|
|
CopyStyle Arrow
|
|
|
|
LatexType Command
|
|
|
|
LatexName lyxknightmove
|
2005-07-17 10:48:55 +00:00
|
|
|
LeftMargin MMMMMMMM
|
|
|
|
LabelString "KnightMove:"
|
2001-11-05 16:42:09 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Input article.layout
|