Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How can I print the GBR-code and the FEN of the current position of \chessboard into the document?

Is this possible for instance for FEN without the transfer from \chessboard to \chessgame with the help of the keys storefen and restorefen and the following command \boardasfen from the skak package?

Up to now I don't know any command to output the GBR-code within the existing chess packages for LaTeX.

Any help would be kindly appreciated!

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You can print the FEN with

\documentclass{article}
\usepackage{chessboard}

\begin{document}
\chessboard[setpieces={Ke1,ke8,Ra1},storefen=myfen]

FEN: \csname chessgame.myfen\endcsname

\end{document}

There is no code/command to print the GBR but it is probably possible to build it with the help of the key getpiecelists.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.