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

Add NAG support to export mode #7

Open
orenlivne opened this issue Jan 23, 2022 · 0 comments
Open

Add NAG support to export mode #7

orenlivne opened this issue Jan 23, 2022 · 0 comments

Comments

@orenlivne
Copy link

If a game contains NAGs, \mainline prints them. But if the game is exported and then printed with \printchessgame, the NAG disappear.
Underlying issue: the export file misses a \makeatletter/\makeatother and \printchessgames doesn't use it.
See also: https://tex.stackexchange.com/questions/631137/how-to-print-nags-in-xskak-printchessgame

Example:
`\documentclass{book}
\usepackage{xskak}

\begin{document}
\newchessgame[white=none,black=none,id=export]
\mainline{1. d4 Nf6 $1}
\
\xskakexportgames[file=test, games={export}]
\input{test.xsk}
\printchessgame
\end{document}`

Temporary workaround (won't be needed after bug fix):
`
\documentclass{book}
\usepackage{xskak}

\begin{document}
\newchessgame[white=none,black=none,id=export]
\mainline{1. d4 Nf6 $1 2. Nf3 c5?}
\xskakexportgames[file=test, games={export,export}]

\makeatletter
\input{test.xsk}
\gdef\xskak@do@printmove{\xskakget{san}\xskakget{comments}\xskakget{nag}}
\makeatother
\printchessgame
\end{document}`

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

1 participant