怎样消除正方形?

怎样消除正方形?

为了说明棋盘上马的移动,我使用了以下命令。如何消除图形右侧出现的方块?在此处输入图片描述

在此处输入图片描述

答案1

这是棋盘包,但代码中 style=4x4 有一个错误。不确定具体细节,但在我将其设为 pgfstyle 后,它编译通过了。修复该问题后,只需为第二个棋盘设置 showmover=false 即可。方框指示轮到谁移动,您的代码在第一个图上关闭了它,但在第二个图中没有关闭。

\documentclass[11pt]{article}
\usepackage{chessboard}
\begin{document}
\begin{center}
\storechessboardstyle{8x8}{maxfield=d8}
\chessboard[pgfstyle=4x4,setwhite={Nd4,Ne6,Nf3,Nb3,Nc2,Nc6,Nb5,Ne2,Nf5},showmover=false]
\chessboard[pgfstyle=straightmove,arrow=to,linewidth=0.2ex,color=red,pgfstyle=knightmove,markmoves={d4-e6,d4-f3,d4-b3,d4-c2,d4-c6,d4-b5,d4-e2,d4-f5},shortenstart=1ex,showmover=false]
\end{center}
\end{document}

相关内容