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.
See https://docs.python.org/3/using/windows.html

In Linux you browse to the script folder (via "cd C:\Script" for instance in Windows) and execute it via "python3 pgn2latex.py" (in Windows maybe "py pgn2latex.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: pgn2latex2John.zip (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.

John
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: pgn2latex3.zip (221k)
Up Topic Rybka Support & Discussion / Rybka Discussion / New pgn to Latex conversion script

Powered by mwForum 2.27.4 © 1999-2012 Markus Wichitill