summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/kvmap
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-12-28 22:30:34 +0000
committerKarl Berry <karl@freefriends.org>2019-12-28 22:30:34 +0000
commit0c5873595e7802d33b614f9d6890d47da5ffb5cf (patch)
treefa90e5be98a7824e1962157eed88156554cf7992 /Master/texmf-dist/source/latex/kvmap
parent918c36aca0e5ef70e7bb01b8ebbc775adcf15c88 (diff)
kvmap (26dec19)
git-svn-id: svn://tug.org/texlive/trunk@53249 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/kvmap')
-rw-r--r--Master/texmf-dist/source/latex/kvmap/kvmap.dtx16
-rw-r--r--Master/texmf-dist/source/latex/kvmap/kvmap.ins2
2 files changed, 10 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/latex/kvmap/kvmap.dtx b/Master/texmf-dist/source/latex/kvmap/kvmap.dtx
index 94a9728bde0..efa6b2e481d 100644
--- a/Master/texmf-dist/source/latex/kvmap/kvmap.dtx
+++ b/Master/texmf-dist/source/latex/kvmap/kvmap.dtx
@@ -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 @@ End of file
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 @@ End of file
%<*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 of file
% \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 @@ End of file
% \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 of file
% \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 @@ End of file
\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}
diff --git a/Master/texmf-dist/source/latex/kvmap/kvmap.ins b/Master/texmf-dist/source/latex/kvmap/kvmap.ins
index f01204b3767..57689e0fce1 100644
--- a/Master/texmf-dist/source/latex/kvmap/kvmap.ins
+++ b/Master/texmf-dist/source/latex/kvmap/kvmap.ins
@@ -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