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
    Commented Sep 10, 2021 at 20:19
  • 1
    I draw my own chessboards, so can do pretty much anything with them. See tex.stackexchange.com/questions/168281/… Commented Sep 10, 2021 at 21:20
  • @JohnKormylo I vote up your question indicated in the link.
    – Sebastiano
    Commented Sep 11, 2021 at 18:45

2 Answers 2

6

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). Commented Sep 10, 2021 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
    Commented Sep 10, 2021 at 20:12
  • 1
    the board shows the position after the white move, the next move will be a black move. Commented Sep 10, 2021 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
    Commented Sep 10, 2021 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
    Commented Sep 10, 2021 at 19:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .