CTAN Comprehensive TeX Archive Network

tokcycle – The tokcycle package helps one to build tools to process tokens from an input stream, on a token-by-token basis

The tokcycle package helps one to build tools to process and transform tokens from an input stream. If a macro to process an arbitrary single (non-macro, non-space) token can be built, then tokcycle can provide a wrapper for cycling through an input stream (including macros, spaces, and groups) on a token-by-token basis, using the provided macro on each successive character.

Tokcycle characterizes each successive token in the input stream as a Character, a Group, a Macro, or a Space. Each of these token categories are processed with a unique directive, to bring about the desired effect of the token cycle.

LicensesThe Project Public License 1.3c
MaintainerSteven B. Segletes
Contained inTeX Live as tokcycle
MiKTeX as tokcycle
Macro support
Misc support
Iterating Macros

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

Community Comments



Here you can see a respective diagram in newer browsers.


Guest Book Sitemap Contact Contact Author