[dev-context] \startsection ...\stopsection alias for \section?

Aditya Mahajan adityam at umich.edu
Sun May 27 20:09:51 CEST 2007


On Fri, 30 Mar 2007, Patrick Gundlach wrote:

> Hi,
>
> would it make sense to have, in addtion to e.g. \section a start..stop
> pair?
>
> such as
>
> \startsection{my section name}
>
> \stopsection
>
> with something like
> \let\startsection\section
> \let\stopsection\relax
>
>
> This way the text would be slightly more structured.

Another interesting way is to use start-stop sections is as specified 
by rfc2629 [1]: \startsection is nestable, so that you can have

\startsection {first section}

\startsection {first subsection}

\stopsection

\startsection {second subsection}

\stopsection

\stopsection

which makes it easy to move things around, promote demote section 
levels, etc.


[1] http://www.rfc-editor.org/rfc/rfc2629.txt which is a decent xml 
dtd for simple documents. Also see 
http://xml.resource.org/authoring/draft-mrose-writing-rfcs.html

Aditya



More information about the dev-context mailing list