CTAN Comprehensive TeX Archive Network

gates – Support for writing modular and customisable code

The pack­age pro­vides the means of writ­ing code in a mod­u­lar fash­ion: big macros or func­tions are di­vided into small chunks (called gates) with names, which can be ex­ter­nally con­trolled (e.g. they can be dis­abled, sub­jected to con­di­tion­als, loops...) and/or aug­mented with new chunks.

Thus com­plex code may eas­ily be cus­tomised with­out hav­ing to rewrite it, or even un­der­stand its im­ple­men­ta­tion: the be­hav­ior of ex­ist­ing gates can be mod­i­fied, and new ones can be added, with­out en­dan­ger­ing the whole de­sign. This al­lows code to be hacked in ways the orig­i­nal au­thors might have never en­vi­sioned.

The gates pack­age is im­ple­mented in­de­pen­dently for both and Lua. The im­ple­men­ta­tion, run­ning in any cur­rent en­vi­ron­ment, re­quires the texapi pack­age, whereas the Lua ver­sion can be run with any Lua in­ter­preter, not just Lua.

Li­censesThe Project Public Li­cense
Main­tainerYuri Rob­bers
Paul Isam­bert (in­ac­tive)
Con­tained inTeX Live as gates
MiKTeX as gates
TopicsMacro sup­port

Down­load the con­tents of this pack­age in one zip archive (209.9k).

Com­mu­nity Com­ments



Here you can see a re­spec­tive di­a­gram in newer browsers.


Guest Book Sitemap Contact Contact Author