CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/ifallfalse

README.md

The package ifallfalse - version 2.0.0 (2021/07/22)

Copyright (C) 2021 Dennis Chen <proofprogram@gmail.com>

>

This file may be distributed and/or modified under
the conditions the 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
version 2005/12/01 or later.

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.dtx contains package and documentation code
  • ifallfalse.ins generates .sty from .dtx

File generation

A working installation is required.

Run

tex ifallfalse.ins

to generate ifallfalse.sty. To use it, you need to put ifallfalse.sty into a directory searched by .

Run

pdflatex ifallfalse.dtx

to generate ifallfalse.pdf, which contains the package documentation.

Download the contents of this package in one zip archive (172.9k).

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 Lua engine.

Packageifallfalse
Repositoryhttps://github.com/chennisden/ifallfalse
Version2.0.0 2021-07-22
LicensesThe Project Public License 1.3
Copyright2021 Dennis Chen
MaintainerDennis Chen
Contained inTeX Live as ifallfalse
MiKTeX as ifallfalse
TopicsMacro support
Conditional compilation
...
Guest Book Sitemap Contact Contact Author