home *** CD-ROM | disk | FTP | other *** search
- s/comment --- transform a list of nodenames followed by chapter ---/&/
- s/comment --- or section name, into a Sed script which changes ---/&/
- s/comment --- node names into chapter numbers in cross-references. ---/&/
-
- /^@node[ ]/ {
- N
- s/\n/!!=!!/
- /^@node *Top[^a-z]/d
- s/^@node *\([^,][^,]*\),.*!!=!!@\([a-z][a-z]*\)[ ][ ]*\([0-9]\(\.*[0-9]\)*\).*/s|ref{\1,|ref{\2 \3,|/
- s/chapter \([0-9][0-9.]*\)/Chapter \1/
- s/section \([0-9][0-9.]*\)/Section \1/
- }
-