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 tokens from an input stream. If a macro to process an arbitrary single 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. If condition flags are provided to identify active, implicit, and catcode-6 tokens as they are digested. The package provides a number of options for handling groups.
|Licenses||The LaTeX Project Public License 1.3c|
|Maintainer||Steven B. Segletes|
|Contained in||TeX Live as tokcycle|
MiKTeX as tokcycle
Download the contents of this package in one zip archive (353.6k).
Maybe you are interested in the following packages as well.
- compare: Compare two strings
- arrayjobx: Array data structures for (La)TeX
- fenixpar: One-shot changes to token registers such as \everypar
- multiexpand: Variations on the primitive command \expandafter