# A chess board according to moves

I'm sure that this question has been answered elsewhere: I would like to know ho do I type this: 1.d4

in a XeTeX file.

• Thank you for green check mark, but the better answer is of @UlrikeFischer. Please can you give this. I am happy thus. :-) Sep 10 at 20:19
• I draw my own chessboards, so can do pretty much anything with them. See tex.stackexchange.com/questions/168281/… Sep 10 at 21:20
• @JohnKormylo I vote up your question indicated in the link. Sep 11 at 18:45

I'm using skak package without the option [ps] that not have the black square:

\documentclass{article}
\usepackage{skak}
\begin{document}
\newgame
\mainline{1. d4}
$\showboard$
\end{document}


Addendum: showing the black with the arrow (with the option ps) ....whose next move is by the black player.

\documentclass{article}
\usepackage[ps]{skak}
\showmoverOn
\begin{document}
\newgame
\mainline{1.d4}
\storegame{game1}
$\showboard$
\end{document}


• the black square is asymbol to show who's move it is, and there is a skak option for it too (and it can naturally be suppressed with xskak/chessboard). Sep 10 at 20:08
• @UlrikeFischer I like the chess. But if the first move is by the white pawn, shouldn't there be a white square indicating that the first move is by the "white" player? Sep 10 at 20:12
• the board shows the position after the white move, the next move will be a black move. Sep 10 at 20:38
• @UlrikeFischer Ah now I have understood...now I put an addendum....but I not want the green check mark ...hence I have put the community wiki :-))))) Sep 10 at 20:39
\documentclass{article}
\usepackage{xskak}
\begin{document}
\newchessgame
\mainline{1. d4}

\chessboard
\end{document}


• I am sure totally that the answer was your :-). But skak package is it obsolete? I have used this. Sep 10 at 19:48