4 ms·
PGN is just a format to communicate the games. So pgn pretty-printing is at the same level as pretty printing json. Nothing wrong with that, but at some point y
by toolslive 2y ago
PGN is just a format to communicate the games. So pgn pretty-printing is at the same level as pretty printing json. Nothing wrong with that, but at some point you might want to publish a game with diagrams variations, ....
For that purpose, you can use Latex (yes, I know, not everybody's cup of tea)
https://www.overleaf.com/learn/latex/Chess_notation https://www.overleaf.com/learn/latex/Chess_notation
- deleted 2y ago[deleted]
- andix 2y agoThis looks a bit cumbersome to write to me. I really like the JS preview/rendering plugins for fenced code blocks in Markdown. For example Mermaid, which is supported by many Markdown renderers or IDEs. [1] It would be fun to have something like this for chess notation, that interactively renders the last position with forward and back buttons. Static PDFs are mostly a thing of the past. [1]: https://github.blog/developer-skills/github/include-diagrams-markdown-files-mermaid/ https://github.blog/developer-skills/github/include-diagrams...
- gmasclet 2y agoThanks for the idea, I'd not considered it. LaTex may have some use, I'll take a look. Indeed, probably the best solution to publish a game with diagrams. For personal notes, I would also consider embedding PGN into Markdown. Sadly, PGN rendering in Markdown isn't supported yet, as far as I know (something like Mermaid would be awesome).