texlive[60163] Master/texmf-dist: scrambledenvs (4aug21)

commits+karl at tug.org commits+karl at tug.org
Wed Aug 4 23:15:12 CEST 2021


Revision: 60163
          http://tug.org/svn/texlive?view=revision&revision=60163
Author:   karl
Date:     2021-08-04 23:15:12 +0200 (Wed, 04 Aug 2021)
Log Message:
-----------
scrambledenvs (4aug21)

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

Modified: trunk/Master/texmf-dist/doc/latex/scrambledenvs/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scrambledenvs/README.md	2021-08-04 21:14:59 UTC (rev 60162)
+++ trunk/Master/texmf-dist/doc/latex/scrambledenvs/README.md	2021-08-04 21:15:12 UTC (rev 60163)
@@ -1,5 +1,9 @@
-# The LaTeX package scrambledenvs - version 1.0.0 (2021/07/31)
+# The LaTeX package scrambledenvs - version 1.0.1 (2021/08/03)
 
+> Copyright (C) 2021 Dennis Chen proofprogram at gmail.com
+>
+> This file may be distributed and/or modified under the conditions the LaTeX Project Public License (LPPL), either version 1.3 of this license or (at your option) any later version. The latest version of this license can be found in http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later.
+
 **scrambledenvs** allows you to arbitrarily create and print scrambled environments (like scrambled hints in a book) and customize the output.
 
 ## Installation instructions

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

Modified: trunk/Master/texmf-dist/source/latex/scrambledenvs/scrambledenvs.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/scrambledenvs/scrambledenvs.dtx	2021-08-04 21:14:59 UTC (rev 60162)
+++ trunk/Master/texmf-dist/source/latex/scrambledenvs/scrambledenvs.dtx	2021-08-04 21:15:12 UTC (rev 60163)
@@ -15,8 +15,12 @@
 \iffalse
 %</internal>
 %<*readme>
-# The LaTeX package scrambledenvs - version 1.0.0 (2021/07/31)
+# The LaTeX package scrambledenvs - version 1.0.1 (2021/08/03)
 
+> Copyright (C) 2021 Dennis Chen proofprogram at gmail.com
+> 
+> This file may be distributed and/or modified under the conditions the LaTeX Project Public License (LPPL), either version 1.3 of this license or (at your option) any later version. The latest version of this license can be found in http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later.
+
 **scrambledenvs** allows you to arbitrarily create and print scrambled environments (like scrambled hints in a book) and customize the output.
 
 ## Installation instructions
@@ -115,13 +119,13 @@
 %</internal>
 %<*main>
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{scrambledenvs}[2021/07/31 v1.0.0 Create and print scrambled environments]
+\ProvidesPackage{scrambledenvs}[2021/08/03 v1.0.1 Create and print scrambled environments]
 \RequirePackage{forloop}
 \RequirePackage{pgfmath}
 \pgfmathsetseed{2407}
 %</main>
 %<*driver>
-\ProvidesFile{\jobname.dtx}[2021/07/31 v1.0.0 Create and print scrambled environments]
+\ProvidesFile{\jobname.dtx}[2021/08/03 v1.0.1 Create and print scrambled environments]
 \documentclass{ltxdoc}
 
 \EnableCrossrefs
@@ -136,6 +140,7 @@
 %</driver>
 % \fi
 % \GetFileInfo{\jobname.dtx}
