summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/kvmap
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-03-28 03:02:50 +0000
committerNorbert Preining <norbert@preining.info>2020-03-28 03:02:50 +0000
commitcfd72107a35042c9777e6138a6432a7bd49f3641 (patch)
treeb83046760c8235e55d741f2227b7e6b7d55c1e3c /macros/latex/contrib/kvmap
parent6c0ddfe655a39b71d1ab6a4a95d57a7ea0d94243 (diff)
CTAN sync 202003280302
Diffstat (limited to 'macros/latex/contrib/kvmap')
-rw-r--r--macros/latex/contrib/kvmap/kvmap.dtx27
-rw-r--r--macros/latex/contrib/kvmap/kvmap.ins2
-rw-r--r--macros/latex/contrib/kvmap/kvmap.pdfbin108264 -> 109392 bytes
3 files changed, 24 insertions, 5 deletions
diff --git a/macros/latex/contrib/kvmap/kvmap.dtx b/macros/latex/contrib/kvmap/kvmap.dtx
index efa6b2e481..b5fa08b04f 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) 2019 Ben Frank
+% This is kvmap, (c) 2020 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) 2019 Ben Frank
+Copyright (C) 2020 Ben Frank
It may be distributed and/or modified under the conditions of
the LaTeX Project Public License (LPPL), either version 1.3c of
@@ -102,7 +102,7 @@ End of file
%<*pkg>
%<@@=kvmap>
\RequirePackage{expl3}
-\ProvidesExplPackage{kvmap}{2019/12/26}{0.3.2}{Drawing karnaugh maps with LaTeX}
+\ProvidesExplPackage{kvmap}{2020/03/27}{0.3.3}{Drawing karnaugh maps with LaTeX}
%</pkg>
% \fi
%
@@ -212,6 +212,10 @@ End of file
% With |color| you may change the color of the border and |reducespace|
% allows you to specify whether you want the package to be narrower or wider.
% \par
+% When using |invert|, the package tries to determine where to invert
+% automatically. Sometimes it fails with the guesswork. You can manually
+% disable the horizontal inversion part with |hinvert=false| (idem for the
+% vertical inversion part with |vinvert=false|).\par
% Warning: This package is unable to draw a bundle including all four corners
% this way. If you need this specific edge case, please use TikZ to draw it
% yourself (see the last example in \autoref{sec:examples}).
@@ -447,7 +451,8 @@ End of file
% \subsection{Implicant-related code}
% \begin{macro}[updated=2018-03-17]{\bundle}
% \changes{v0.1.1}{2018/03/17}{Correct dimensions}
-% \changes{v0.2.1}{2018/09/20}{Fix inversion}
+% \changes{v0.2.1}{2018/09/20}{Fix inversion}
+% \changes{v0.3.3}{2020/03/27}{Introduce hinvert and vinvert}
% Draw a bundle with given corners.
% \begin{arguments}
% \item key-value pairs
@@ -476,6 +481,18 @@ End of file
invert .default:n = true,
invert .initial:n = false,
% \end{macrocode}
+% |vinvert|: perform inversion vertically
+% \begin{macrocode}
+ vinvert .bool_set:N = \l_@@_bundle_vinvert_bool,
+ vinvert .default:n = true,
+ vinvert .initial:n = true,
+% \end{macrocode}
+% |hinvert|: perform inversion horizontally
+% \begin{macrocode}
+ hinvert .bool_set:N = \l_@@_bundle_hinvert_bool,
+ hinvert .default:n = true,
+ hinvert .initial:n = true,
+% \end{macrocode}
% |overlapmargins|: intrude into margin (when inverted)
% \begin{macrocode}
overlapmargins .dim_set:N = \l_@@_bundle_overlapmargins_dim,
@@ -525,6 +542,7 @@ End of file
{
\int_compare_p:n { \l_@@_matrix_height_int - 1 = \l_@@_bundle_maxy_int }
&& \int_compare_p:n { 0 = \l_@@_bundle_miny_int }
+ && \l_@@_bundle_vinvert_bool
}
{
\draw[draw=\l_@@_bundle_color_tl,kvbundle] ~
@@ -569,6 +587,7 @@ End of file
{
\int_compare_p:n { \l_@@_matrix_width_int - 1 = \l_@@_bundle_maxx_int }
&& \int_compare_p:n { 0 = \l_@@_bundle_minx_int }
+ && \l_@@_bundle_hinvert_bool
}
{
\draw[draw=\l_@@_bundle_color_tl,kvbundle] ~
diff --git a/macros/latex/contrib/kvmap/kvmap.ins b/macros/latex/contrib/kvmap/kvmap.ins
index 57689e0fce..17c7f53e83 100644
--- a/macros/latex/contrib/kvmap/kvmap.ins
+++ b/macros/latex/contrib/kvmap/kvmap.ins
@@ -1,7 +1,7 @@
\input l3docstrip.tex
\askforoverwritefalse
\preamble
-Copyright (C) 2019 Ben Frank
+Copyright (C) 2020 Ben Frank
It may be distributed and/or modified under the conditions of
the LaTeX Project Public License (LPPL), either version 1.3c of
diff --git a/macros/latex/contrib/kvmap/kvmap.pdf b/macros/latex/contrib/kvmap/kvmap.pdf
index 2325b05114..ca8a7b82c4 100644
--- a/macros/latex/contrib/kvmap/kvmap.pdf
+++ b/macros/latex/contrib/kvmap/kvmap.pdf
Binary files differ