summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/context
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-10-14 15:06:40 +0000
committerKarl Berry <karl@freefriends.org>2023-10-14 15:06:40 +0000
commitda0a7dc8f41b98b0c07d9f064e5485039add42e7 (patch)
tree82a594f02b461eaa113f74275db22085a4bade78 /Master/texmf-dist/doc/context
parentd27411ead02fcb35a694786cfbf02eb91bd609fa (diff)
context-squares (13oct23)
git-svn-id: svn://tug.org/texlive/trunk@68545 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/context')
-rw-r--r--Master/texmf-dist/doc/context/third/squares/LICENSE21
-rw-r--r--Master/texmf-dist/doc/context/third/squares/README.md43
-rw-r--r--Master/texmf-dist/doc/context/third/squares/VERSION1
3 files changed, 65 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/context/third/squares/LICENSE b/Master/texmf-dist/doc/context/third/squares/LICENSE
new file mode 100644
index 00000000000..abb812c0164
--- /dev/null
+++ b/Master/texmf-dist/doc/context/third/squares/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Jairo A. del Rio
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/Master/texmf-dist/doc/context/third/squares/README.md b/Master/texmf-dist/doc/context/third/squares/README.md
new file mode 100644
index 00000000000..9fd88f81d6b
--- /dev/null
+++ b/Master/texmf-dist/doc/context/third/squares/README.md
@@ -0,0 +1,43 @@
+# squares
+
+This module only provides two commands:
+
+1. `\magicsquare` typesets a magic square.
+2. `\latinsquare` typesets a Latin square.
+
+Both `\magicsquare` and `\latinsquare` understand the same set of
+parameters:
+
+```tex
+\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:
+
+```tex
+\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.
diff --git a/Master/texmf-dist/doc/context/third/squares/VERSION b/Master/texmf-dist/doc/context/third/squares/VERSION
new file mode 100644
index 00000000000..5425d1161a2
--- /dev/null
+++ b/Master/texmf-dist/doc/context/third/squares/VERSION
@@ -0,0 +1 @@
+2023-08-01