TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 4 down vote accepted

You can print the FEN with



FEN: \csname chessgame.myfen\endcsname


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

Your Answer


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.