Not logged inRybka Chess Community Forum
Up Topic Rybka Support & Discussion / Rybka Discussion / New pgn to Latex conversion script
- - By Felix Kling (Gold) [de] Date 2017-07-16 21:01 Upvotes 2
I finished a little python script for converting complex games to Latex (using mostly skak). Maybe you want to try it :-)
Parent - - By JohnS (*) Date 2018-01-31 09:49
This looks interesting. Is it possible to get a Windows exe file for the program? Thank you.
Parent - By Felix Kling (Gold) [de] Date 2018-02-01 10:46 Edited 2018-02-01 10:48
Well, it is written in Python, so although you may be able to create an .exe with some tricks, you usually want to run it with the Python interpreter.

In Linux you browse to the script folder (via "cd C:\Script" for instance in Windows) and execute it via "python3" (in Windows maybe "py")

I fixed some bugs in that script, so I'll attach a new version.
Parent - - By Felix Kling (Gold) [de] Date 2018-02-05 11:10 Edited 2018-02-05 11:18
Here's a version numbering variations 1) 2) 2a) 2b) and so on. I'm not sure which behaviour is intended for numbering deep variations: 2aa) or 2a1)?

Btw., as you will have noticed, the code is pretty ugly :-) . Still, it works.
Attachment: (10k)
Parent - - By JohnS (*) Date 2018-02-05 22:21 Edited 2018-02-05 22:42
Thank you Felix for the new version. The output from this script is much nicer than from the Aquarium print game option.

I see your point about deep variations as it could get confusing but either version is understandable to me as a user.

Parent - By Felix Kling (Gold) [de] Date 2018-02-06 07:20
Glad you like it :-)
Btw., don't forget to set "copy only moves and text comments" in the Aquarium options (pgn options there). Otherwise coloured moved will appear as strange strings in the text.
Parent - By Felix Kling (Gold) [de] Date 2018-03-10 22:34
Here's a much nicer version from typographical point of view. Now you are ready to typeset your own chess book ;-)
- By Felix Kling (Gold) [de] Date 2018-03-17 16:15 Upvotes 3
OK, I found out that my formatting was truly horrible, so here's a new version.
Attachment: (221k)
Up Topic Rybka Support & Discussion / Rybka Discussion / New pgn to Latex conversion script

Powered by mwForum 2.27.4 © 1999-2012 Markus Wichitill