package pgn_to_tex

  1. Overview
  2. Docs
On This Page
  1. Quick start
  2. API
A chess PGN to TeX conversion tool

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1.0.tar.gz
md5=a280c5fe01593e4f8421b22cba6b2e6e
sha512=bab787485725decb030a527d05c74d3cc30ad1cca31a37e2c2a5358a58f82383e0b1ffb4f9dd9035159f3f4887f0ae909abcbdbd1ab119e1b1b2a2af621ef047

doc/index.html

Pgn_to_tex

Pgn_to_tex converts chess games written in PGN to LaTeX fragments. Move numbers, moves, comments, variations, NAGs, and optional diagrams of selected positions are rendered into text suitable for inclusion in a larger LaTeX document.

Quick start

  let tex = Pgn_to_tex.to_tex "1. e4 e5 2. Nf3"

Pass ~clock:true to render clock annotations. Pass ~diagram_data to select positions for diagrams; build a selection with Pgn_to_tex.parse_diagrams_json or use Pgn_to_tex.empty_diagrams to explicitly request a game with no diagrams.

API