Directory macros/latex/contrib/rainbowbrackets
RainbowBrackets v. 1.3.2 y 2025
Part of a collection of LaTeX commands used by the institute of linguistics - Goethe University Frankfurt
Provides automatic coloring of nested parentheses using a configurable color cycle.
Description
The primary function of this package is to replicate a common feature found in many integrated development environments (IDEs), wherein matching parentheses at the same nesting level are assigned corresponding colors. This visual aid facilitates improved readability and cognitive parsing of complex expressions.
Dependencies
- {LaTeX2ε}
- {xparse, xstring, xcolor, expl3, kvoptions}
Authors
ex. Paul Eduard Koenig (based on work from Ryan Reich, jub0bs, and Matthew Towers)
Version History
- 1.3.2
- Add new style.
- Fix bug regarding verb=rbparenr= and verb=rbdisable= (thanks to Adelheid Bonnetsmüller).
- Fix bug that occured when passing an invalid max value as package argument.
- Fix wrong color in pastel style.
- Internal refactoring.
- 1.2.1
- Renamed some commands to get a cohesive command style (now all start with rb).
- Add optional package arguments to change bracket symbols.
- Add commands to change bracket symbols.
- Add new commands to temporarily disable coloring.
- Add new commands to temporarily change the text mode of the brackets.
- Add new italic environment.
- 1.1.1
- Add new styles
- Refactored style system.
- Fix typos.
- Added missing credits!
- Add new styles
- 1.0.0
- Initial Release
License
This program can be redistributed and/or modified under the terms of the LaTeX Project Public License Distributed from CTAN archives in directory macros/latex/base/lppl.txt.
Download the contents of this package in one zip archive (227.5k).
rainbowbrackets – Automatic coloring of nested parentheses
The primary function of this package is to replicate a common feature found in many integrated development environments (IDEs), wherein matching parentheses at the same nesting level are assigned corresponding colors. This visual aid facilitates improved readability and cognitive parsing of complex expressions.
Package | rainbowbrackets |
Bug tracker | https://github.com/fragoli/rainbowbrackets/issues |
Repository | https://github.com/fragoli/rainbowbrackets |
Version | 1.3.2 2025-08-05 |
Licenses | The LaTeX Project Public License 1.3c |
Copyright | 2025 Paul Eduard Koenig |
Maintainer | Paul Eduard Koenig |
Contained in | TeX Live as rainbowbrackets MiKTeX as rainbowbrackets |
Topics | Parentheses management |
