Directory macros/context/contrib/context-squares
README.md
squares
This module provides two commands and two command handlers, as well as two Metafun macros:
\magicsquaretypesets a magic square.\latinsquaretypesets a (random) Latin square.\setuplatinsquare\setupmagicsquare
\latinsquare understands the following set of parameters.
\setuplatinsquare
[ n=5,
size=2em,
alternative=none,
rulethickness=.5bp]
`lmt_latinsquare` has a similar interface:
metapost picture p; p := image( lmtlatinsquare n = 5, size = 2EmWidth, alternative = "none", rulethickness = .5bp; );
\magicsquare understands the following set of parameters:
\setupmagicsquare
[ n=5,
size=2em,
alternative=none,
rotation=0,
reverse=none,
rulethickness=.5bp]
lmt_magicsquare has a similar interface:
picture p;
p := image(
lmt_magicsquare [
n = 5,
size = 2EmWidth,
alternative = "none",
rotation = 0,
reverse = "none",
rulethickness = .5bp
];
);
_Caveat emptor_: this module is only for ConTeXt LMTX. I no longer use ConTeXt MKIV, so no support is provided, sorry. Moreover, I'm using cutting-edge features, such as new macro extensions. An updated distribution is recommended.
Download the contents of this package in one zip archive (33.1k).
context-squares – Typesetting Magic and Latin squares
The package provides typesetting of magic and latin squares.
| Package | context-squares |
| Version | 2026-02-14 |
| Licenses | MIT License |
| Copyright | 2023 Jairo A. del Rio |
| Maintainer | Jairo A. del Rio |
| Contained in | TeX Live as context-squares |
| Topics | Calculation |