| 1 |
|
| 2 |
The ted package |
| 3 |
|
| 4 |
A (primitive) token list editor |
| 5 |
|
| 6 |
Manuel P\'egouri\'e-Gonnard <[email protected]> |
| 7 |
|
| 8 |
Presentation |
| 9 |
------------ |
| 10 |
|
| 11 |
Just like sed is a stream editor, ted is a token list editor. Actually, it is |
| 12 |
not as powerful as sed, but its main feature is that it really works with |
| 13 |
tokens, not only characters. |
| 14 |
|
| 15 |
The ted package provides two user macros: \Substitute and \ShowTokens. The first |
| 16 |
one is maybe the most useful: it performs substitutions in token lists (even |
| 17 |
inside braces). The second displays each token of the list (one per line) with |
| 18 |
its catcode (in the list, not just the current one), and can be useful for |
| 19 |
debugging or for TeX learners. |
| 20 |
|
| 21 |
The ted package is designed to work well even if strange tokens (that is, |
| 22 |
unusual (charcode, catcode) pairs or tokens with a confusing meaning) occur in |
| 23 |
the list. |
| 24 |
|
| 25 |
Contents |
| 26 |
-------- |
| 27 |
|
| 28 |
ted.sty: the package itself |
| 29 |
ted.pdf: the (English) documentation and commented code |
| 30 |
ted-fr.pdf: the French documentation |
| 31 |
|
| 32 |
ted.dtx: single source for both documentations and package |
| 33 |
|
| 34 |
Version info |
| 35 |
------------ |
| 36 |
|
| 37 |
2007-12-09 v1.0 First release. |
| 38 |
2007-12-12 v1.01 Fixed a stupid bug. |
| 39 |
2008-03-02 v1.05 - Fixed a bug when trying to substitute AA in a |
| 40 |
string ending with A. Also removed a spurious space. |
| 41 |
- Added an occurrence counter. |
| 42 |
2008-03-07 v1.06 - Fixed a bug in \ShowTokens with active spaces. |
| 43 |
- Slightly expanded the doc (examples). |
| 44 |
|
| 45 |
License |
| 46 |
------- |
| 47 |
|
| 48 |
This material is subject to the LaTeX Project Public License. See |
| 49 |
http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the |
| 50 |
details of that license. |
| 51 |
|