CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/mahjonggame

README.md

mahjonggame

mahjonggame is a package implemented with 3 and TikZ for drawing Mahjong tiles and Mahjong game layouts.

Installation

Place mahjonggame.sty in a directory searched by , or in the same directory as your document. Then load the package with:

\usepackage{mahjonggame}

Documentation

The complete user documentation is provided in mahjonggame.pdf. The source of the documentation is mahjonggame.tex.

Main features

  • Drawing Mahjong tiles and tile sequences with TikZ.
  • Standard tile notation such as 1m, 5s, and 7z.
  • Compact notation such as 123m, 456s, and 789p.
  • Rotated, reach, and added tiles.
  • Multiple visual effects through the function option.
  • Configurable tile and game scaling.
  • Four-player and three-player game layouts.
  • Automatic grouping and positioning of discards, hands, calls, and flowers.
  • Automatic counting of tiles placed in a game and calculation of the remaining tiles.
  • Dora indicator display with automatic padding.
  • Configurable table and overlay colours.
  • Chinese text can be used directly in documents supported by ctex.

Requirements

The package requires:

  • 3 (expl3)
  • TikZ
  • xcolor
  • xparse
  • ctex

or Lua is recommended, especially when Chinese text is used.

Repository

The development repository is available at:

https://github.com/Clignniis/latex3-mahjong

Bug reports and feature requests may be submitted through the GitHub issue tracker:

https://github.com/Clignniis/latex3-mahjong/issues

Maintainer

Clignniis

Contact

vceadliosr@gmail.com

License

This package is distributed under the Project Public License, version 1.3c or later (LPPL 1.3c+).

The latest version of the LPPL is available from:

https://latex-project.org/lppl.txt

Download the contents of this package in one zip archive (1.9M).

Mahjonggame – Drawing Mahjong tiles and complete Mahjong game layouts with 3 and

This package uses 3 and to draw Mahjong tiles and complete Mahjong game layouts. It provides compact tile notation, rotated and stacked tiles, player-oriented game layouts, automatic tile counting, Dora indicators, and customizable game-table styles. The package is primarily designed for Chinese-language Mahjong documentation.

PackageMahjonggame
Home page
Bug tracker
Repository
Version0.7.0 2026-08-29
LicensesThe Project Public License 1.3c
MaintainerClignniis
Contained inTeX Live as mahjonggame
TopicsPGF
Games
...
Guest Book Sitemap Contact Contact Author