This guide walks you through setting up a fresh Windows machine to use ChessPublisher.
- Download Python from https://www.python.org/downloads/windows/
- Run the installer
- IMPORTANT: Check ✅ "Add Python to PATH" at the bottom of the installer
- Click "Install Now"
Verify installation by opening Command Prompt (Win+R, type cmd, press Enter):
python --versionMiKTeX is recommended for Windows - it's faster to install and automatically downloads packages as needed.
- Download from https://miktex.org/download
- Run the installer
- Choose "Install missing packages on-the-fly: Yes" (important!)
- Complete installation (~5-10 minutes)
After installation, open a new Command Prompt and verify:
pdflatex --versionTeX Live provides a complete LaTeX distribution but takes significantly longer to install (~2 hours for a full installation).
- Download the installer from https://tug.org/texlive/acquire-netinstall.html
- Run the installer and follow prompts
- For a smaller install, click "Advanced" and select "basic" scheme
Open Command Prompt (run as Administrator if you encounter permission issues):
For MiKTeX (pre-install packages to avoid prompts during use):
mpm --install=xskak
mpm --install=chessboard
mpm --install=chessfss
mpm --install=skakFor TeX Live:
tlmgr install xskak chessboard chessfss skakIf you have Git installed:
git clone https://github.com/whelanh/chessPublisher.git
cd chessPublisherDownload the repository as a ZIP from GitHub and extract it.
If using a VM with a shared folder, copy the chessPublisher folder (e.g., to C:\chess\chessPublisher).
Open Command Prompt and navigate to the project:
cd C:\path\to\chessPublisher
pip install -r requirements.txtThis installs the chess library for PGN parsing.
python test_windows.pyThis tests basic diagram generation, tex_only mode, and annotated games.
python examples/all_examples.pyThis should generate 8 PDF files in the output/ directory.
Note: Do NOT use verify_setup.py on Windows - it may report false errors. Use test_windows.py or examples/all_examples.py instead.
✅ All examples should complete without "I can't find file" errors
✅ PDF files should be generated in the output/ folder
✅ The tex_only=True option should create .tex files instead of PDFs
- Reinstall Python and make sure to check "Add Python to PATH"
- Or manually add Python to PATH: Search "Environment Variables" → Edit PATH → Add Python install directory
- Restart Command Prompt after installing MiKTeX or TeX Live
- For TeX Live, add
C:\texlive\2024\bin\windowsto your PATH
- Run the
mpm --install=...commands from Step 3 to pre-install packages - Or allow MiKTeX to install packages automatically when prompted
- This should be fixed automatically now
- If it persists, try moving the project to a simple path like
C:\chess\chessPublisher
- For MiKTeX: Open MiKTeX Console → Updates → Check for updates, then re-run the mpm install commands
- For TeX Live: Run
tlmgr install xskak chessboard chessfss skak
- Don't run from
C:\Program Filesor other protected directories - Use a folder like
C:\chess\or your Documents folder
The repository includes test_windows.py - just run:
python test_windows.pyThis will test PDF generation, tex_only mode, and annotated games, then report PASS/FAIL for each.