CTAN Comprehensive TeX Archive Network

makegobbler – Keep or drop some part of source code

The makegobbler package provides a mechanism to selectively drop (gobble) or keep (“ungobble”) portions of 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
Version0.3 2025-11-29
LicensesFree license not otherwise listed
The Project Public License 1.3c
Copyright2025–2026 Vincent Belaïche
MaintainerVincent Belaïche
TopicsMacro support
Conditional compilation
See alsoetoolbox

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

Community Comments

Loading...
Guest Book Sitemap Contact Contact Author