Questions tagged [chess]

{chess} is for questions related to the chess game in TeX.

There are some packages dealing with chess in TeX. For example,

chess-problem-diagrams – A pack­age for type­set­ting chess prob­lem di­a­grams. This pack­age pro­vides macros to type­set chess prob­lem di­a­grams in­clud­ing fairy chess prob­lems and other board;

– Fonts and macros for type­set­ting chess games. The pack­age skak pro­vides macros and fonts in Meta­font for­mat which can be used to type­set chess games us­ing PGN, and to show di­a­grams of the cur­rent board in a doc­u­ment. The pack­age builds on work by Piet Tute­laers — the main nov­elty is the use of PGN for in­put in­stead of the more cum­ber­some co­or­di­nate no­ta­tion (g1f3 be­comes the more read­able Nf3 in PGN).

151 questions
23
votes
2 answers

Where to start typesetting chess with TeX

I noticed that there are already a few questions about typesetting chess but I have two very basic ones: What are currently the "best" packages to typeset chess diagrams and game scores with comments? Are any of these already included in TeXShop?
10
votes
2 answers

Alone pawn: LaTeX

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} …
iskhakovt
  • 201
10
votes
4 answers

How to display black chess pieces within normal text with chessfss

I'm using the package chessboard do display chess diagrams, and therefore chessfss is used for chess fonts if my understanding is correct. To display the white chess pieces within normal text when writing explanations, I use the commands \pawn,…
remjg
  • 2,486
4
votes
2 answers

How can I condense this code?

It is a lot of lines, how can I condense this code so it is shorter? I just wanted to show how the queen moves on a chess board. \documentclass[12pt]{book} \usepackage{skak} %or xskak \usepackage{chessboard} %…
SomeT
  • 337
4
votes
1 answer

Draw a line in the center of a chessboard

I am trying to reproduce the following: My best attempt so far uses skak. \begin{figure} \newgame \showallbut{P,p,K,k,R,r,Q,q,B,b,N,n} \showboard \caption{The Frontier Line} \end{figure} How to add the central line? Note: Please do…
user152057
3
votes
1 answer

Typesetting Chess variants

Lately I've been getting more and more interested in chess variants (such as Omega chess and Courier chess). How would I go about typesetting the board of such chess variants, and how would I show how a new piece can behave?
hkBst
  • 545
  • 2
  • 10
2
votes
1 answer

How to type a specific chess move?

I am hoping to type a specific chess move, Rc8 for example. But I have spent two hours searching and looking through existing packages like chessboard, texmate, xskak and xskak. I just couldn't find one. They all seem to be "play" the moves. Is…
2
votes
1 answer

Draw colored tiles

How can I produce squares like this of arbritary sizes? I have been looking at skak, but cannot find an example that is not producing entire chessboards. I know I have seen this somewhere before, but I cannot remember the words that describe this…
Crumar
  • 65
2
votes
1 answer

Best package for typesetting extremely large chess boards, with hundreds of pieces

It appears that there are some extremely knowledgeable TeX chess package experts on this site. I have need to produce nonstandard size chess boards (80 x 80 and larger), densely crowded with hundreds of pieces. Which chess package is best suited…
JDH
  • 1,134
2
votes
1 answer

xskak and NAGs/Chess Informant symbols

I can't for the life of me figure out a proper way to handle NAGs (Numeric Annotation Glyphs) and/or Chess Informant symbols with xskak. I'm writing a document where I'm handling a lot of variations, so I'm staying away from \newchessgame and…
kahen
  • 2,165
1
vote
1 answer

Using latex to mark squares in diagrams for Killer Chess Training homework club?

Killer Chess Training is a chess training website. They give out worksheets every week like https://p8e5c7t2.rocketcdn.me/wp-content/uploads/2021/03/Friendly-Homework-23-%E2%80%93-2021-03-23.pdf and ask for responses in PDF which are marked. They…
1
vote
1 answer

adding comments and displaying notations in xskak looping

How to add comments and display movement notations for each move, using the following code \documentclass{beamer} \usepackage{xskak, chessboard} \setbeamertemplate{navigation symbols}{} \begin{document} \newcommand\getmovestyle[1]{% \ifthenelse …
Hany
  • 4,709
1
vote
1 answer

adding comments in xskak looping

How can comments be added after each move to explain it in the next code: \documentclass[10pt]{beamer} \usepackage{xskak,chessboard} \setbeamertemplate{navigation…
Hany
  • 4,709
1
vote
0 answers

How to set one move on one line in e.g. texmate?

A document set by using texmate (package) looks good but quite dense. I would like to have only one move on one line, as you get in the older chess package by e.g.: \move e2e4 e7e5 \move g1f3 b8c6 Is there a possibility to get a similar…
Volker
  • 11
0
votes
1 answer

How to change the colour and attribute of some text inside comments of xskak loop

How to change the colour and font size of a part of the text inside comments; using the following code. \documentclass{beamer} \usepackage{xskak, chessboard} \usepackage{verbatim} \setbeamertemplate{navigation…
Hany
  • 4,709
1
2