Verzeichnis macros/unicodetex/latex/mayanumber
The mayanumber package
Mayan numerals (dots and bars) and vigesimal alphabetic notation (0-9, A-J) for LaTeX, with positional floor colors in a seven-color cycle.
- Engines: XeLaTeX or LuaLaTeX. Loads xcolor and fontspec automatically.
- Font: requires the free font "BabelStone Mayan Numerals" (https://www.babelstone.co.uk/Fonts/). An alternative face (e.g. Noto Sans Mayan Numerals) can be declared as mayanumerals BEFORE loading the package; the package then skips its own declaration.
- Default output: vertical stack of glyphs, colored by positional floor (floor 0 = units at the bottom). Options: vertical|horizontal, colors|nocolor, scale=<n>, align=<c|t|b>; they combine freely. Starred form mayanumber{N} prints the alphabetic notation.
- Unlimited magnitude: base-20 conversion by long division over the decimal string, immune to TeX's 32-bit integer limit.
Files: mayanumber.sty the package mayanumber.pdf documentation (compile mayanumber-doc.tex with XeLaTeX) mayanumber-doc.tex documentation source LICENSE MIT, with attribution to the original macro
Credits: Original macro by @egreg, TeX StackExchange, answer to a question by tatojo: https://tex.stackexchange.com/a/452806/18280 Extensions (seven-color cycle, defaults, nocolor, unlimited magnitude): Manuel López Mateos, 2026.
Source and development: https://github.com/mlmateos/puntoybarra
Version 1.0, 2026-09-09
Herunterladen des vollständigen Inhalts dieses Pakets in einem Zip-Archiv (54.4k).
Mayanumber – Mayan numerals and vigesimal notation with positional floor colors
This package typesets decimal integers of any magnitude as Mayan numerals (dots and bars, Unicode block U+1D2E0-U+1D2F3) or as vigesimal alphabetic notation (0-9, A-J), for XeLaTeX and LuaLaTeX. Each positional floor can be colored with a seven-color cycle (earth, water, vegetation, life, sky, sun, universe). Options: vertical/horizontal layout, colors/nocolor, scale and alignment; the starred form prints the alphabetic notation. The base-20 conversion uses long division over the decimal string, so magnitudes are unbounded. Requires the free font BabelStone Mayan Numerals. Extends the original macro by @egreg (TeX StackExchange, answer 452806).
| Paket | Mayanumber |
| Home-Page | |
| Fehlermeldungen | |
| Ankündigungen | |
| Repository | |
| Version | 1.0 2026-09-09 |
| Lizenzen | MIT License |
| Copyright | 2026 Manuel López Mateos |
| Betreuer | Manuel López Mateos |
| Themen | Numbers |