5

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

enter image description here

in a XeTeX file.

3
  • Thank you for green check mark, but the better answer is of @UlrikeFischer. Please can you give this. I am happy thus. :-)
    – Sebastiano
    Sep 10 at 20:19
  • 1
    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.
    – Sebastiano
    Sep 11 at 18:45
7

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}

enter image description here

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}

enter image description here

4
  • 1
    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?
    – Sebastiano
    Sep 10 at 20:12
  • 1
    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 :-)))))
    – Sebastiano
    Sep 10 at 20:39
8
\documentclass{article}
\usepackage{xskak}
\begin{document}
\newchessgame
\mainline{1. d4}

\chessboard
\end{document}

enter image description here

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.