makegobbler – Keep or drop some part of LaTeX source code
The makegobbler package provides a mechanism to selectively drop (gobble) or keep (“ungobble”) portions of LaTeX source code, either conditionally or unconditionally. The affected code is delimited by user-defined control sequences that act as explicit markers.
For example, you can define a conditional as follows: \newif\ifkeep
You can then make a portion of the source conditional like this: \keepfalse
\MGBkeep*\ifkeep\SomeArbitraryDelimitingControlSequence
Here, everything — including \fi#!{}_^$ — is dropped.
\SomeArbitraryDelimitingControlSequence
| Sources | /macros/latex/contrib/makegobbler |
| Documentation | |
| Home page | https://puszcza.gnu.org.ua/projects/latex-makegobbler |
| Bug tracker | https://puszcza.gnu.org.ua/bugs/?group=latex-makegobbler |
| Version | 0.3.1 2026-02-01 |
| Licenses | Free license not otherwise listed The LaTeX Project Public License 1.3c |
| Copyright | 2025–2026 Vincent Belaïche |
| Maintainer | Vincent Belaïche |
| Contained in | TeX Live as makegobbler MiKTeX as makegobbler |
| Topics | Macro support Conditional compilation |
| See also | etoolbox |
Download the contents of this package in one zip archive (509.5k).
Announcements
Suggestions
Maybe you are interested in the following packages as well.
Community Comments