texlive[50815] Master/texmf-dist: soup (6apr19)

commits+karl at tug.org commits+karl at tug.org
Sat Apr 6 23:12:54 CEST 2019


Revision: 50815
          http://tug.org/svn/texlive?view=revision&revision=50815
Author:   karl
Date:     2019-04-06 23:12:54 +0200 (Sat, 06 Apr 2019)
Log Message:
-----------
soup (6apr19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/soup/soup.pdf
    trunk/Master/texmf-dist/source/latex/soup/soup.dtx
    trunk/Master/texmf-dist/tex/latex/soup/soup.sty

Modified: trunk/Master/texmf-dist/doc/latex/soup/soup.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/soup/soup.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/soup/soup.dtx	2019-04-06 21:12:39 UTC (rev 50814)
+++ trunk/Master/texmf-dist/source/latex/soup/soup.dtx	2019-04-06 21:12:54 UTC (rev 50815)
@@ -16,7 +16,7 @@
 %
 % \iffalse
 %<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{soup}[2017/01/15 v1.0 Package for word search puzzles.]
+%<package>\ProvidesPackage{soup}[2019/04/05 v1.0.2 Package for word search puzzles.]
 %
 %<*driver>
 \documentclass[full]{l3doc}
@@ -30,6 +30,7 @@
 %</driver>
 % \fi
 % \changes{v1.0}{2017/01/10}{Initial version}
+% \changes{v1.0.2}{2019/04/05}{Update to work with changes to expl3 kernel.}
 % \GetFileInfo{soup.sty}
 %
 % \DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ }
@@ -373,10 +374,10 @@
 % \subsection{Internal Functions}
 %
 %
-% \begin{macro}[aux]{\__soup_init:oo}
+% \begin{macro}[aux]{\__soup_init:nn}
 % Resets the storage in preparation for a new soup.
 %    \begin{macrocode}
