diff options
author | Karl Berry <karl@freefriends.org> | 2020-09-16 21:34:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-16 21:34:25 +0000 |
commit | 9171277495ead4380a670e2ad46848220142611a (patch) | |
tree | 605a5fa33641afd0cb25b54d4bd2dd72ad00af55 /Master/texmf-dist | |
parent | 117c6b4636eae2f17f70cb32be6c688797f3965a (diff) |
kvmap (16sep20)
git-svn-id: svn://tug.org/texlive/trunk@56357 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/kvmap/DEPENDS.txt | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/kvmap/README.md | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/kvmap/kvmap.pdf | bin | 110023 -> 96808 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/kvmap/kvmap.dtx | 31 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/kvmap/kvmap.sty | 16 |
5 files changed, 32 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/kvmap/DEPENDS.txt b/Master/texmf-dist/doc/latex/kvmap/DEPENDS.txt new file mode 100644 index 00000000000..cc089feab1c --- /dev/null +++ b/Master/texmf-dist/doc/latex/kvmap/DEPENDS.txt @@ -0,0 +1,4 @@ +expl3 +amsmath +xparse +pgf # tikz but the CTAN name as requested in the DEPENDS.txt spec is pgf diff --git a/Master/texmf-dist/doc/latex/kvmap/README.md b/Master/texmf-dist/doc/latex/kvmap/README.md index 6dcefd6da82..a774dd7ef13 100644 --- a/Master/texmf-dist/doc/latex/kvmap/README.md +++ b/Master/texmf-dist/doc/latex/kvmap/README.md @@ -1,4 +1,4 @@ -# The `kvmap` package +# The `kvmap` package v0.3.5 This LaTeX package allows the creation of (even large) Karnaugh maps. It provides a tabular-like input syntax and support for drawing bundles diff --git a/Master/texmf-dist/doc/latex/kvmap/kvmap.pdf b/Master/texmf-dist/doc/latex/kvmap/kvmap.pdf Binary files differindex eb66731d6b0..3624e9dedee 100644 --- a/Master/texmf-dist/doc/latex/kvmap/kvmap.pdf +++ b/Master/texmf-dist/doc/latex/kvmap/kvmap.pdf diff --git a/Master/texmf-dist/source/latex/kvmap/kvmap.dtx b/Master/texmf-dist/source/latex/kvmap/kvmap.dtx index 1c7bb4008de..2adb0fbaa38 100644 --- a/Master/texmf-dist/source/latex/kvmap/kvmap.dtx +++ b/Master/texmf-dist/source/latex/kvmap/kvmap.dtx @@ -64,6 +64,12 @@ End of file \tcbset{enhanced,sharp corners=all} \usemintedstyle{vs} +^^A quick fix for tcolorbox's broken documentation library +^^A by Skillmon, see https://chat.stackexchange.com/transcript/message/55558127#55558127 +\makeatletter +\let\tcb@doc@index@doc\relax +\makeatother + \usepackage{fontspec} \usepackage{unicode-math} \setmainfont[Numbers={OldStyle}]{Libertinus Serif} @@ -102,7 +108,7 @@ End of file %<*pkg> %<@@=kvmap> \RequirePackage{expl3} -\ProvidesExplPackage{kvmap}{2020/04/25}{0.3.4}{Drawing karnaugh maps with LaTeX} +\ProvidesExplPackage{kvmap}{2020/09/16}{0.3.5}{Drawing karnaugh maps with LaTeX} %</pkg> % \fi % @@ -133,8 +139,8 @@ End of file % \section{Introduction} % \pkg{kvmap} aims to provide a \emph{user-friendly} (i.e. less typing) way to % typeset Karnaugh maps including the surrounding gray code and bundles of -% cells (implicants). This package relies on \pkg{xparse} (with \pkg{expl3}), -% \pkg{tikz} and \pkg{environ}.\par +% cells (implicants). This package relies on \pkg{amsmath}, \pkg{xparse} (with +% \pkg{expl3}) and \pkg{tikz}.\par % Drawing Karnaugh maps is not that uncommon and there are already packages % available on CTAN that provide means to typeset them:\begin{itemize} % \item \pkg{askmaps} -- This package lets you draw American style Karnaugh @@ -291,17 +297,18 @@ End of file % \end{documentation} % \begin{implementation} % \clearpage\section{Implementation} +% \changes{v0.3.5}{2020/09/16}{Add amsmath dependency to have smash option b available} % \begin{macrocode} +\RequirePackage{amsmath} \RequirePackage{xparse} \RequirePackage{tikz} -\RequirePackage{environ} % \end{macrocode} -% \begin{macro}[aux]{\seq_set_split:Nno,\seq_set_split:Nnx,\int_mod:VV,\int_div_truncate:VV} +% \begin{macro}[aux]{\seq_set_split:Nnx,\int_mod:VV,\int_div_truncate:VV} % Define variants for better expansion. % \begin{macrocode} -\cs_generate_variant:Nn \seq_set_split:Nnn { Nno, Nnx } -\cs_generate_variant:Nn \int_mod:nn { VV } -\cs_generate_variant:Nn \int_div_truncate:nn { VV } +\cs_generate_variant:Nn \seq_set_split:Nnn { Nnx } +\cs_generate_variant:Nn \int_mod:nn { VV } +\cs_generate_variant:Nn \int_div_truncate:nn { VV } % \end{macrocode} % \end{macro} @@ -753,14 +760,14 @@ End of file % \end{macrocode} % \end{variable} % \begin{macrocode} -\NewEnviron { kvmatrix } [ 1 ] +\NewDocumentEnvironment { kvmatrix } { m +b } { % \end{macrocode} % Split the environments body at |\\| and remove empty lines. Now the height % of the map is just the count of the sequence. Split the first element at |&| % and use the count of that as width. % \begin{macrocode} - \seq_set_split:Nno \l_tmpa_seq { \\ } { \BODY } + \seq_set_split:Nnn \l_tmpa_seq { \\ } { #2 } \seq_remove_all:Nn \l_tmpa_seq { } \seq_set_split:Nnx \l_tmpb_seq { & } { \seq_item:Nn \l_tmpa_seq { 1 } } \int_gset:Nn \l_@@_matrix_width_int { \seq_count:N \l_tmpb_seq } @@ -790,7 +797,7 @@ End of file { #1 } \bool_if:NF \l_@@_matrix_isintikz_bool { \end{tikzpicture} } - } + } { } % \end{macrocode} % \end{environment} @@ -809,6 +816,6 @@ End of file % \end{macro} % \end{implementation} % \clearpage\PrintChanges -% \clearpage\PrintIndex +% ^^A\clearpage\PrintIndex % \Finale % \endinput
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/kvmap/kvmap.sty b/Master/texmf-dist/tex/latex/kvmap/kvmap.sty index 60c44d062ed..b3671e6a6a0 100644 --- a/Master/texmf-dist/tex/latex/kvmap/kvmap.sty +++ b/Master/texmf-dist/tex/latex/kvmap/kvmap.sty @@ -15,13 +15,13 @@ %% http://www.latex-project.org/lppl.txt %% \RequirePackage{expl3} -\ProvidesExplPackage{kvmap}{2020/04/25}{0.3.4}{Drawing karnaugh maps with LaTeX} +\ProvidesExplPackage{kvmap}{2020/09/16}{0.3.5}{Drawing karnaugh maps with LaTeX} +\RequirePackage{amsmath} \RequirePackage{xparse} \RequirePackage{tikz} -\RequirePackage{environ} -\cs_generate_variant:Nn \seq_set_split:Nnn { Nno, Nnx } -\cs_generate_variant:Nn \int_mod:nn { VV } -\cs_generate_variant:Nn \int_div_truncate:nn { VV } +\cs_generate_variant:Nn \seq_set_split:Nnn { Nnx } +\cs_generate_variant:Nn \int_mod:nn { VV } +\cs_generate_variant:Nn \int_div_truncate:nn { VV } \cs_new:Npn \__kvmap_graycode_xor_bits:nn #1#2 { @@ -269,9 +269,9 @@ yshift=\l__kvmap_bundle_reducespace_dim] } \seq_new:N \l__kvmap_tmp_seq -\NewEnviron { kvmatrix } [ 1 ] +\NewDocumentEnvironment { kvmatrix } { m +b } { -\seq_set_split:Nno \l_tmpa_seq { \\ } { \BODY } +\seq_set_split:Nnn \l_tmpa_seq { \\ } { #2 } \seq_remove_all:Nn \l_tmpa_seq { } \seq_set_split:Nnx \l_tmpb_seq { & } { \seq_item:Nn \l_tmpa_seq { 1 } } \int_gset:Nn \l__kvmap_matrix_width_int { \seq_count:N \l_tmpb_seq } @@ -293,7 +293,7 @@ yshift=\l__kvmap_bundle_reducespace_dim] { #1 } \bool_if:NF \l__kvmap_matrix_isintikz_bool { \end{tikzpicture} } -} +} { } \NewDocumentCommand { \kvmapsetup } { m } { |