Verzeichnis macros/latex/contrib/switch
switch
A constant time/expandable switch/case
For more details, see the documentation, switch.pdf
Requirements
- none besides a fairly recent LaTeX 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
- The LaTeX Project Public License, version 1.3c (or later), and/or
- The GNU Affero General Public License, version 3 (or later)
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.
- Documentation: added a more advanced example.
- Version 1.0
- Initial setup.
Herunterladen des vollständigen Inhalts dieses Pakets in einem Zip-Archiv (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.
Paket | switch |
Fehlermeldungen | https://github.com/alceu-frigeri/switch/issues |
Ankündigungen | https://github.com/alceu-frigeri/switch/releases |
Repository | https://github.com/alceu-frigeri/switch |
Version | 1.1a 2025-05-19 |
Lizenzen | The LaTeX Project Public License 1.3c GNU General Public License |
Copyright | 2025 Alceu Frigeri |
Betreuer | Alceu Frigeri |
Enthalten in | TeX Live als switch MiKTeX als switch |
Themen | Expl3 Makro-Unterstützung Bedingter Satz |
