• New on CTAN: tokmap

    From CTAN Announcements@21:1/5 to CTAN Announcements on Tue Jun 24 21:29:52 2025
    plante submitted the

    tokmap

    package.

    Version: 1.0
    License: lppl1.3c

    Summary description: Iterate over a token list expandably, without dropping spaces or braced groups

    Announcement text: ----------------------------------------------------------------------

    Usage: `\tokmap <command> { <tokens> }` applies command over the token list tokens.
    Space tokens, left and right braces are replaced with the marker tokens `\tokmap@space`,
    `\tokmap@bgroup`, and `\tokmap@egroup` respectively (who are `\ifx`-equal to themselves
    exclusively). For convenience, command may contain multiple tokens.
    It is assumed that `{` and `}` are the only characters with category codes 1
    (beginning of group) and 2 (end of group) respectively.
    Expandable.

    This package may be used in LaTeX by `\usepackage{tokmap}`, or
    in plain TeX and other formats by `\input{tokmap}`.

    See the visualtoks package for an example application
    (http://mirrors.ctan.org/macros/generic/visualtoks/visualtoks-doc.pdf).

    ----------------------------------------------------------------------

    The package’s Catalogue entry can be viewed at
    https://ctan.org/pkg/tokmap

    The package’s files themselves can be inspected at
    https://mirrors.ctan.org/macros/generic/tokmap/

    ------------------------------------------------------------------------

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)