diff options
Diffstat (limited to 'macros/latex/contrib/scrambledenvs')
-rw-r--r-- | macros/latex/contrib/scrambledenvs/README.md | 6 | ||||
-rw-r--r-- | macros/latex/contrib/scrambledenvs/scrambledenvs.dtx | 19 | ||||
-rw-r--r-- | macros/latex/contrib/scrambledenvs/scrambledenvs.pdf | bin | 191739 -> 191784 bytes |
3 files changed, 17 insertions, 8 deletions
diff --git a/macros/latex/contrib/scrambledenvs/README.md b/macros/latex/contrib/scrambledenvs/README.md index cab73c508e..ed9e9eebef 100644 --- a/macros/latex/contrib/scrambledenvs/README.md +++ b/macros/latex/contrib/scrambledenvs/README.md @@ -1,4 +1,8 @@ -# 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@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. diff --git a/macros/latex/contrib/scrambledenvs/scrambledenvs.dtx b/macros/latex/contrib/scrambledenvs/scrambledenvs.dtx index d83f1cfffd..bc51131fd8 100644 --- a/macros/latex/contrib/scrambledenvs/scrambledenvs.dtx +++ b/macros/latex/contrib/scrambledenvs/scrambledenvs.dtx @@ -15,7 +15,11 @@ \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@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. @@ -115,13 +119,13 @@ This package consists of the file scrambledenvs.dtx, %</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 @@ This package consists of the file scrambledenvs.dtx, %</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 @@ This package consists of the file scrambledenvs.dtx, %</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 @@ This package consists of the file scrambledenvs.dtx, \newenvironment{#1s}{% \setcounter{scrambledenvs@#1@tempcount}{0}% \def\scrambledenvs@active{#1}% - \unskip\ignorespaces% } { \ifnum\value{scrambledenvs@#1@tempcount}=0\relax @@ -231,9 +236,9 @@ This package consists of the file scrambledenvs.dtx, {\csname scrambledenvs@#1@labelfont\endcsname\csname scrambledenvs@#1@label\endcsname :} {\csname scrambledenvs@#1@reffont\endcsname\ref{#1:\value{scrambledenvs@#1@count}}}% \else - {\csname scrambledenvs@#1@labelfont\endcsname\csname scrambledenvs@#1@label\endcsname s:}% - \forloop{scrambledenvs@loopcount}{\the\numexpr\value{scrambledenvs@#1@count}-\value{scrambledenvs@#1@tempcount}+1\relax}{\value{scrambledenvs@loopcount}<\the\numexpr\value{scrambledenvs@#1@count}+1\relax} { - {\csname scrambledenvs@#1@reffont\endcsname\ref{#1:\thescrambledenvs@loopcount}}% + {\csname scrambledenvs@#1@labelfont\endcsname\csname scrambledenvs@#1@label\endcsname s:} + \forloop{scrambledenvs@loopcount}{\the\numexpr\value{scrambledenvs@#1@count}-\value{scrambledenvs@#1@tempcount}+1\relax}{\value{scrambledenvs@loopcount}<\the\numexpr\value{scrambledenvs@#1@count}+1\relax} {% + {\csname scrambledenvs@#1@reffont\endcsname\ref{#1:\thescrambledenvs@loopcount}} } \fi \fi diff --git a/macros/latex/contrib/scrambledenvs/scrambledenvs.pdf b/macros/latex/contrib/scrambledenvs/scrambledenvs.pdf Binary files differindex 079d211a9f..a2df1c1553 100644 --- a/macros/latex/contrib/scrambledenvs/scrambledenvs.pdf +++ b/macros/latex/contrib/scrambledenvs/scrambledenvs.pdf |