CTAN Update: tokcycle

CTAN Announcements ctan-ann at ctan.org
Thu Mar 11 20:47:33 CET 2021

Steven B. Segletes submitted an update to the



Version:  1.3 2021-03-10
License:  lppl1.3c

Summary description:  Build tools to process tokens from an input stream

Announcement text:
 V1.3 of the tokcycle package has been released.

 This package helps one to build tools to process tokens from
 an input stream, on a token-by-token basis, by applying category-
 based directives to each successive token.

 New features include:

 1) the \xtokcycleenvironment macro has been introduced that allows
    one to build named tokcycle environments that allow pre- and
    post-processing directives to the token cycle;

 2) the ability to dynamically truncate/discard tokens in various
    ways from the input stream has been introduced;

 3) a form of grouping that limits the scope of your code in the
    traditional way, while at the same time permitting the trans-
    mission of the \cytoks token list across the group barrier.

 4) A TeX \count that indicates your current group-depth within
    the input stream, which can be dynamically used to make
    conditional decisions in your tokcycle directives.

 As always, tokcycle works in both LaTeX and plain TeX.


The package’s Catalogue entry can be viewed at

The package’s files themselves can be inspected at


   Thanks for the upload.

     For the CTAN Team
    Petra Rübe-Pugliese


CTAN is run entirely by volunteers and supported by TeX user groups.
Please join a user group or donate to one, see https://ctan.org/lugs

More information about the Ctan-ann mailing list