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
Home pagehttps://puszcza.gnu.org.ua/projects/latex-makegobbler
Bug trackerhttps://puszcza.gnu.org.ua/bugs/?group=latex-makegobbler
Repositoryhttps://svn.gnu.org.ua/sources/latex-makegobbler/trunk
Version0.3.2 2026-02-15
LicensesThe Project Public License 1.3c
Free license not otherwise listed
Copyright2025–2026 Vincent Belaïche
MaintainerVincent Belaïche
Contained inTeX Live as makegobbler
MiKTeX as makegobbler
TopicsMacro support
Conditional compilation
See alsoetoolbox

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

Community Comments

Loading...

Announcements

Here you can see a respective diagram in newer browsers.

more

Package Links

Guest Book Sitemap Contact Contact Author