texlive[53249] Master/texmf-dist: kvmap (26dec19)
commits+karl at tug.org
commits+karl at tug.org
Sat Dec 28 23:30:34 CET 2019
Revision: 53249
http://tug.org/svn/texlive?view=revision&revision=53249
Author: karl
Date: 2019-12-28 23:30:34 +0100 (Sat, 28 Dec 2019)
Log Message:
-----------
kvmap (26dec19)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/kvmap/kvmap.pdf
trunk/Master/texmf-dist/source/latex/kvmap/kvmap.dtx
trunk/Master/texmf-dist/source/latex/kvmap/kvmap.ins
trunk/Master/texmf-dist/tex/latex/kvmap/kvmap.sty
Modified: trunk/Master/texmf-dist/doc/latex/kvmap/kvmap.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/kvmap/kvmap.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/kvmap/kvmap.dtx 2019-12-28 22:30:06 UTC (rev 53248)
+++ trunk/Master/texmf-dist/source/latex/kvmap/kvmap.dtx 2019-12-28 22:30:34 UTC (rev 53249)
@@ -1,5 +1,5 @@
% \iffalse meta-comment
-% This is kvmap, (c) 2018 Ben Frank
+% This is kvmap, (c) 2019 Ben Frank
%
% It may be distributed and/or modified under the conditions of the
% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -15,7 +15,7 @@
\input l3docstrip.tex
\askforoverwritefalse
\preamble
-Copyright (C) 2018 Ben Frank
+Copyright (C) 2019 Ben Frank
It may be distributed and/or modified under the conditions of
the LaTeX Project Public License (LPPL), either version 1.3c of
@@ -60,7 +60,7 @@
doclang/new={\textcolor{DarkGreen}{\textbf{\textsf{N}}}},
doclang/updated={\textcolor{DarkGreen}{\textbf{\textsf{U}}}},
minted options={linenos,xleftmargin=8.75pt,breaklines=true,
- breakanywhere,fontsize=\small,escapeinside=§§,autogobble=false}}
+ breakanywhere,fontsize=\small,escapeinside=§§,autogobble=false}}
\tcbset{enhanced,sharp corners=all}
\usemintedstyle{vs}
@@ -102,7 +102,7 @@
%<*pkg>
%<@@=kvmap>
\RequirePackage{expl3}
-\ProvidesExplPackage{kvmap}{2018/09/20}{0.3.1}{Drawing karnaugh maps with LaTeX}
+\ProvidesExplPackage{kvmap}{2019/12/26}{0.3.2}{Drawing karnaugh maps with LaTeX}
%</pkg>
% \fi
%
@@ -402,6 +402,7 @@
% \end{macrocode}
% \end{macro}
% \begin{macro}[int]{\@@_outputmatrix:n}
+% \changes{v0.3.2}{2019/12/26}{Allow empty elements}
% Define a TikZ style for easier customizability.
% \begin{macrocode}
\tikzset{kvnode/.style = { inner ~ sep = 8pt }}
@@ -419,9 +420,10 @@
% \begin{macrocode}
\int_zero:N \l_tmpa_int
% \end{macrocode}
-% Use a temporary sequence to store the argument.
+% Use a temporary sequence to store the argument. This has to be a split because
+% setting from clist would eliminate empty elements.
% \begin{macrocode}
- \seq_set_from_clist:Nn \l_tmpa_seq { #1 }
+ \seq_set_split:Nnn \l_tmpa_seq { , } { #1 }
% \end{macrocode}
% Loop over the elements of the list. Every element will be output as node
% where $x = \text{counter}\mod\text{width}$ and
@@ -719,6 +721,7 @@
% \end{macrocode}
% \end{macro}
% \begin{environment}{kvmatrix}
+% \changes{v0.3.2}{2019/12/26}{Count empty columns}
% This environment enables a |tabular|-like input syntax.
% \begin{arguments}
% \item labels (variables)
@@ -740,7 +743,6 @@
\seq_set_split:Nno \l_tmpa_seq { \\ } { \BODY }
\seq_remove_all:Nn \l_tmpa_seq { }
\seq_set_split:Nnx \l_tmpb_seq { & } { \seq_item:Nn \l_tmpa_seq { 1 } }
- \seq_remove_all:Nn \l_tmpb_seq { }
\int_gset:Nn \l_@@_matrix_width_int { \seq_count:N \l_tmpb_seq }
\int_gset:Nn \l_@@_matrix_height_int { \seq_count:N \l_tmpa_seq }
% \end{macrocode}
Modified: trunk/Master/texmf-dist/source/latex/kvmap/kvmap.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/kvmap/kvmap.ins 2019-12-28 22:30:06 UTC (rev 53248)
+++ trunk/Master/texmf-dist/source/latex/kvmap/kvmap.ins 2019-12-28 22:30:34 UTC (rev 53249)
@@ -1,7 +1,7 @@
\input l3docstrip.tex
\askforoverwritefalse
\preamble
-Copyright (C) 2018 Ben Frank
+Copyright (C) 2019 Ben Frank
It may be distributed and/or modified under the conditions of
the LaTeX Project Public License (LPPL), either version 1.3c of
Modified: trunk/Master/texmf-dist/tex/latex/kvmap/kvmap.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/kvmap/kvmap.sty 2019-12-28 22:30:06 UTC (rev 53248)
+++ trunk/Master/texmf-dist/tex/latex/kvmap/kvmap.sty 2019-12-28 22:30:34 UTC (rev 53249)
@@ -5,7 +5,7 @@
%% The original source files were:
%%
%% kvmap.dtx (with options: `pkg,cfg')
-%% Copyright (C) 2018 Ben Frank
+%% Copyright (C) 2019 Ben Frank
%%
%% It may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License (LPPL), either version 1.3c of
@@ -15,7 +15,7 @@
%% http://www.latex-project.org/lppl.txt
%%
\RequirePackage{expl3}
-\ProvidesExplPackage{kvmap}{2018/09/20}{0.3.1}{Drawing karnaugh maps with LaTeX}
+\ProvidesExplPackage{kvmap}{2019/12/26}{0.3.2}{Drawing karnaugh maps with LaTeX}
\RequirePackage{xparse}
\RequirePackage{tikz}
\RequirePackage{environ}
@@ -71,7 +71,7 @@
\cs_new:Npn \__kvmap_outputmatrix:n #1
{
\int_zero:N \l_tmpa_int
-\seq_set_from_clist:Nn \l_tmpa_seq { #1 }
+\seq_set_split:Nnn \l_tmpa_seq { , } { #1 }
\seq_map_inline:Nn \l_tmpa_seq
{
\node[kvnode] ~
@@ -266,7 +266,6 @@
\seq_set_split:Nno \l_tmpa_seq { \\ } { \BODY }
\seq_remove_all:Nn \l_tmpa_seq { }
\seq_set_split:Nnx \l_tmpb_seq { & } { \seq_item:Nn \l_tmpa_seq { 1 } }
-\seq_remove_all:Nn \l_tmpb_seq { }
\int_gset:Nn \l__kvmap_matrix_width_int { \seq_count:N \l_tmpb_seq }
\int_gset:Nn \l__kvmap_matrix_height_int { \seq_count:N \l_tmpa_seq }
\seq_clear:N \l__kvmap_tmp_seq
More information about the tex-live-commits
mailing list