Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PGN variations support #1

Open
9glenda opened this issue Apr 3, 2024 · 3 comments
Open

PGN variations support #1

9glenda opened this issue Apr 3, 2024 · 3 comments

Comments

@9glenda
Copy link

9glenda commented Apr 3, 2024

first of all thanks for creating this package.
I'm not sure rather that's what your package is supposed to provide but I'd like to see more pgn support.
You could take inspiration from https://www.overleaf.com/learn/latex/Chess_notation (the latex chess package I currently use).

It would be nice if you can do something similar:

\documentclass{article}
\usepackage{xskak}
\begin{document}
\newchessgame
\mainline{1.e4 e5 2.Nf3 Nc6 3.Bb5}

\chessboard

\mainline{3...a6}

A variant \variation{3...Nf6} is used here to show a \texttt{\string\variation} command.

\mainline{4.Ba4}

\chessboard
\end{document}
@9glenda 9glenda changed the title PGN support PGN variations support Apr 3, 2024
@9glenda
Copy link
Author

9glenda commented Apr 3, 2024

it would also be nice to have a 0.1.1 release including the games in universe

@MDLC01
Copy link
Owner

MDLC01 commented Apr 3, 2024

I'm currently working on PGN support. I will likely release the next version of the package, including the game function, when PGN is supported (should not be too long to implement). If you have an urgent need for the game function, I can create a release sooner.

I also want to note that the game function is currently not fully implemented (notably, castling and en passant are not supported).

@MDLC01
Copy link
Owner

MDLC01 commented Apr 22, 2024

I finally added support for importing for the portable game notation format (which itself support variations) in efe0364.

I may look into variations later, but I'm not sure how to expose those in a user-friendly way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants