Teach Your Systemprev up next53
Brute force
• Minimal learning; works for simple documents.

\def\mysect#1{\Tg<h2>#1\Tg</h2>}

• Not easy for sophisticated interfaces:

\def\mysect#1{\Tg<h2>#1\Tg</h2>}

Marks the header, but not the end points.

\def\par{...} and \everypar{...}

Need to mark paragraph ends, and ignore selected paragraphs.

With help from the system