I found (by pure chance) that exporting to LaTeX fails when there is a
diagram just before a O-O or O-O-O. Consulting the xskak manual, I
discovered that the issue is on the commands \xskakget{movefrom} and
\xskakget{moveto}. When the move is a castling, these comands do not return
only one square, but two, separated by a comma. Therefore, if white castles
short, movefrom=e1,h1 and moveto=g1,f1. That breaks the code that draws an
arrow showing the last move.

I modified the LaTeX file and created a new command \boardgamewithmarks to
address these issues. Please keep in mind that it is the first time I
program in LaTeX, so I found a crude solution after struggling for hours
trying to find a more elegant one.

I had to include the packages ifthen and xstring.

Beside that, I simplified a bit the typeseting, increasing the vertical
space between paragraphs so it will not be necessary to use line breaks
often. I also replaced some line breaks with \vspace to avoid LaTeX
warnings. Also put a \vspace before the closing horizontal line. Use them
at your criteria.

I am including the relevant files. I added a file showing long castle for
both sides, too.

Thanks,
Mauro

Attachment: original.pgn
Description: application/chess-pgn

Attachment: original.tex
Description: TeX document

Attachment: corrected.tex
Description: TeX document

Attachment: longcastling.tex
Description: TeX document

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
Scidvspc-users mailing list
Scidvspc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scidvspc-users

Reply via email to