texlive[54585] Master/texmf-dist: kvmap (27mar20)
commits+karl at tug.org
commits+karl at tug.org
Fri Mar 27 22:13:10 CET 2020
Revision: 54585
http://tug.org/svn/texlive?view=revision&revision=54585
Author: karl
Date: 2020-03-27 22:13:10 +0100 (Fri, 27 Mar 2020)
Log Message:
-----------
kvmap (27mar20)
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 2020-03-27 21:12:57 UTC (rev 54584)
+++ trunk/Master/texmf-dist/source/latex/kvmap/kvmap.dtx 2020-03-27 21:13:10 UTC (rev 54585)
@@ -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 @@
%<*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 @@
% 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 @@
% \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 @@
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 @@
{
\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 @@
{
\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] ~
Modified: trunk/Master/texmf-dist/source/latex/kvmap/kvmap.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/kvmap/kvmap.ins 2020-03-27 21:12:57 UTC (rev 54584)
+++ trunk/Master/texmf-dist/source/latex/kvmap/kvmap.ins 2020-03-27 21:13:10 UTC (rev 54585)
@@ -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
Modified: trunk/Master/texmf-dist/tex/latex/kvmap/kvmap.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/kvmap/kvmap.sty 2020-03-27 21:12:57 UTC (rev 54584)
+++ trunk/Master/texmf-dist/tex/latex/kvmap/kvmap.sty 2020-03-27 21:13:10 UTC (rev 54585)
@@ -5,7 +5,7 @@
%% The original source files were:
%%
%% kvmap.dtx (with options: `pkg,cfg')
-%% 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
@@ -15,7 +15,7 @@
%% http://www.latex-project.org/lppl.txt
%%
\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}
\RequirePackage{xparse}
\RequirePackage{tikz}
\RequirePackage{environ}
@@ -94,6 +94,12 @@
invert .bool_set:N = \l__kvmap_bundle_invert_bool,
invert .default:n = true,
invert .initial:n = false,
+vinvert .bool_set:N = \l__kvmap_bundle_vinvert_bool,
+vinvert .default:n = true,
+vinvert .initial:n = true,
+hinvert .bool_set:N = \l__kvmap_bundle_hinvert_bool,
+hinvert .default:n = true,
+hinvert .initial:n = true,
overlapmargins .dim_set:N = \l__kvmap_bundle_overlapmargins_dim,
overlapmargins .initial:n = { 0pt },
}
@@ -116,6 +122,7 @@
{
\int_compare_p:n { \l__kvmap_matrix_height_int - 1 = \l__kvmap_bundle_maxy_int }
&& \int_compare_p:n { 0 = \l__kvmap_bundle_miny_int }
+ && \l__kvmap_bundle_vinvert_bool
}
{
\draw[draw=\l__kvmap_bundle_color_tl,kvbundle] ~
@@ -157,6 +164,7 @@
{
\int_compare_p:n { \l__kvmap_matrix_width_int - 1 = \l__kvmap_bundle_maxx_int }
&& \int_compare_p:n { 0 = \l__kvmap_bundle_minx_int }
+ && \l__kvmap_bundle_hinvert_bool
}
{
\draw[draw=\l__kvmap_bundle_color_tl,kvbundle] ~
More information about the tex-live-commits
mailing list.