diff options
author | Karl Berry <karl@freefriends.org> | 2022-08-14 20:27:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-08-14 20:27:47 +0000 |
commit | 877588f3a4ffc33328e9acf568a7eef502f5f768 (patch) | |
tree | 0e83de2e15c3a6dedc0d55738979ea1a59c26322 /Master/texmf-dist/doc | |
parent | e8eab1499a1580923a76e92453fe80dc2459538d (diff) |
nimsticks (14aug22)
git-svn-id: svn://tug.org/texlive/trunk@64118 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/latex/nimsticks/README.md | 18 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/nimsticks/nimsticks.pdf | bin | 107309 -> 217224 bytes |
2 files changed, 12 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/latex/nimsticks/README.md b/Master/texmf-dist/doc/latex/nimsticks/README.md index 38b98216639..6e0ba64172e 100644 --- a/Master/texmf-dist/doc/latex/nimsticks/README.md +++ b/Master/texmf-dist/doc/latex/nimsticks/README.md @@ -8,18 +8,24 @@ By [Peter Rowlett](https://github.com/prowlett/). Nim objects could be anything, of course, but conventionally sticks or stones are used. There are various types of dot in LaTeX that might look like stones, but somehow a line of dots didn't seem satisfactory. There are various ways to draw a line (e.g. just typing IIIII), including some tally markers (e.g. in hhcount). My problem with these (call me picky) is that they are all identical lines, and a `heap' of them just looks very organised. Really, I want a set of lines that looks like someone just threw them into heaps (though probably without crossings for the avoidance of ambiguity). -The way this works is it draws a thick vertical line in TikZ with a little wobble added so each one doesn't look extremely well-lined-up with its neighbour, achieved by adding or subtracting a small random number to the top and bottom coordinate. - -It does this by providing two commands: - -- `\drawnimstick`: draws a single Nim stick with a little random wobble; -- `\nimgame`: takes a comma-separated list of numbers and draws a line of Nim heaps holding those number of sticks. +The way this works is it draws a thick vertical line in TikZ with a little wobble added so each one doesn't look extremely well-lined-up with its neighbour, achieved by adding or subtracting a small random number to the top and bottom coordinate. There are various built-in options to customise the size and colour of the sticks, and flexibility to draw heaps of different objects. ## Licensing This work may be distributed and/or modified under the conditions of the [MIT license](LICENSE.txt). ## Changes +### [2.0.1] - 2022-08-14 + +- Documentation tweaks + +### [2.0] - 2022-08-14 + +- Reworked to define sizes flexibly using ex so now responds to current font size, and provided scaling option. +- Added option to customise colour. +- Rewritten and expanded documentation, including how to fix randomisation seed and how to replace sticks by arbitrary TikZ drawing. +- Fixed: default display for `\nimgame` should be block but it was not putting itself in a new paragraph. + ### [1.2] - 2022-08-09 - Switched `ifthen` to `etoolbox`; diff --git a/Master/texmf-dist/doc/latex/nimsticks/nimsticks.pdf b/Master/texmf-dist/doc/latex/nimsticks/nimsticks.pdf Binary files differindex bd85422db48..6b5eeecce39 100644 --- a/Master/texmf-dist/doc/latex/nimsticks/nimsticks.pdf +++ b/Master/texmf-dist/doc/latex/nimsticks/nimsticks.pdf |