+% \changes{v1.0.1}{2021/08/03}{Add info about author and license to README}
 % \changes{v1.0.0}{2021/07/31}{Initial version}
 %
 % \renewcommand{\emph}[1]{\textbf{#1}}
@@ -212,6 +217,7 @@
 %</helper>
 % \fi
 % \DescribeEnv{hints}
+% \changes{v1.0.1}{2021/08/03}{Adjust spacing to make two scrambled envs look prettier together}
 % This is the outer environment. Depending on how many |hint| environments are put inside it, it will either typeset \emph{Hints:} or \emph{Hint:} with the numerical labels of the passed in hints following it.
 % You should put in nothing but the inner environment |hint|. (See the examples for a correct usage.)
 % \iffalse
@@ -222,7 +228,6 @@
 \newenvironment{#1s}{%
     \setcounter{scrambledenvs@#1 at tempcount}{0}%
     \def\scrambledenvs at active{#1}%
-    \unskip\ignorespaces%
 }
 {
 \ifnum\value{scrambledenvs@#1 at tempcount}=0\relax
@@ -231,9 +236,9 @@
         {\csname scrambledenvs@#1 at labelfont\endcsname\csname scrambledenvs@#1 at label\endcsname :}
         {\csname scrambledenvs@#1 at reffont\endcsname\ref{#1:\value{scrambledenvs@#1 at count}}}%
     \else
-        {\csname scrambledenvs@#1 at labelfont\endcsname\csname scrambledenvs@#1 at label\endcsname s:}%
-        \forloop{scrambledenvs at loopcount}{\the\numexpr\value{scrambledenvs@#1 at count}-\value{scrambledenvs@#1 at tempcount}+1\relax}{\value{scrambledenvs at loopcount}<\the\numexpr\value{scrambledenvs@#1 at count}+1\relax} {
-            {\csname scrambledenvs@#1 at reffont\endcsname\ref{#1:\thescrambledenvs at loopcount}}%
+        {\csname scrambledenvs@#1 at labelfont\endcsname\csname scrambledenvs@#1 at label\endcsname s:}
+        \forloop{scrambledenvs at loopcount}{\the\numexpr\value{scrambledenvs@#1 at count}-\value{scrambledenvs@#1 at tempcount}+1\relax}{\value{scrambledenvs at loopcount}<\the\numexpr\value{scrambledenvs@#1 at count}+1\relax} {%
+            {\csname scrambledenvs@#1 at reffont\endcsname\ref{#1:\thescrambledenvs at loopcount}}
         }
     \fi
 \fi

Modified: trunk/Master/texmf-dist/tex/latex/scrambledenvs/scrambledenvs.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/scrambledenvs/scrambledenvs.sty	2021-08-04 21:14:59 UTC (rev 60162)
+++ trunk/Master/texmf-dist/tex/latex/scrambledenvs/scrambledenvs.sty	2021-08-04 21:15:12 UTC (rev 60163)
@@ -27,7 +27,7 @@
 
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{scrambledenvs}[2021/07/31 v1.0.0 Create and print scrambled environments]
+\ProvidesPackage{scrambledenvs}[2021/08/03 v1.0.1 Create and print scrambled environments]
 \RequirePackage{forloop}
 \RequirePackage{pgfmath}
 \pgfmathsetseed{2407}
@@ -43,7 +43,6 @@
 \newenvironment{#1s}{%
     \setcounter{scrambledenvs@#1 at tempcount}{0}%
     \def\scrambledenvs at active{#1}%
-    \unskip\ignorespaces%
 }
 {
 \ifnum\value{scrambledenvs@#1 at tempcount}=0\relax
@@ -52,9 +51,9 @@
         {\csname scrambledenvs@#1 at labelfont\endcsname\csname scrambledenvs@#1 at label\endcsname :}
         {\csname scrambledenvs@#1 at reffont\endcsname\ref{#1:\value{scrambledenvs@#1 at count}}}%
     \else
-        {\csname scrambledenvs@#1 at labelfont\endcsname\csname scrambledenvs@#1 at label\endcsname s:}%
-        \forloop{scrambledenvs at loopcount}{\the\numexpr\value{scrambledenvs@#1 at count}-\value{scrambledenvs@#1 at tempcount}+1\relax}{\value{scrambledenvs at loopcount}<\the\numexpr\value{scrambledenvs@#1 at count}+1\relax} {
-            {\csname scrambledenvs@#1 at reffont\endcsname\ref{#1:\thescrambledenvs at loopcount}}%
+        {\csname scrambledenvs@#1 at labelfont\endcsname\csname scrambledenvs@#1 at label\endcsname s:}
+        \forloop{scrambledenvs at loopcount}{\the\numexpr\value{scrambledenvs@#1 at count}-\value{scrambledenvs@#1 at tempcount}+1\relax}{\value{scrambledenvs at loopcount}<\the\numexpr\value{scrambledenvs@#1 at count}+1\relax} {%
+            {\csname scrambledenvs@#1 at reffont\endcsname\ref{#1:\thescrambledenvs at loopcount}}
         }
     \fi
 \fi



More information about the tex-live-commits mailing list.