New on CTAN: ifallfalse
Date: July 3, 2021 10:15:26 PM CEST
Dennis Chen submitted the
ifallfalse
package.
Version: 1.0.0 2021-07-01
License: lppl1.3
Summary description: Compare a string against a set of other strings
Announcement text:
This is a new package that allows the user to compare a string against a set of strings and execute an action if it doesn't match said set. This can be useful to check, for instance, whether a theme (a string) a user passed in is actually defined (by checking it against all defined themes.) The following environments/macros are provided: - ifallfalse {string}{action} - \orcheck{string} Important information and setup details are in the README and documentation is in `ifallfalse.pdf`.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/ifallfalse The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/latex/contrib/ifallfalse/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs
This is a new package that allows the user to compare a string against a set of strings and execute an action if it doesn't match said set. This can be useful to check, for instance, whether a theme (a string) a user passed in is actually defined (by checking it against all defined themes.) The following environments/macros are provided: - ifallfalse {string}{action} - \orcheck{string} Important information and setup details are in the README and documentation is in `ifallfalse.pdf`.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/ifallfalse The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/latex/contrib/ifallfalse/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs
ifallfalse – Compare a string against a set of other strings
This package allows you to check whether a string is contained within another set of strings, and perform an action if it is not. This is done by using the allfalse environment and passing in a string and an action to be performed if the string is not contained in the set. Then, passing in a string to the \orcheck macro inside the respective allfalse environment adds that to the set of strings.
This package does not work with the LuaTeX engine.
Package | ifallfalse |
Version | 2.0.0 2021-07-22 |
Copyright | 2021 Dennis Chen |
Maintainer | Dennis Chen |