CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/switch

README.md

switch

A constant time/expandable switch/case

For more details, see the documentation, switch.pdf



Requirements

  • none besides a fairly recent distribution as recent as 2022/06/01

(with the new in kernel ProcessKeyOptions and NewDocumentCommand).

Installation

The stable version is available at CTAN.

Usage

Stable version

Just place

  \usepackage{switch}

in the preamble and compile away.

Contacting Author

For bug reports and enhancement suggestions, the preferred way is to use the project's issue page. Please be ready to provide an example code showing the bug, if any.

Please do not use the issue page for generic help on how to use the package.


Copyright 2025-present by Alceu Frigeri

This work may be distributed and/or modified under the conditions of

This work has the LPPL maintenance status maintained.

The Current Maintainer of this work is Alceu Frigeri


## This work consist of the files

  • switch.sty
    • the package itself
  • README.md (this file)
    • quick introduction
  • switch.tex
  • switch.bib
    • package documentation
  • switch.pdf
    • documentation in PDF format

————-

Change log

  • Version 1.1a (this)
    • Documentation typos.
  • Version 1.1
    • Documentation: added a more advanced example.
      • added a set of commands to test the existence and undefine switches.
  • Version 1.0
    • Initial setup.

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

switch – A constant time/expandable switch/case

This package defines two commands (and aliases) aimed at implementing a constant time switch/case alike command.

Packageswitch
Bug trackerhttps://github.com/alceu-frigeri/switch/issues
Announcementshttps://github.com/alceu-frigeri/switch/releases
Repositoryhttps://github.com/alceu-frigeri/switch
Version1.1a 2025-05-19
LicensesGNU General Public License
The Project Public License 1.3c
Copyright2025 Alceu Frigeri
MaintainerAlceu Frigeri
Contained inTeX Live as switch
MiKTeX as switch
TopicsConditional compilation
Experimental 3
Macro support
...
Guest Book Sitemap Contact Contact Author