Skip to content
LaTeX2e package - substituting and displaying arbitrary tokens
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


                                The ted package

                        A (primitive) token list editor

               Manuel P\'egouri\'e-Gonnard <>


Just like sed is a stream editor, ted is a token list editor.  Actually, it is
not as powerfull as sed, but its main feature is that it really works with
tokens, not only characters.

The ted package provides two user macros: \Substitute and \ShowTokens. The first
one is maybe the most useful: it performs substitutions in token lists (even
inside braces). The second displays each token of the list (one per line) with
its catcode (in the list, not just the current one), and can be useful for
debugging or for TeX learners.

The ted package is designed to work well even if strange tokens (that is,
unusual (charcode, catcode) pairs or tokens with a confusing meaning) occur in
the list.


ted.sty: the package itself
ted.pdf: the (english) documentation and commented code
ted-fr.pdf: the french documentation

ted.dtx: single source for both documentations and package

Version info

2007-12-09  v1.0    first release
2007-12-12  v1.01   trivial bug fix


This material is subject to the LaTeX Project Public License. See for the
details of that license.

Something went wrong with that request. Please try again.