texlive[65899] branches/branch2022.final/Master/texmf-dist: pixelart

commits+karl at tug.org commits+karl at tug.org
Sun Feb 19 02:54:06 CET 2023


Revision: 65899
          http://tug.org/svn/texlive?view=revision&revision=65899
Author:   karl
Date:     2023-02-19 02:54:06 +0100 (Sun, 19 Feb 2023)
Log Message:
-----------
pixelart (19feb23) (branch)

Modified Paths:
--------------
    branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/CHANGELOG.md
    branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/README.md
    branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/pixelart.pdf
    branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/pixelart.tex
    branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/pixelart0.pdf
    branches/branch2022.final/Master/texmf-dist/tex/latex/pixelart/pixelart.lua
    branches/branch2022.final/Master/texmf-dist/tex/latex/pixelart/pixelart.sty

Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/CHANGELOG.md
===================================================================
--- branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/CHANGELOG.md	2023-02-19 01:53:42 UTC (rev 65898)
+++ branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/CHANGELOG.md	2023-02-19 01:54:06 UTC (rev 65899)
@@ -1,3 +1,16 @@
+* pixelart 1.0.1 (2023-02-18)
+
+    * Bugs
+
+        * Minor change to take into account backward-incompatible change in `luakeys` v0.13.0 (thanks Jonathan P. Spratte).
+        * Pixelart (with option `square`) no longer fails when asked to draw an empty pixelart.
+
+    * Documentation
+
+        * Minor changes and improvements.
+
+    -- Louis Paternault <spalax at gresille.org>
+
 * pixelart 1.0.0 (2022-11-16)
 
     * Full, backward incompatible, rewrite of `pixelart`, in Lua.

Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/README.md
===================================================================
--- branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/README.md	2023-02-19 01:53:42 UTC (rev 65898)
+++ branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/README.md	2023-02-19 01:54:06 UTC (rev 65899)
@@ -1,7 +1,7 @@
 pixelart 🎨 A LaTeX package to draw pixel-art pictures
 ======================================================
 
-![Example](https://framagit.org/spalax/pixelart/-/raw/v1.0.0/pixelart.png)
+![Example](https://framagit.org/spalax/pixelart/-/raw/v1.0.1/pixelart.png)
 
 - [Usage and installation instruction](http://mirrors.ctan.org/graphics/pgf/contrib/pixelart/pixelart.pdf).
 - Example: The heart of the picture above was produced using the following code.
@@ -30,7 +30,7 @@
 License
 -------
 
-*Copyright 2018-2022 Louis Paternault*
+*Copyright 2017-2023 Louis Paternault*
 
 This work may be distributed and/or modified under the conditions of the LaTeX
 Project Public License, either version 1.3 of this license or (at your option)

Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/pixelart.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/pixelart.tex
===================================================================
--- branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/pixelart.tex	2023-02-19 01:53:42 UTC (rev 65898)
+++ branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/pixelart.tex	2023-02-19 01:54:06 UTC (rev 65899)
@@ -9,8 +9,8 @@
 \setcnltx{
   name     = pixelart,
   title    = \pixelartlogo,
-  version  = v1.0.0,
-  date     = 2022-11-16,
+  version  = v1.0.1,
+  date     = 2023-02-18,
   info     = A \LaTeX{} package to draw pixel-art pictures ,
   authors  = Louis Paternault ,
   email    = spalax(at)gresille(dot)org ,
@@ -446,6 +446,8 @@
 \end{commands}
 \end{multicols}
 
+Note that those logos are affected by \cs{setpixelartdefault}, so, if you have used this command in your document, you might want to call \cs*{setpixelartdefault}\marg{} to reset the default options before drawing any logo.
+
 \section{Debugging}
 
 What if drawing your pixel art throws an error?

Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/pixelart/pixelart0.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2022.final/Master/texmf-dist/tex/latex/pixelart/pixelart.lua
===================================================================
--- branches/branch2022.final/Master/texmf-dist/tex/latex/pixelart/pixelart.lua	2023-02-19 01:53:42 UTC (rev 65898)
+++ branches/branch2022.final/Master/texmf-dist/tex/latex/pixelart/pixelart.lua	2023-02-19 01:54:06 UTC (rev 65899)
@@ -1,5 +1,23 @@
+--[[
+   Copyright 2017-2023 Louis Paternault
+
+   This work may be distributed and/or modified under the
+   conditions of the LaTeX Project Public License, either version 1.3
+   of this license or (at your option) any later version.
+   The latest version of this license is in
+     http://www.latex-project.org/lppl.txt
+   and version 1.3 or later is part of all distributions of LaTeX
+   version 2005/12/01 or later.
+
+   This work has the LPPL maintenance status `maintained'.
+
+   The Current Maintainer of this work is Louis Paternault
+
+   This work consists of the files pixelart.sty, pixelart.lua, pixelart.tex.
+--]]
+
 require("lualibs-lpeg")
-local luakeys = require("luakeys")
+local luakeys = require("luakeys")()
 
 pixelart = {
   _debug = false,
@@ -16,7 +34,6 @@
 end
 
 pixelart.setpixelartdebug = pixelart_setpixelartdebug
-pixelart.setpixelartdebug = pixelart_setpixelartdebug
 
 --------------------------------------------------------------------------------
 --[[ Print
@@ -269,6 +286,11 @@
 local function pixelart_body_squares(array, colors, options)
   -- Draw the tikz pixels, as a set of squares.
 
+  if #array == 0 then
+    -- Empty array
+    return
+  end
+
   tex_print(string.format(
     [[\clip ({0-%s}, {0-%s}) rectangle (%s, %s); ]],
     options.margin,

Modified: branches/branch2022.final/Master/texmf-dist/tex/latex/pixelart/pixelart.sty
===================================================================
--- branches/branch2022.final/Master/texmf-dist/tex/latex/pixelart/pixelart.sty	2023-02-19 01:53:42 UTC (rev 65898)
+++ branches/branch2022.final/Master/texmf-dist/tex/latex/pixelart/pixelart.sty	2023-02-19 01:54:06 UTC (rev 65899)
@@ -1,5 +1,21 @@
+%% Copyright 2017-2023 Louis Paternault
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%%   http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Louis Paternault
+%%
+%% This work consists of the files pixelart.sty, pixelart.lua, pixelart.tex.
+
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{pixelart}
+\ProvidesPackage{pixelart}[2023/02/18 v1.0.1 A package to draw pixel-art pictures]
 
 \RequirePackage{iftex}
 \ifluatex



More information about the tex-live-commits mailing list.