summaryrefslogtreecommitdiff
path: root/graphics/pgf
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf')
-rw-r--r--graphics/pgf/contrib/tikz-karnaugh/README.txt4
-rw-r--r--graphics/pgf/contrib/tikz-karnaugh/doc/tikz-karnaugh-doc.pdfbin402809 -> 402432 bytes
-rw-r--r--graphics/pgf/contrib/tikz-karnaugh/doc/tikz-karnaugh-doc.tex12
-rw-r--r--graphics/pgf/contrib/tikz-karnaugh/tex/tikzlibrarykarnaugh.code.tex15
4 files changed, 16 insertions, 15 deletions
diff --git a/graphics/pgf/contrib/tikz-karnaugh/README.txt b/graphics/pgf/contrib/tikz-karnaugh/README.txt
index b9e11e222d..82f12ef650 100644
--- a/graphics/pgf/contrib/tikz-karnaugh/README.txt
+++ b/graphics/pgf/contrib/tikz-karnaugh/README.txt
@@ -1,11 +1,11 @@
-Copyright (C) 2017 by Luis Paulo Laus, <laus@utfpr.edu.br>
+Copyright (C) 2017-2022 by Luis Paulo Laus, <laus@utfpr.edu.br>
------------------------------------------------------------
The tikz-karnaugh package may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1 of this license or (at your option) any later version. The latest version of this license is in:
http://www.latex-project.org/lppl.txt and version 1 or
later is part of all distributions of LaTeX version 1999/12/01 or later.
- Version 1.4 of 8 February 2022
+ Version 1.5 of 15 February 2022
------------------------------------------------------------
diff --git a/graphics/pgf/contrib/tikz-karnaugh/doc/tikz-karnaugh-doc.pdf b/graphics/pgf/contrib/tikz-karnaugh/doc/tikz-karnaugh-doc.pdf
index f383fd345a..8d8314438a 100644
--- a/graphics/pgf/contrib/tikz-karnaugh/doc/tikz-karnaugh-doc.pdf
+++ b/graphics/pgf/contrib/tikz-karnaugh/doc/tikz-karnaugh-doc.pdf
Binary files differ
diff --git a/graphics/pgf/contrib/tikz-karnaugh/doc/tikz-karnaugh-doc.tex b/graphics/pgf/contrib/tikz-karnaugh/doc/tikz-karnaugh-doc.tex
index bcf7b18b2c..62ba21d24d 100644
--- a/graphics/pgf/contrib/tikz-karnaugh/doc/tikz-karnaugh-doc.tex
+++ b/graphics/pgf/contrib/tikz-karnaugh/doc/tikz-karnaugh-doc.tex
@@ -1,8 +1,8 @@
%% This is file `tikz-karnaugh-doc.tex'
-%% Version: 1.4
-%% Version date: 2022-02-08
+%% Version: 1.5
+%% Version date: 2022-02-15
%%
-%% Copyright (C) 2017 by Luis Paulo Laus, laus@utfpr.edu.br
+%% Copyright (C) 2017-2022 by Luis Paulo Laus, laus@utfpr.edu.br
%%
%% This package can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License distributed from CTAN
@@ -60,7 +60,7 @@
\usepackage[a4paper,left=2.25cm,right=2.25cm,top=2.5cm,bottom=2.5cm,nohead]{geometry}
\usepackage{amsmath,amssymb}
\usepackage{xxcolor}
-%% \usepackage{pifont}
+%\usepackage{pifont}
%%\usepackage{tgpagella} % no ligatures (test and orthography check)
\usepackage{enumitem}
\usepackage[T1]{fontenc}
@@ -133,13 +133,13 @@
%
% This file really starts here, all the above is for pgfmanual
% compatibility
-\input ../tex/tikzlibrarykarnaugh.code
+\input ../tex/tikzlibrarykarnaugh.code % or \usetikzlibrary{karnaugh}
\sloppy
\begin{document}
\title{Typesetting Karnaugh Maps with \LaTeX\ and \tikzname}
\author{Luis Paulo Laus\\e-mail: \texttt{laus@utfpr.edu.br}}
-\date{Version: 1.4, Version date: 2022-02-08}
+\date{Version: 1.5, Version date: 2022-02-15}
\maketitle
diff --git a/graphics/pgf/contrib/tikz-karnaugh/tex/tikzlibrarykarnaugh.code.tex b/graphics/pgf/contrib/tikz-karnaugh/tex/tikzlibrarykarnaugh.code.tex
index f9a9434435..d0fe7c5f64 100644
--- a/graphics/pgf/contrib/tikz-karnaugh/tex/tikzlibrarykarnaugh.code.tex
+++ b/graphics/pgf/contrib/tikz-karnaugh/tex/tikzlibrarykarnaugh.code.tex
@@ -1,8 +1,8 @@
%% This is file `tikzlibrarykarnaugh.code.tex' formerly known as `tikz-karnaugh.tex',
-%% Version: 1.4
-%% Version date: 2022-02-08
+%% Version: 1.5
+%% Version date: 2022-02-15
%%
-%% Copyright (C) 2018 by Luis Paulo Laus, laus@utfpr.edu.br
+%% Copyright (C) 2017-2022 by Luis Paulo Laus, laus@utfpr.edu.br
%%
%% This package can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License distributed from CTAN
@@ -22,7 +22,7 @@
%%
\typeout{}
\typeout{Macros for typesetting Karnaugh maps}
-\typeout{Version 1.4 of 8 February 2022}
+\typeout{Version 1.5 of 15 February 2022}
\typeout{by Luis Paulo Laus, laus@utfpr.edu.br}
\typeout{}
%%
@@ -39,10 +39,11 @@
%% 1.3: 14 October 2021: New American style KM (for maps with ones
%% and zeros labels surrounding the map). In addition, a new macro for
%% decimal to Gray Code conversion (\pgfmathdectoGray) is provided.
-%% 1.4: February 2022: new style and length for American style;
+%% 1.4: 8 February 2022: new style and length for American style;
%% change some key names (standard); new 'karnaugh cell size' key;
%% bug fixes; positioning of labels simplified; two new macros for type
%% setting maps as they should appear and not using the truth table order.
+%% 1.5: 15 February 2022: bug fixes on Gray code generation
%%
%% Setting up some TikZ parameters for Karnaugh Maps
%%
@@ -251,7 +252,7 @@
\else%
\edef\kmresult@@{\kmresult@@\ifnum#1=\kmbarmove\relax0\else1\fi}% xor
\kmbarmove=#1\relax%
- \advance\kmbarlength by -1%
+ \advance\kmbarlength by -1\relax%
\ifnum\kmbarlength=\kmxvarno\kmbarmove=0\fi%
\fi%
\next}%
@@ -274,7 +275,7 @@
\else%
\edef\kmresult@@{\kmresult@@\ifnum#1=\kmbarmove\relax0\else1\fi}% xor
\kmbarmove=#1\relax%
- \advance\kmbarlength by -1%
+ \advance\kmbarlength by -1\relax%
\ifnum\kmbarlength=\kmxvarno%
\kmbarmove=0\relax%
\let\next\kmdectoKG@@tabvert%