Install GTDraw from PyPI:
pip install gtdrawTo use the interactive GUI, install the optional gui extra (pip install "gtdraw[gui]"); see Interactive GUI.
See the developer guide for developer installation.
Requirements¶
Python 3.11+
pdflatexwith TikZ and thesgamepackage (TeX Live or MiKTeX), for PDF, PNG and SVG generationpdftocairo(Poppler), for PNG and SVG generation
Installing LaTeX¶
To use GTDraw, a working LaTeX installation is required. The below offers the minimal installation that has been tested to work on Ubuntu. Other Linux distributions have not been tested and the Mac/Windows options have only been tested with larger full LaTeX installations:
sudo apt-get install texlive-latex-base texlive-latex-extra texlive-pictures texlive-gamesFor a full distribution on any OS try one of the below:
macOS:
Install MacTEX or
brew install --cask mactex
Ubuntu:
sudo apt-get install texlive-full
Windows: Install MiKTeX
PNG and SVG generation¶
PNG and SVG generation convert the compiled PDF with pdftocairo, which is part of Poppler. It must be installed and available in PATH:
macOS:
brew install poppler
Ubuntu:
sudo apt-get install poppler-utils
Windows: Install Poppler, for example from poppler-windows, and add its
Library/binfolder to PATH.