If you know, how to work with chess in LaTeX, please help!
I want to make an alone pawn to go.
This code works, but shows lots of other pieces:
\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage{chessboard, skak}
\begin{document}
\begin{frame}
\newgame\setchessboard{markstyle=border,color=blue}
\only<1>{\mainline{1.a4}}
\only<2>{\hidemoves{1.a4}}
\chessboard
\end{frame}
\end{document}
This code shall work for an alone pawn, but it doesn't moves:
\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage{chessboard, skak}
\begin{document}
\begin{frame}
\newgame\setchessboard{markstyle=border,color=blue}
\only<1>{\mainline{1.a4}}
\only<2>{\hidemoves{1.a4}}
\chessboard[setpieces = {Pa2}] % Pawn
\end{frame}
\end{document}
