棋盘:如何设置前景中的棋子?

棋盘:如何设置前景中的棋子?

在此处输入图片描述

我怎样才能将棋子设置在前景中?

\documentclass[margin=5mm, varwidth]{standalone}
\usepackage{tikz}

\usepackage{xskak}
\usepackage{chessboard}
\setchessboard{showmover=false}

\begin{document}
\def\mymoves{a8-e4, e4-h7}
\chessboard[
pgfstyle=straightmove,
cornerarc=0pt, % no effect
pgfcornerarc=0pt, % no effect
backcornerarc=0pt, % no effect
arrow=, linewidth=0.2em, color=red, 
opacity=0.5, 
%addpgf=\pgfsetcornersarced,
%addpgf=\pgfsetroundcap,
markmove=\mymoves,
addpieces=bd5,
]
\end{document}

相关内容