Verzeichnis macros/context/contrib/context-squares
squares
This module only provides two commands:
\magicsquare
typesets a magic square.\latinsquare
typesets a Latin square.
Both \magicsquare
and \latinsquare
understand the same set of parameters:
\setupmagicsquare [size=2em, align={middle,lohi}, renderingsetup=none, n=5] % and \setupTABLE parameters...
Magic and Latin squares are typesets via natural tables, i.e., by using a \bTABLE
... \eTABLE
environment. I'd rather use setups
, but it'd clash with another key already taken by \setupTABLE
.
Currently only two rendering setups are available: none
(it does nothing), and color
(cells colorfully painted across the HSV hue range). I promise more setups will be available soon, though.
You might be more impatient and want to define your own. So, this is how:
\unprotect \startsetups[\????magicsquare:\c!renderingsetup:mysetup] % Idk, something like this? % \setupTABLE[r][odd][background=color,backgroundcolor=red] % For natural table tuning, see https://wiki.contextgarden.net/TABLE % etc. \stopsetups \protect \magicsquare[n=7,renderingsetup=mysetup]
Caveat emptor: this module is only for ConTeXt LMTX. I no longer use ConTeXt MKIV, so no support is provided, sorry.
Herunterladen des vollständigen Inhalts dieses Pakets in einem Zip-Archiv (5.9k).
context-squares – Typesetting Magic and Latin squares
The package provides typesetting of magic and latin squares.
Paket | context-squares |
Version | 2023-08-01 |
Lizenzen | MIT License |
Copyright | 2023 Jairo A. del Rio |
Betreuer | Jairo A. del Rio |
Enthalten in | TeX Live als context-squares |
Themen | Kalkulationen |