summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/kvmap/kvmap.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-12-27 03:01:19 +0000
committerNorbert Preining <norbert@preining.info>2019-12-27 03:01:19 +0000
commit9e5fd640685233da79d1b74327f9fe3edf173471 (patch)
tree43fbb5a476340a890baa3b1c233acf12e553a05d /macros/latex/contrib/kvmap/kvmap.dtx
parent61662d8a6546ba9debc2b0793ed12646083eb394 (diff)
CTAN sync 201912270301
Diffstat (limited to 'macros/latex/contrib/kvmap/kvmap.dtx')
-rw-r--r--macros/latex/contrib/kvmap/kvmap.dtx16
1 files changed, 9 insertions, 7 deletions
diff --git a/macros/latex/contrib/kvmap/kvmap.dtx b/macros/latex/contrib/kvmap/kvmap.dtx
index 94a9728bde..efa6b2e481 100644
--- a/macros/latex/contrib/kvmap/kvmap.dtx
+++ b/macros/latex/contrib/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}