CTAN Comprehensive TeX Archive Network

ted – A (primitive) token list editor

Just like sed is a stream ed­i­tor, ted is a to­ken list ed­i­tor. Ac­tu­ally, it is not as pow­er­full as sed, but its main fea­ture is that it re­ally works with to­kens, not only char­ac­ters.

The ted pack­age pro­vides two user macros: \Sub­sti­tute and \ShowTo­kens. The first is maybe the most use­ful: it per­forms sub­sti­tu­tions in to­ken lists (even in­side braces). The sec­ond dis­plays each to­ken of the list (one per line) with its cat­code (in the list, not just the cur­rent one), and can be use­ful for de­bug­ging or for learn­ers.

Ted is de­signed to work well even if strange to­kens (that is, un­usual {char­code, cat­code} pairs or to­kens with a con­fus­ing mean­ing) oc­cur in the list.

Li­censesThe Project Public Li­cense
Main­tainerManuel Pé­gourié-Gon­nard
Con­tained inTeX Live as ted
MiKTeX as ted
TopicsDe­bug supp
See alsopatch

Down­load the con­tents of this pack­age in one zip archive (187.1k).

Com­mu­nity Com­ments



Here you can see a re­spec­tive di­a­gram in newer browsers.


Guest Book Sitemap Contact Contact Author