棋盘:如何添加或继承样式?

棋盘:如何添加或继承样式?

是否可以添加样式?
例如,我在样式“s2”上添加了样式“s1”:

\storechessboardstyle{s1}{
movenr={1},  
markmove=\xskakget{movefrom}-\xskakget{moveto},
}

\storechessboardstyle{s2}{
style=s1,% <----------------   no effect! 
movenr={2}, 
markmove=\xskakget{movefrom}-\xskakget{moveto},
}

但这不起作用。
我该怎么办?

在此处输入图片描述

\documentclass[margin=5mm, varwidth]{standalone}
\usepackage{xskak, pgfplots}
\usepackage{chessboard}
\setchessboard{showmover=false, margin=false}
\setchessboard{pgfstyle=straightmove, color=red}

\begin{document}
\section{Works}
\newchessgame[setwhite={Ba8}]
\hidemoves{1. Be4 ... 2. Bh7 ... 3. Bg8 ... 4. Ba2 ...}

\storechessboardstyle{s}{
movenr={1},  
markmove=\xskakget{movefrom}-\xskakget{moveto},
movenr={2}, 
markmove=\xskakget{movefrom}-\xskakget{moveto},
}
\chessboard[tinyboard, style=s]
%======================================

\section{Works not}
\newchessgame[setwhite={Ba8}
]
\hidemoves{1. Be4 ... 2. Bh7 ... 3. Bg8 ... 4. Ba2 ...}

\storechessboardstyle{s1}{
movenr={1},  
markmove=\xskakget{movefrom}-\xskakget{moveto},
}

\storechessboardstyle{s2}{
style=s1,% <----------------   no effect! 
movenr={2}, 
markmove=\xskakget{movefrom}-\xskakget{moveto},
}

\subsection{Style s1  - ok}
%\setchessboard{style=s1}
\chessboard[tinyboard,   style=s1]

\subsection{Style s2 - not ok (should include s1)}
%\setchessboard{style=s2}
\chessboard[tinyboard, style=s2] 
\end{document}

相关内容