Questions tagged [chess]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
84 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 ...
0 votes
0 answers
44 views

latex code to typeset all 960 starting positions ofchess 960

iam trying towrite a latex code that typesets all 960 starting positions of chess960 chess. I tried the code: \documentclass{article} \usepackage[margin=1cm]{geometry} \usepackage{skak} \usepackage{...
0 votes
1 answer
17 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 ...
  • 1,246
0 votes
0 answers
76 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: \...
  • 1
1 vote
1 answer
50 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={...
  • 301
0 votes
1 answer
27 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: !...
  • 3
3 votes
1 answer
98 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 \...
  • 301
0 votes
1 answer
33 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]{...
  • 301
0 votes
3 answers
91 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 ...
  • 103
1 vote
1 answer
65 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 ...
  • 6,711
0 votes
0 answers
32 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}{ ...
  • 6,711
1 vote
0 answers
39 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{...
  • 6,711
1 vote
1 answer
47 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}, ...... .........
  • 6,711
0 votes
0 answers
15 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? \...
  • 6,711
0 votes
1 answer
60 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 ...
  • 6,711
4 votes
1 answer
99 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} \...
  • 6,711
1 vote
1 answer
80 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 ...
  • 111
0 votes
0 answers
63 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: \...
  • 424
2 votes
1 answer
302 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{...
  • 63
1 vote
0 answers
153 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 ...
9 votes
4 answers
1k 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 ...
  • 201
0 votes
1 answer
116 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 ...
  • 399
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{...
  • 317
1 vote
1 answer
67 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 ...
1 vote
1 answer
163 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 ...
  • 87
1 vote
1 answer
117 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 ...
0 votes
1 answer
199 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 ...
  • 479
0 votes
2 answers
151 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 ...
  • 1,035
1 vote
1 answer
145 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 \...
  • 749
0 votes
0 answers
46 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 ...
  • 749
2 votes
1 answer
184 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, ...
  • 1,812
1 vote
0 answers
154 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 ...
0 votes
1 answer
128 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{} \...
0 votes
1 answer
278 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 /...
4 votes
1 answer
596 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
433 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 ...
  • 147
0 votes
1 answer
116 views

using lyx chess workshop symbols two Knight goes to the same

if i have two Knight in the b colum, one in b8 and one in b4, how distinguish which one goes to c6, I try N8c6 but that is not working this is the Latex configuration \usepackage{multicol} \...
0 votes
0 answers
178 views

Using other than skak chess fonts

I want to use other fonts than skak (merida, cases etc.). I've downloaded enpassant fonts, and even copied them to skaknew folder. However, I cannot use fonts, which do not have .pfb files, describing ...
2 votes
1 answer
164 views

Numbering chess games and adjusting makeevent text

I've finally adjusted my .pgn, editing by hand in Notepad++ and replacing PGN strings with texmate commands. Now, I need a) adjust numbers of games (\printanswernumber); b) align tournament names ...
1 vote
1 answer
860 views

Exporting .pgn notation to TeX file

I've 855 positions in .pgn, which notations I want to export to .tex file. How can I do this? Should I do all of them one by one? In ChessBase, I can export them as .pdf file, but I cannot copy codes ...
5 votes
1 answer
137 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 ...
  • 187
0 votes
0 answers
57 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 ...
  • 187
1 vote
1 answer
65 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?
  • 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 (...
0 votes
1 answer
271 views

How to generate a table with all the chess notation

I like to learn how to create a listing of all the chess moves in a table. In my MWE, I manually enter in the 1st three moves. Is there a way I can do it through looping? \documentclass{article} \...
  • 187
1 vote
1 answer
77 views

xskakloop printing out of moves - page 35

In my previous post, bigger font in labeling and diagram going side to side, I left out the solution so this is a continuation. I want to print out only the white moves. The code on page 35 is not ...
  • 187
0 votes
1 answer
116 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 ...
  • 187
0 votes
1 answer
68 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 ...
  • 187
2 votes
2 answers
236 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 ...
  • 187
2 votes
1 answer
73 views

macro for repeated command

I am a new user to LATEX. I have read a lot of the suggestions done by Ulrike Fischer. She suggested a solution to the problem presented here: xskak displaying certain moves I found that I use a lot ...
  • 187