如何更改 xskak 循环注释中某些文本的颜色和属性

如何更改 xskak 循环注释中某些文本的颜色和属性

如何更改注释内部分文本的颜色和字体大小;使用以下代码。

\documentclass{beamer}
\usepackage{xskak, chessboard}
\usepackage{verbatim}
\setbeamertemplate{navigation symbols}{}
\makeatletter
\providecommand\xskak@beforecomment{}
\makeatother
\newcommand\getmovestyle[1]{%
\ifthenelse
  {\equal{#1}{N}}%knight move
  {\def\mymovestyle{[clockwise=false,style=knight]curvemove}}%
  {\ifthenelse
    {\equal{#1}{}}% castling
    {\def\mymovestyle{curvemove}}%
    {\def\mymovestyle{straightmove}}}}%
\begin{document}
\begin{center}
\newchessgame
\hidemoves{
1. d4 e6 2. e4 d5 3. Nc3 c5 \xskakcomment{the next move determines the progress of the game}
}
\xskakloop{%
\getmovestyle{\xskakget{piecechar}}
\chessboard[normalboard,
 pgfstyle=\mymovestyle, color=blue!50,
  markmoves=\xskakget{move}, pgfshortenend=0.3em, arrow=to,  markstyle=\dots\, markfield=\xskakget{movefrom},
  emphfields=\xskakget{moveto}, setfen=\xskakget{nextfen}]\\
  \xskakget{opennr}
  \xskakget{lan}
  \xskakget{nag}
  \par
  }
\end{center}
\end{document} 

答案1

尝试这个

\xskakcomment{the \textcolor{red}{next} {\Huge move} determines the progress of the game}

相关内容