CTAN Comprehensive TeX Archive Network

Directory macros/context/contrib/context-squares

README.md

squares

This module provides two commands and two command handlers, as well as two Metafun macros:

  1. \magicsquare typesets a magic square.
  2. \latinsquare typesets a (random) Latin square.
  3. \setuplatinsquare
  4. \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.

Packagecontext-squares
Version 2026-02-14
LicensesMIT License
Copyright2023 Jairo A. del Rio
MaintainerJairo A. del Rio
Contained inTeX Live as context-squares
TopicsCalculation
...
Guest Book Sitemap Contact Contact Author