Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [chess]

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

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

Creating custom chess symbols (custom image) in LaTeX that remain compatible with xskak or chessboard packages for FEN positions

I want to use custom chess piece images/icons in my LaTeX document, but I still need to be able to utilize the xskak or chessboard packages for displaying FEN positions. What is the best approach or ...
Nogard's user avatar
  • 101
0 votes
0 answers
23 views

problem with extended chess pgn format (including time)

I have chess games in pgn format enriched with times (eg.: 1. Nf3 {[%clk 00:45:08]} {[%emt 00:00:11]} c5 {[%clk 00:45:12]} {[%emt 00:00:08]}. Is there any style which let me control how much time ...
Paolo Ciancarini's user avatar
1 vote
0 answers
40 views

how to add parentheses in the chess moves using xskak

I have a very simple question but I am not able to find the answer. How can I try 22... N(g7)f5 using the xskak package. This notation means that the knight may go both g7 and f5 squares. For example,...
AYBRXQD's user avatar
  • 759
1 vote
0 answers
67 views

has anything gone wrong with mpchess [duplicate]

I have used the mpchess package to put chess diagrams in multiple documents and everything was fine. Suddenly after some update all the files that contains mpchess were not compiling until you remove ...
Wassim Saeed's user avatar
1 vote
1 answer
80 views

Chess font specific problems on a linux arch based distribution (arcolinux)

For short, it is about getting (white and) black figurine fonts to work, so that typing some chess pages would focus on chess, not on the latex clutter around them. Explicitly: Question: The Berlin ...
dan_fulea's user avatar
  • 113
0 votes
1 answer
98 views

Increasing LuaLaTeX compiling speed having 2525 chess diagrams

I want to create a book having 2525 chess position. I have already defined \tacticboard command that should print diagrams. However, due to the size, the PDF generation with LuaLaTeX goes too long (...
Ulvi Bajarani's user avatar
1 vote
1 answer
109 views

Using TikZ (or other package) to draw a gameboard, somewhat similar to chess (Hnefatafl)

I need to write some documentation and need to display a Hnefatafl board. Basically it is an 11x11 board, some of the squares would be highlighted (e.g. cross hatching). The pieces are basically ...
LewisE's user avatar
  • 11
1 vote
1 answer
66 views

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 ...
Realraptor's user avatar
0 votes
0 answers
118 views

How to color white chess pieces black?

I need a chessgame with just one piece color where I can make my moves and each additional board after \mainline stays in the color, black pieces stays black and the white pieces get black. The ...
sp8cky's user avatar
  • 53
0 votes
0 answers
73 views

How can I add labels to each square in \chessboard using xskak?

I searched a lot on the internet but I couldn't find any helpful answers, so here I am. I'm trying to create a chessboard figure, using xskak package that contains a label for each square. An example ...
Pietro's user avatar
  • 101
1 vote
0 answers
216 views

Writing a Chess Book in LaTeX

I am interested in writing a chess book in LaTeX. Are there any existing LaTeX templates for writing Chess books in overleaf? Also, is there any streamlined way to use Chessbase directly for writing a ...
ThePuzzlr's user avatar
0 votes
0 answers
45 views

How to type a chess move that disguishes the black move and the white move?

I was reading this post here. And I couldn't really find the answer. Basically, how can I type a move of BLACK ROCK to c8 and for a WHITE ROCK to c8? Something like \wmove{Ra8} and \bmove{Ra8} ...
CasperYC's user avatar
  • 697
0 votes
1 answer
87 views

usepackage {babel} and {chess} incompatibility

Have been using a document since time immemorial with \usepackage{babel} and \usepackage{chess}, amongst many others which is why it took me hours to find the culprits. Out of the blue this evening I ...
Reinhard Neuwirth's user avatar
0 votes
1 answer
76 views

why mpchess generated board is out of the page here is the simplest code possible

\documentclass[a4paper, twoside,12pt]{article} \usepackage[margin=1.5cm]{geometry} \usepackage{polyglossia} \setdefaultlanguage{arabic} \setotherlanguage{english} \setmainfont{amiri} \usepackage{...
Wassim Saeed's user avatar
1 vote
1 answer
54 views

Optimize tikz in combination with other packages // graphical visualization of chess opening repertoire

Is there a possibility to write the code in an easier way?: \documentclass[landscape]{article} \usepackage[paperwidth=42in,paperheight=40in,margin=0.5in]{geometry} \usepackage{skak} %package to ...
laminin's user avatar
  • 307
1 vote
2 answers
161 views

Knights tour figure diagram

I'm converting my handwritten class notes into LaTeX. And there are some figures that I have been using the tikz package.Is it possible to transform the figure below, which represents the horse's ...
Kauan Paulino's user avatar
0 votes
1 answer
42 views

Can't change language using ```xskak``` package

I am studying chess and decided to take notes. So I am using xskak package. I decided to write in portuguese so that I can share with some friends. The package, however, doesn't obey my command. Here ...
Brasil's user avatar
  • 1,380
0 votes
0 answers
103 views

Animate a chess line

I would like to animate a line of a chess opening but the only way I found is kinda difficult or repetitive so I would like to write a command that allows me to do so. Here is an example: \...
Matteo's user avatar
  • 1
1 vote
1 answer
71 views

Chessboard with named squares in foreign language

I am trying to translate an example from the documentation of the chessboard package, page 54. The code's example is: \setchessboard{tinyboard,color=magenta,clearboard} \chessboard[pgfstyle={[base,at={...
cgss's user avatar
  • 311
0 votes
1 answer
57 views

xskak wont correctly display castle \ParseCastling doesn't match its definition

Hello I am using xskak and I hit the issue which I have to solve: castling I understand you have to use letter not digit as noted [here][1] But my issue is when I use O-O I hit error in building PDF: !...
Melkor's user avatar
  • 3
3 votes
1 answer
232 views

Chess: knight move diagram with 'L' shaped arrows

When drawing knight moves in a board, is it possible to make the line look like an 'L', ie straight for 2 squares then turning 90 degrees and straight again? For example, the following piece of code \...
cgss's user avatar
  • 311
0 votes
1 answer
71 views

Align large chess pieces inside tabular

My goal is very simple: large images of chess pieces with their names next to them. So far I haven't manage to align them correctly though. Here's my code \documentclass[12pt]{article} \usepackage[T1]{...
cgss's user avatar
  • 311
0 votes
3 answers
122 views

Text width inside a table

I'm using tables to format pages for a book with 6 chess positions for page. I'd like the positions to be aligned and it works fine if the text is short, but for positions where I have a longer ...
Nate's user avatar
  • 103
1 vote
1 answer
99 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 ...
cis's user avatar
  • 8,922
0 votes
0 answers
49 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}{ ...
cis's user avatar
  • 8,922
1 vote
0 answers
62 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{...
cis's user avatar
  • 8,922
1 vote
1 answer
72 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}, ...... .........
cis's user avatar
  • 8,922
0 votes
0 answers
18 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? \...
cis's user avatar
  • 8,922
1 vote
1 answer
129 views

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

Is it possible 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 ...
cis's user avatar
  • 8,922
4 votes
1 answer
122 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} \...
cis's user avatar
  • 8,922
1 vote
1 answer
138 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 ...
Davide Leonessi's user avatar
0 votes
0 answers
101 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: \...
Rosie F's user avatar
  • 444
2 votes
1 answer
649 views

Drawing a chess queen in a Tikz grid

I'm quite new to LaTeX and I'm trying to replicate this using Tikz: I know there is some chess-related things I can include, but it diesn't seems to be adapted for something like this. \documentclass{...
PoustouFlan's user avatar
2 votes
0 answers
222 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 ...
trieasyboid's user avatar
9 votes
4 answers
2k views

Inline chess symbols

I want to put chess symbols inline in my document. I know that, using skak, I can produce nice looking inline symbols with commands like \symking, etc. However, these are only white, and I need white ...
The Ledge's user avatar
  • 201
0 votes
1 answer
167 views

Change fonts with `chessfss`

I would like to change font for the chess symbols, but it doesn't work. I have tried to copy the code on the documentation of chessfss but with doesn't work. Can you help me, please? Herewith, my ...
Logos's user avatar
  • 419
4 votes
2 answers
1k views

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{...
SomeT's user avatar
  • 337
1 vote
1 answer
77 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 ...
Ulvi Bajarani's user avatar
1 vote
1 answer
220 views

Use symbols from **bartel-chess-fonts** in Overleaf

I want to use a few symbols from the bartel-chess-fonts font in two projects in Overleaf (one is pdfLaTeX, other is XeLaTex). I downloaded the contents, which are all .mf or .tfm files, and added ...
Joost's user avatar
  • 87
1 vote
1 answer
158 views

Latex: use Pirat font for the King's fig instead of Skaknew King's fig

I'm using chessfss together with xskak package to make game's annotation, my favourite chess font is skaknew, but the figfont for the King look a bit complicated. Is there anyway to use Pirat font for ...
Nguyen Wanderoz's user avatar
0 votes
1 answer
237 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 ...
rakatex's user avatar
  • 489
0 votes
2 answers
182 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 ...
user4417's user avatar
  • 1,054
1 vote
1 answer
160 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 \...
nichas's user avatar
  • 771
0 votes
0 answers
55 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 ...
nichas's user avatar
  • 771
2 votes
1 answer
221 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, ...
user2925716's user avatar
  • 1,970
1 vote
0 answers
176 views

Printing numbers in tcolorbox

I was able to solve a significant part of the problem, trying to alter the game header in this manner. The last problem is the handling number. How can I alter the header below to transform it the ...
Ulvi Bajarani's user avatar
0 votes
1 answer
160 views

Combining texmate header and xskak notation

I tried to alter the PGN2LaTeX3 in that manner that it should create headers in my book, however I failed to do it. for example, some pgn2latex_out.tex result: \newgame \resetPgnTags \def\Site{} \...
Ulvi Bajarani's user avatar
0 votes
1 answer
360 views

Align Chess Diagram and notation

I'm trying to combine both a notation below diagram, but I cannot align them properly. Here, I have asked the question, but I don't want the text be a part of diagram. How could I do (the command is /...
Ulvi Bajarani's user avatar
4 votes
1 answer
639 views

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{...
user avatar
4 votes
2 answers
605 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 ...
userOne's user avatar
  • 147