如何在 FEN 符号中放入星号?我无法在 DiagTransfer 3.0.1 中做到这一点。
我写道(没有星号):
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{xskak}
\begin{document}
\centering
\newchessgame[setfen=8/8/8/8/4K3/8/8/8 w - - 0 1]
\showboard
\end{document}
答案1
感谢 Ulrike Fischer!我做了这个:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[LSB3,T1]{fontenc}
\usepackage{xskak}
\usepackage{chessboard}
\usepackage{mathabx}
\makeatletter
\cbDefineNewPiece{white}{C}
{\raisebox{\depth}{\cfss@whitepiececolor
$\bigstar$}}
{\BlackEmptySquare%
\makebox[0pt][r]{\cfss@whitepiececolor
\raisebox{\depth}{%
\makebox[1em]{$\bigstar$}}}}
\cbDefineNewPiece{black}{c}
{\raisebox{\depth}{\cfss@blackpiececolor
$\bigstar$}}
{\BlackEmptySquare%
\makebox[0pt][r]{\cfss@blackpiececolor
\raisebox{\depth}{%
\makebox[1em]{$\bigstar$}}}}
\makeatother
\begin{document}
\setchessboard{
addpieces={},addwhite=Ke4,
addblack={Cd3,Cd4,Cd5,Ce3,Ce5,Cf3,Cf4,Cf5},showmover=false}
\chessboard
\end{document}