diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/ifallfalse/README.md | 10 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/ifallfalse/ifallfalse.pdf | bin | 163190 -> 176927 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/ifallfalse/ifallfalse.dtx | 35 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ifallfalse/ifallfalse.sty | 2 |
4 files changed, 27 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/latex/ifallfalse/README.md b/Master/texmf-dist/doc/latex/ifallfalse/README.md index cddfa35cd31..925d98f471a 100644 --- a/Master/texmf-dist/doc/latex/ifallfalse/README.md +++ b/Master/texmf-dist/doc/latex/ifallfalse/README.md @@ -1,4 +1,4 @@ -# The LaTeX package ifallfalse - version 1.0.0 (2021/07/01) +# The LaTeX package ifallfalse - version 1.0.1 (2021/07/12) > Copyright (C) 2021 Dennis Chen <proofprogram@gmail.com> > @@ -11,12 +11,14 @@ > and version 1.3 or later is part of all distributions of LaTeX > version 2005/12/01 or later. -`ifallfalse` provides an environment that can compare a string against a set of another strings, and if it matches none of them, it executes some action. +`ifallfalse` provides an `allfalse` environment that can compare a string against a set of another strings, and if it matches none of them, it executes some action. + +Note that this package does not work with the `lualatex` engine. ## Package contents - `README.md` this file -- `ifallfalse.pdf` documentation PDF with implementation details +- `ifallfalse.pdf` documentation PDF with implementation details - `ifallfalse.dtx` contains package and documentation code - `ifallfalse.ins` generates .sty from .dtx @@ -34,4 +36,4 @@ Run pdflatex ifallfalse.dtx -to generate `ifallfalse.pdf`, which contains the package documentation.
\ No newline at end of file +to generate `ifallfalse.pdf`, which contains the package documentation. diff --git a/Master/texmf-dist/doc/latex/ifallfalse/ifallfalse.pdf b/Master/texmf-dist/doc/latex/ifallfalse/ifallfalse.pdf Binary files differindex 6793c7799ba..44df77fa26f 100644 --- a/Master/texmf-dist/doc/latex/ifallfalse/ifallfalse.pdf +++ b/Master/texmf-dist/doc/latex/ifallfalse/ifallfalse.pdf diff --git a/Master/texmf-dist/source/latex/ifallfalse/ifallfalse.dtx b/Master/texmf-dist/source/latex/ifallfalse/ifallfalse.dtx index 23bbbedd0d7..9d5e630f731 100644 --- a/Master/texmf-dist/source/latex/ifallfalse/ifallfalse.dtx +++ b/Master/texmf-dist/source/latex/ifallfalse/ifallfalse.dtx @@ -15,7 +15,7 @@ % \iffalse %<package> %<package>\NeedsTeXFormat{LaTeX2e} -%<package>\ProvidesPackage{ifallfalse}[2021/07/01 v1.0.0 Compare string against set of other strings] +%<package>\ProvidesPackage{ifallfalse}[2021/07/12 v1.0.1 Compare string against set of other strings] %<*driver> \documentclass{ltxdoc} @@ -30,6 +30,7 @@ %</driver> % \fi % +% \changes{v.1.0.1}{2021/07/12}{Fix errant references to allfalse environment and add limitations} % \changes{v1.0.0}{2021/07/01}{Initial version} % % \GetFileInfo{ifallfalse.sty} @@ -46,40 +47,40 @@ % % \section{Usage} % -% The package provides an \textsf{ifallfalse} environment and a macro |\orcheck| to be used inside the \textsf{ifallfalse} environment. +% The package provides an \textsf{allfalse} environment and a macro |\orcheck| to be used inside the \textsf{allfalse} environment. % -% \DescribeEnv{ifallfalse} -% To set up an ifallfalse environment, simply write +% \DescribeEnv{allfalse} +% To set up an allfalse environment, simply write % \begin{verbatim} -%\begin{ifallfalse}{string}{action} +%\begin{allfalse}{string}{action} % -%\end{ifallfalse} +%\end{allfalse} % \end{verbatim} % \textsf{string} will be compared to the set of strings (which we will declare via |\orcheck|), and if \textsf{string} does not match the set of strings, \textsf{action} will be executed. % % \DescribeMacro{\orcheck} % -% To add strings to the set that \textsf{string} will be compared to, we must write |\orcheck{setstring}| inside the corresponding \textsf{ifallfalse} environment. Then, \textsf{action} will not execute if \textsf{string} matches \textsf{setstring} or any arguments of previous |\orcheck| declarations. +% To add strings to the set that \textsf{string} will be compared to, we must write |\orcheck{setstring}| inside the corresponding \textsf{allfalse} environment. Then, \textsf{action} will not execute if \textsf{string} matches \textsf{setstring} or any arguments of previous |\orcheck| declarations. % % If no |\orcheck| declarations exist, then \textsf{action} will always be executed. % % \subsection{Error Checking} % -% The package checks whether the macro |\orcheck| is used inside an \textsf{ifallfalse} environment. If it is not, the package throws an error. +% The package checks whether the macro |\orcheck| is used inside an \textsf{allfalse} environment. If it is not, the package throws an error. % % \section{Example} % -% Here is a simple example to demonstrate how \textsf{ifallfalse} is used. +% Here is a simple example to demonstrate how \textsf{allfalse} is used. % \begin{verbatim} %\documentclass{minimal} % %\begin{document} % -%\begin{ifallfalse}{purple}{This color is not red, blue, or green!} +%\begin{allfalse}{purple}{This color is not red, blue, or green!} % \orcheck{red} % \orcheck{blue} % \orcheck{green} -%\end{ifallfalse} +%\end{allfalse} % %\end{document} % \end{verbatim} @@ -88,10 +89,10 @@ % % \section{Implementation} % -% These are the implementation details of package \textsf{ifallfalse}. Because the package is so short, we can explain everything. +% These are the implementation details of package \textsf{allfalse}. Because the package is so short, we can explain everything. % -% \begin{environment}{ifallfalse} -% When setting up ifallfalse, we locally define the |\comparedstring| macro with the first argument that the environment takes in. This is what will be compared against all the strings passed in through the |\orcheck| declarations inside the environment. +% \begin{environment}{allfalse} +% When setting up allfalse, we locally define the |\comparedstring| macro with the first argument that the environment takes in. This is what will be compared against all the strings passed in through the |\orcheck| declarations inside the environment. % % Then, we define our body of logic (which we will be adding onto through |\orcheck|) to just initially consist of the action we would like to perform if |\comparedstring| matches none of the strings passed in through |\orcheck|. % \begin{macrocode} @@ -139,5 +140,9 @@ % \end{macrocode} % \end{macro} % +% \section{Limitations} +% +% This package cannot be used in the \textsf{lualatex} engine. +% % \Finale -\endinput
\ No newline at end of file +\endinput diff --git a/Master/texmf-dist/tex/latex/ifallfalse/ifallfalse.sty b/Master/texmf-dist/tex/latex/ifallfalse/ifallfalse.sty index 1de8858f96b..fbd4eedffa1 100644 --- a/Master/texmf-dist/tex/latex/ifallfalse/ifallfalse.sty +++ b/Master/texmf-dist/tex/latex/ifallfalse/ifallfalse.sty @@ -15,7 +15,7 @@ %% version 2005/12/01 or later. \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ifallfalse}[2021/07/01 v1.0.0 Compare string against set of other strings] +\ProvidesPackage{ifallfalse}[2021/07/12 v1.0.1 Compare string against set of other strings] \newenvironment{allfalse}[2] { |