-\cs_new:Nn \__soup_init:oo {
+\cs_new:Nn \__soup_init:nn {
     \clist_clear_new:N \g_soup_symbol_clist
     \dim_gzero_new:N \g_soup_highlight_dim
     \dim_gzero_new:N \g_soup_spacing_dim
@@ -516,19 +517,21 @@
 %
 %    \begin{macrocode}
 \cs_new:Nn \__soup_draw_soup_tabular: {
+    \dim_zero_new:N \l_soup_colwidth_dim
+    \exp_args:Nnx
+    \dim_set:Nn \l_soup_colwidth_dim {\fp_to_dim:n {0.45 * \textwidth / (\g_soup_columns_int + 1)}}
+
     \dim_zero_new:N \l_soup_lineheight_dim
-    \dim_set:Nn \l_soup_lineheight_dim {\g_soup_spacing_dim - \baselineskip}
+    \dim_set:Nn \l_soup_lineheight_dim {2\l_soup_colwidth_dim - \baselineskip}
 
+    \setlength{\tabcolsep}{\l_soup_colwidth_dim}
     \vspace{0.25\g_soup_spacing_dim}\par
-    \noindent\fbox{\parbox[c][
-        \g_soup_rows_int\g_soup_spacing_dim
-    ][c]{\g_soup_columns_int\g_soup_spacing_dim}{
-    \begin{tabular*}{
-        \g_soup_columns_int\g_soup_spacing_dim
-    }{
+    \noindent
+    \begin{tabular*}{\textwidth}{
         @{\extracolsep{\fill}}
-        *{\g_soup_columns_int}{c}
+        | *{\g_soup_columns_int}{c@{\hskip\l_soup_colwidth_dim}} |
     }
+        \hline\rule{0pt}{\g_soup_spacing_dim}
         \int_step_inline:nnnn {1} {1} {\g_soup_rows_int } {
             \int_gset:Nn \g_tmpa_int {##1}
             \int_step_variable:nnnNn {1} {1} {\g_soup_columns_int} \l_tmpb_int {
@@ -552,11 +555,9 @@
             \int_compare:nNnTF \g_tmpa_int < \g_soup_rows_int {
                 \\[\l_soup_lineheight_dim]
             }{
+                \\[\l_soup_lineheight_dim]\hline\end{tabular*}
             }
         }
-    \end{tabular*}
-    }
-    }
 }
 %    \end{macrocode}
 % \end{macro}
@@ -756,7 +757,7 @@
 \NewDocumentEnvironment{alphabetsoup}{ sO{15}oo }
 {
     \par\noindent
-    \__soup_init:oo {#2}{#3}
+    \__soup_init:nn {#2}{#3}
     \IfBooleanTF{#1}{
         \def\showlist{}
     }{
@@ -792,7 +793,7 @@
 \NewDocumentEnvironment{Alphabetsoup}{ sO{15}oo }
 {
     \par\noindent
-    \__soup_init:oo {#2}{#3}
+    \__soup_init:nn {#2}{#3}
     \IfBooleanTF{#1}{
         \def\showlist{}
     }{
@@ -826,7 +827,7 @@
 \NewDocumentEnvironment{homemadesoup}{ sO{15}omo }
 {
     \par\noindent
-    \__soup_init:oo {#2}{#3}
+    \__soup_init:nn {#2}{#3}
     \IfBooleanTF{#1}{
         \def\showlist{}
     }{
@@ -860,7 +861,7 @@
 \NewDocumentEnvironment{numbersoup}{ sO{15}omO{0}o }
 {
     \par\noindent
-    \__soup_init:oo{#2}{#3}
+    \__soup_init:nn{#2}{#3}
     \IfBooleanTF{#1}{
         \def\showlist{}
     }{

Modified: trunk/Master/texmf-dist/tex/latex/soup/soup.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/soup/soup.sty	2019-04-06 21:12:39 UTC (rev 50814)
+++ trunk/Master/texmf-dist/tex/latex/soup/soup.sty	2019-04-06 21:12:54 UTC (rev 50815)
@@ -18,7 +18,7 @@
 %%   and version 1.3 or later is part of all distributions of
 %%   LaTeX version 2005/12/01 or later.
 \NeedsTeXFormat{LaTeX2e}[2005/12/01]
-\ProvidesPackage{soup}[2017/01/15 v1.0 Package for word search puzzles.]
+\ProvidesPackage{soup}[2019/04/05 v1.0.2 Package for word search puzzles.]
 \RequirePackage{xparse}
 \RequirePackage{expl3}
 \RequirePackage{l3keys2e}
@@ -77,7 +77,7 @@
 
 \prop_new:N \g_soup_data_prop
 \seq_new:N \g_soup_clue_seq
-\cs_new:Nn \__soup_init:oo {
+\cs_new:Nn \__soup_init:nn {
     \clist_clear_new:N \g_soup_symbol_clist
     \dim_gzero_new:N \g_soup_highlight_dim
     \dim_gzero_new:N \g_soup_spacing_dim
@@ -171,19 +171,21 @@
     \end{tikzpicture}
 }
 \cs_new:Nn \__soup_draw_soup_tabular: {
+    \dim_zero_new:N \l_soup_colwidth_dim
+    \exp_args:Nnx
+    \dim_set:Nn \l_soup_colwidth_dim {\fp_to_dim:n {0.45 * \textwidth / (\g_soup_columns_int + 1)}}
+
     \dim_zero_new:N \l_soup_lineheight_dim
-    \dim_set:Nn \l_soup_lineheight_dim {\g_soup_spacing_dim - \baselineskip}
+    \dim_set:Nn \l_soup_lineheight_dim {2\l_soup_colwidth_dim - \baselineskip}
 
+    \setlength{\tabcolsep}{\l_soup_colwidth_dim}
     \vspace{0.25\g_soup_spacing_dim}\par
-    \noindent\fbox{\parbox[c][
-        \g_soup_rows_int\g_soup_spacing_dim
-    ][c]{\g_soup_columns_int\g_soup_spacing_dim}{
-    \begin{tabular*}{
-        \g_soup_columns_int\g_soup_spacing_dim
-    }{
+    \noindent
+    \begin{tabular*}{\textwidth}{
         @{\extracolsep{\fill}}
-        *{\g_soup_columns_int}{c}
+        | *{\g_soup_columns_int}{c@{\hskip\l_soup_colwidth_dim}} |
     }
+        \hline\rule{0pt}{\g_soup_spacing_dim}
         \int_step_inline:nnnn {1} {1} {\g_soup_rows_int } {
             \int_gset:Nn \g_tmpa_int {##1}
             \int_step_variable:nnnNn {1} {1} {\g_soup_columns_int} \l_tmpb_int {
@@ -207,11 +209,9 @@
             \int_compare:nNnTF \g_tmpa_int < \g_soup_rows_int {
                 \\[\l_soup_lineheight_dim]
             }{
+                \\[\l_soup_lineheight_dim]\hline\end{tabular*}
             }
         }
-    \end{tabular*}
-    }
-    }
 }
 \cs_new:Nn \__soup_show_random_symbol: {
     \int_compare:nNnTF \g_soup_symbol_count_int = 0 {
@@ -350,7 +350,7 @@
 \NewDocumentEnvironment{alphabetsoup}{ sO{15}oo }
 {
     \par\noindent
-    \__soup_init:oo {#2}{#3}
+    \__soup_init:nn {#2}{#3}
     \IfBooleanTF{#1}{
         \def\showlist{}
     }{
@@ -376,7 +376,7 @@
 \NewDocumentEnvironment{Alphabetsoup}{ sO{15}oo }
 {
     \par\noindent
-    \__soup_init:oo {#2}{#3}
+    \__soup_init:nn {#2}{#3}
     \IfBooleanTF{#1}{
         \def\showlist{}
     }{
@@ -402,7 +402,7 @@
 \NewDocumentEnvironment{homemadesoup}{ sO{15}omo }
 {
     \par\noindent
-    \__soup_init:oo {#2}{#3}
+    \__soup_init:nn {#2}{#3}
     \IfBooleanTF{#1}{
         \def\showlist{}
     }{
@@ -429,7 +429,7 @@
 \NewDocumentEnvironment{numbersoup}{ sO{15}omO{0}o }
 {
     \par\noindent
-    \__soup_init:oo{#2}{#3}
+    \__soup_init:nn{#2}{#3}
     \IfBooleanTF{#1}{
         \def\showlist{}
     }{



More information about the tex-live-commits mailing list