| 1 |
switch |
| 2 |
========== |
| 3 |
|
| 4 |
A constant time/expandable switch/case |
| 5 |
|
| 6 |
For more details, see the documentation, |
| 7 |
[switch.pdf](http://mirrors.ctan.org/macros/latex/contrib/switch/doc/switch.pdf) |
| 8 |
|
| 9 |
-------------- |
| 10 |
|
| 11 |
## Requirements |
| 12 |
* none besides a fairly recent LaTeX distribution as recent as 2022/06/01 |
| 13 |
(with the new in kernel *\ProcessKeyOptions* and *\NewDocumentCommand*). |
| 14 |
|
| 15 |
## Installation |
| 16 |
The stable version is available at [CTAN](https://ctan.org/pkg/switch). |
| 17 |
|
| 18 |
## Usage |
| 19 |
### Stable version |
| 20 |
Just place |
| 21 |
```latex |
| 22 |
\usepackage{switch} |
| 23 |
``` |
| 24 |
|
| 25 |
in the preamble and compile away. |
| 26 |
|
| 27 |
## Contacting Author |
| 28 |
|
| 29 |
For bug reports and enhancement suggestions, the preferred way is to use |
| 30 |
[the project's issue page](https://github.com/alceu-frigeri/switch/issues). |
| 31 |
Please be ready to provide an example code showing the bug, if any. |
| 32 |
|
| 33 |
Please do not use the issue page for generic help on how to use the package. |
| 34 |
|
| 35 |
* git: https://github.com/alceu-frigeri/switch |
| 36 |
|
| 37 |
------------- |
| 38 |
Copyright 2025-present by Alceu Frigeri |
| 39 |
|
| 40 |
This work may be distributed and/or modified under the |
| 41 |
conditions of |
| 42 |
|
| 43 |
* The [LaTeX Project Public License](http://www.latex-project.org/lppl.txt), version 1.3c (or later), and/or |
| 44 |
* The [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.html), version 3 (or later) |
| 45 |
|
| 46 |
This work has the LPPL maintenance status *maintained*. |
| 47 |
|
| 48 |
The Current Maintainer of this work is Alceu Frigeri |
| 49 |
|
| 50 |
------------- |
| 51 |
## This work consist of the files |
| 52 |
|
| 53 |
* switch.sty |
| 54 |
- the package itself |
| 55 |
|
| 56 |
* README.md (this file) |
| 57 |
- quick introduction |
| 58 |
|
| 59 |
* switch.tex |
| 60 |
* switch.bib |
| 61 |
- package documentation |
| 62 |
|
| 63 |
* switch.pdf |
| 64 |
- documentation in PDF format |
| 65 |
|
| 66 |
------------- |
| 67 |
|
| 68 |
## Change log |
| 69 |
* Version 1.1b (this) |
| 70 |
- switching over pkginfograb package's info |
| 71 |
- a bit of code optimization. |
| 72 |
|
| 73 |
* Version 1.1a |
| 74 |
- Documentation typos. |
| 75 |
|
| 76 |
* Version 1.1 |
| 77 |
- Documentation: added a more advanced example. |
| 78 |
- added a set of commands to test the existence and undefine switches. |
| 79 |
|
| 80 |
* Version 1.0 |
| 81 |
- Initial setup. |