Questions tagged [chessboard]

About the chessboard package used for drawing chess boards. For general questions about typesetting chess-related material, please use the {chess} tag.

Filter by
Sorted by
Tagged with
0 votes
0 answers
44 views

How can I draw a chessboard with two corners removed?

I am trying to draw a chessboard like this I used this question To draw a chessboard and I got this board. How can I get the board in the first image?
user avatar
0 votes
1 answer
64 views

Can anyboard produced by the chessboard package be exported to svg?

Can any board produced by the chessboard package be exported to svg?
user avatar
1 vote
1 answer
49 views

xskak / xsavebox: How to use an xsavebox for markmoves-list

I tried to use xsaveboxes at markmoves: \xsbox{list1}{a8-e4} \chessboard[tinyboard, markmoves=\xusebox{list1}% <--- error ] so that I can use numbered boxes. But this does not work, what do I ...
user avatar
  • 6,335
0 votes
0 answers
27 views

chessboard: How to add or inherit styles?

Is it possible to add styles? I add for example a style 's1' on a style 's2': \storechessboardstyle{s1}{ movenr={1}, markmove=\xskakget{movefrom}-\xskakget{moveto}, } \storechessboardstyle{s2}{ ...
user avatar
  • 6,335
1 vote
0 answers
25 views

How to display the start situation in an xskakloop

How can I display the start situation, for example the normal chessboard structure, in an xskakloop? So to speak as "Move 0". \documentclass[margin=5mm, varwidth]{standalone} \usepackage{...
user avatar
  • 6,335
1 vote
1 answer
34 views

How to mark the current move AND all previous moves when using an xskakloop (movement history)

With movenr={1}, markmove=\xskakget{movefrom}-\xskakget{moveto}, movenr={2}, markmove=\xskakget{movefrom}-\xskakget{moveto}, movenr={3}, markmove=\xskakget{movefrom}-\xskakget{moveto}, ...... .........
user avatar
  • 6,335
0 votes
0 answers
14 views

xskak: defaultmovenr=0 does not work at xskakloop

I set \xskakset{defaultmovenr=0,}. And \mainline{0. Ba8 ... 1. Be4 ... 2. Bh7 ... 3. Bg8 ... 4. Ba2 ...} will work now. But if I use an xskskloop, it does not work any more. What do I have to do? \...
user avatar
  • 6,335
0 votes
1 answer
32 views

Easier xskakloop or xskak-only solution for a chessgame-loop

I created a loop for a chess game. I used a tikz-foreach method and created a (code-intensive) \MoveIdList for it The question is: can the optics be implemented with an xskak-only solution with a \...
user avatar
  • 6,335
0 votes
1 answer
38 views

chessboard / xskak: How to add a move-number '0.' at the chess-annotation

Is is possibe to get a "Startposition" / "Number 0" in the move-annotation-printout? If I try \hidemoves{0. Ke4 ... 1. Ke3 ... } I get the error ! mainline: 0 is not the correct ...
user avatar
  • 6,335
2 votes
2 answers
79 views

How to use only the moves of a white piece in board-output and chess-annotation

Is there a way to capture and display just the moves of a white piece, in both board-output AND chess-annotation? If possible without the three placeholder dots. \documentclass[a4paper]{article} \...
user avatar
  • 6,335
0 votes
0 answers
29 views

chessboard: How to set the chess pieces in the foreground?

How can I set the chess piece in the foreground? \documentclass[margin=5mm, varwidth]{standalone} \usepackage{tikz} \usepackage{xskak} \usepackage{chessboard} \setchessboard{showmover=false} \begin{...
user avatar
  • 6,335
4 votes
1 answer
86 views

How to fill a letter (chess piece) with color

I choosed a King from 'DejaVu Sans'. Is there a way to fill the a chess piece with white? % arara: lualatex \documentclass[margin=5mm, varwidth]{standalone} \usepackage{xcolor} \usepackage{fontspec} \...
user avatar
  • 6,335
0 votes
0 answers
33 views

Find out the fontfamily name or change the chess pieces font at chessboard.sty

At the chessboard package I tried without success boardfontfamily={DejaVu Sans}, but I had to hear this is not a 'fontfamily name'. So what is the generall way to find out the fontfamily name of a ...
user avatar
  • 6,335
1 vote
1 answer
79 views

chessboard: creating and positioning a red king (new piece)

I need a red king here in the middle, that means a black king figure (piece), but in red color. He should have his own character, like 'R' (if possible). This is normally \char"2654 The handbook ...
user avatar
  • 6,335
1 vote
1 answer
46 views

something wrong in an edge case for chessboard?

There's a combination of three features in chessboard that's doing something unexpected (typesetting some characters in nullfont): curvemove, marking a not-in-a-single-file move, and a non-integer ...
user avatar
  • 85
2 votes
1 answer
53 views

How to draw lines properly between nested nodes using tikzpicture and chessboard

I am trying to create a states tree for demonstrating the N-Queens problem. I've managed to create a tree and display the chessboards in various states however there there is no gap between the nested ...
user avatar
0 votes
1 answer
52 views

How to use chessboard?

I try to use chessboard package but cannot obtain anything: \documentclass[12pt]{book} \usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots. \geometry{...
user avatar
5 votes
2 answers
422 views

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.
user avatar
  • 1,878
0 votes
0 answers
44 views

xskak: How can I control the layout of xskakloop?

I would like to modify the appearance of this move by move game by controlling the vertical and horizontal spacing, the number of columns displayed (2 or 4, for example), and scale it to the normal ...
user avatar
0 votes
1 answer
57 views

Placing Checkers pieces on a chessboard with `chessboard`, maybe using `xcolor`?

I would like to draw positions of Checkers (aka Draughts) with the almighty package chessboard, and I would like to place some discs with a nice boundary, rather than plain discs. Edit: What I ideally ...
user avatar
  • 101
0 votes
0 answers
45 views

In xskak & chessboard, how to use a variable's value for the moves?

I am using the packages xskak and chessboard. How should I first define a variable to hold the moves, then use that variable when using \hidemoves and \mainline? Minimal non-working example: \...
user avatar
  • 402
1 vote
1 answer
95 views

Xskak/Chessboard moverstyle squarearrow

I am trying to use moverstyle=squarearrow on Xskak/chessboard. code is like this : \usepackage{pifont,graphicx} \usepackage{xskak} \usepackage{chessboard} \usepackage{texmate} \newchesgame \...
user avatar
4 votes
1 answer
225 views

Dashed arrow on a chessboard

The Latex below draws a board with an arrow. How can I change the appearance of the arrow line, so that it is dashed? \documentclass{article} \usepackage{chessboard} \begin{document} \begin{frame} \...
user avatar
  • 75
3 votes
1 answer
171 views

Custom chessboard axis labels

I would like to use the chessboard package to create a chess board, but with customized axis labels. The Latex below creates a board where the files are labelled with numbers instead of letters. I ...
user avatar
  • 75
1 vote
0 answers
118 views

Chessboard tree diagram

I'm wanting to draw a chessboard tree diagram and I am trying to find the best way to create the tree diagram part. So far I have the below but it looks like the chessboard has a white border which is ...
user avatar
0 votes
1 answer
36 views

Problems viewing chess board in Hebrew document

I'm trying to draw a chess board with skak but this is the result: As you can see it's opposite... Here is MWE: \documentclass[hebrew,english]{scrartcl} \usepackage{fontspec} \makeatletter \...
user avatar
  • 2,439
1 vote
1 answer
100 views

Multiple chessboards in one line

How would I place 4 chessboard side by side? Right now all of them are in one column, below each other. This is the code: \documentclass[12pt, a4paper]{report} \usepackage{ucs} \usepackage[utf8x]{...
user avatar
  • 13
0 votes
1 answer
89 views

Using skak/chessboard for problems, not games

I want to use skak/chessboard to make the diagram of a problem. This accomplishes what I want: \documentclass{article} \usepackage{skak,chessboard} \begin{document} \newgame \def\myfen{8/R7/1R6/6k1/...
user avatar
  • 129
0 votes
1 answer
53 views

Handling the command elements together in the column break by multicols

I try to break the pages with chess diagrams containing the header to the two different columns. The problem is that the command elements are not process processed together. For example, in one of the ...
user avatar
0 votes
1 answer
110 views

What package for board game that's not chess and is closer to othello?

I'd like to typeset a board game that (visually speaking) is closer to Othello --- because it uses round stones. The package othelloboard is almost perfect. My main concern is that I need a ...
user avatar
0 votes
1 answer
287 views

chessboard: How to write numbers into fields

I'm using the great package chessboard and I am looking to write numbers into each field of the board to have such chessboard : Currently, I asked python for i in range(64): case = f"{chr(97+i%...
user avatar
0 votes
1 answer
179 views

How to add chess diagram \xskakloop in different frame LaTeX beamer?

\documentclass[aspectratio=169]{beamer} \hypersetup{pdfpagemode=FullScreen} \renewcommand{\familydefault}{\rmdefault} \usepackage{tikz} \usepackage[LSB2,LSBC4,T1]{fontenc} % use fontenc before ...
user avatar
  • 469
0 votes
1 answer
55 views

I did something with coloring the borders of the chessboard and now I can't have coordinates in any of my boards

\documentclass{article} \usepackage[margin=2.5cm,a4paper]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[pgf=false]{chessboard} \usepackage{xcolor} \usepackage{xskak} \...
user avatar
0 votes
2 answers
114 views

Display a key/legend beside a chess board diagram

Is it possible to display a key (legend) beside a chess board image in latex? That is, a list of piece names and the corresponding pictorial representation. I am using the latex chessboard package at ...
user avatar
  • 1,015
1 vote
1 answer
132 views

Divide a Chess Game into two parts and show individual moves using a looping code using xskak package

Following is a game which has two parts - First part - Opening moves and Second part - then start to analyse the further moves. For this I create a game firstgame1 and display the moves using \...
user avatar
  • 749
0 votes
0 answers
41 views

What is the difference between \nextfen and \pastfen in the package xskak

I am trying to understand how continuation of a game (to create variations) in chess moves for a particular game can be achieved using \newchessgame along with its options can be done. I fail to ...
user avatar
  • 749
0 votes
1 answer
325 views

How to draw a chessboard with (\multido )? [closed]

How to draw a chessboard with (\multido )?
user avatar
2 votes
1 answer
156 views

The chess example 10-1-12 /LaTeX Graphics Companion/

I'm trying to compile the example10-1-12 from LaTeX Graphics Companion but it gives an error: Command Line: bibtex.exe "chess2" Startup Folder: C:\Users\hynek0\Desktop\TH0dipl This is BibTeX, ...
user avatar
  • 1,878
5 votes
3 answers
1k views

How to insert ellipses (three dots) on a blank chessboard?

I know how to make a blank chessboard, but I want to show that the chessboard is very large by putting in ellipses like this following sketch
user avatar
  • 199
0 votes
1 answer
220 views

Draw king chess on chess board

Help me, how to draw the king on chess board.
user avatar
3 votes
2 answers
342 views

Using chessboard package, how to render "black" squares in solid gray?

In latex chessboard package, by default, black squares are rendered with hatch patten. I want them in solid gray. My several attempts failed, chessboard.pdf is not helpful here. The programming model ...
user avatar
  • 137
0 votes
2 answers
222 views

Irregular Chessboard and Labels

I need to type only half triangular part of a chessboard with different coloring setting and label the rows and columns not by a,b,...;1,2,... but by other letters. More explicitly, I need to type ...
user avatar
  • 3
2 votes
1 answer
144 views

foreach loop error in generating diagrams

In my previous question, How to set macro for looping with minipage?, I was suggested using a foreach loop to solve the problem. After testing, the loop works correctly as show in page 1 pdf. However, ...
user avatar
  • 187
5 votes
1 answer
131 views

How to set macro for looping with minipage?

I wish to create a chess worksheet with 4 groups: Basic, Pawn, 2Pawns, and Minor+Pawns. A manual worksheet is done by me. But I wish to automate this process. The worksheet will pull \chessboard from ...
user avatar
  • 187
0 votes
0 answers
40 views

big space between text and diagram

I wish to create a diagram that has text appears vertically next to it. The "pawns" is not what I want. So at best, I try to do it with "basic". In my MWE, the "basic" appears vertically but there's ...
user avatar
  • 187
1 vote
1 answer
57 views

Show only some set of pieces with xskak

The command \showonlywhite which I was using with the skak package is no longer working with the xskak package. ¿How can I draw just some set of pieces?
user avatar
  • 253
1 vote
1 answer
1k views

Chess Diagrams with text at LaTeX

I need your help in LaTeX editing: I want to prepare chess book with tactics. However, I cannot adjust my pages for including text below diagrams. How can I do it? Here the pictures of my idea (...
user avatar
0 votes
1 answer
93 views

xskak manual page 36 - diagram below printing of moves

Last nite, I saw a german chess book with a diagram after every 5 moves. The 1st five moves were shown, then followed by a diagram. Following Ulrike Fischer's feedback, I added her code. When I ...
user avatar
  • 187
0 votes
1 answer
66 views

bigger font in labeling and diagram going side to side

I am building around my 1st question. In it, I presented a game summary. Now here is guess the move. The user must figure out Morphy's move. Here's my code in two part. The first part is the main ...
user avatar
  • 187
2 votes
2 answers
193 views

diagram not align and mark on move

I am modifying the Latex output from Scid vs PC. In doing it, I am applying Fischer's solution of xskakloop into making the game displaying move by move. Here's my code for Morphy's famous game. I ...
user avatar
  • 187