Re: [Scidvspc-users] Bug with Export Game to LaTeX
Chess Database and Toolkit program
Brought to you by:
stevenaaus
From: Steve A <ste...@gm...> - 2016-03-10 07:58:29
|
Thanks Mauro. Yes, i knew castling diagrams are broken. Your changes are a little too many for me to work with at the moment, but this latex code is very useful ( i didnt have the slightest how to achieve these ends). \usepackage{ifthen} \usepackage{xstring} and maybe someone will get around to using it, or i will when i get some time . > 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 also note these changes , which are probably desired, but employing these changes in the C won't be trivial for me, and might be too much work for little return. Steve On Thu, Mar 10, 2016 at 3:17 AM, Mauro Castanho <cas...@gm...> wrote: > 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 > > > > > ------------------------------------------------------------------------------ > 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 > Sci...@li... > https://lists.sourceforge.net/lists/listinfo/scidvspc-users > > |